Add nufw
[openwrt/svn-archive/archive.git] / net / iodine / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=iodine
12 PKG_VERSION:=0.4.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://code.kryo.se/iodine/
17 PKG_MD5SUM:=58d82bca11a41a01d0ddfa7d105e6a48
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/iodine/Default
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+zlib
28 TITLE:=IP over DNS tunneling
29 URL:=http://code.kryo.se/iodine/
30 endef
31
32 define Package/iodine
33 $(call Package/iodine/Default)
34 TITLE+= client version
35 endef
36
37 define Package/iodine/description
38 iodine client version
39 endef
40
41 define Package/iodined
42 $(call Package/iodine/Default)
43 TITLE+= server version
44 endef
45
46 define Package/iodined/description
47 iodine server version
48 endef
49
50 define Build/Configure
51 endef
52
53 define Build/Compile
54 $(call Build/Compile/Default,\
55 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -c -DLINUX" \
56 LDFLAGS="-L$(STAGING_DIR)/usr/lib -lz" \
57 all \
58 )
59 endef
60
61 define Package/iodine/install
62 $(INSTALL_DIR) $(1)/usr/sbin
63 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/iodine $(1)/usr/sbin
64 endef
65
66 define Package/iodined/install
67 $(INSTALL_DIR) $(1)/etc/init.d
68 $(INSTALL_BIN) ./files/iodined.init $(1)/etc/init.d/iodined
69 $(INSTALL_DIR) $(1)/etc/config
70 $(INSTALL_DATA) ./files/iodined.config $(1)/etc/config/iodined
71 $(INSTALL_DIR) $(1)/usr/sbin
72 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/iodined $(1)/usr/sbin
73 endef
74
75 $(eval $(call BuildPackage,iodine))
76 $(eval $(call BuildPackage,iodined))