2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://code.kryo.se
/iodine
/
17 PKG_MD5SUM
:=58d82bca11a41a01d0ddfa7d105e6a48
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/iodine
/Default
28 TITLE
:=IP over DNS tunneling
29 URL
:=http
://code.kryo.se
/iodine
/
33 $(call Package
/iodine
/Default
)
34 TITLE
+= client version
37 define Package
/iodine
/description
41 define Package
/iodined
42 $(call Package
/iodine
/Default
)
43 TITLE
+= server version
46 define Package
/iodined
/description
50 define Build
/Configure
54 $(call Build
/Compile
/Default
,\
55 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -c -DLINUX" \
56 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -lz" \
61 define Package
/iodine
/install
62 $(INSTALL_DIR
) $(1)/usr
/sbin
63 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/bin
/iodine
$(1)/usr
/sbin
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
75 $(eval
$(call BuildPackage
,iodine
))
76 $(eval
$(call BuildPackage
,iodined
))