[package] forgot iftop patches
[openwrt/svn-archive/archive.git] / net / nstx / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=nstx
11 PKG_VERSION:=1.1-beta6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/n/nstx/
16 PKG_MD5SUM:=275abd75a856b07a798b1f2360088cf5
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/nstx/Default
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=allows you to pass IP packets via DNS queries
26 URL:=http://savannah.nongnu.org/projects/nstx/
27 endef
28
29 define Package/nstx
30 $(call Package/nstx/Default)
31 TITLE+= client version
32 endef
33
34 define Package/nstx/description
35 nstx client version
36 endef
37
38 define Package/nstxd
39 $(call Package/nstx/Default)
40 TITLE+= server version
41 endef
42
43 define Package/nstxd/description
44 nstx server version
45 endef
46
47 define Build/Configure
48 endef
49
50 define Build/Compile
51 $(MAKE) -C $(PKG_BUILD_DIR) CC="$(TARGET_CC)"
52 endef
53
54 define Package/nstx/install
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(INSTALL_BIN) $(PKG_BUILD_DIR)/nstxcd $(1)/usr/sbin/
57 endef
58
59 define Package/nstxd/install
60 $(INSTALL_DIR) $(1)/etc/init.d $(1)/usr/sbin
61 $(INSTALL_BIN) $(PKG_BUILD_DIR)/nstxd $(1)/usr/sbin
62 endef
63
64 $(eval $(call BuildPackage,nstx))
65 $(eval $(call BuildPackage,nstxd))