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
:=82d331f75a99d1547e0ccc3c3efd0a7a
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/iodine
/Default
29 TITLE
:=IP over DNS tunneling
30 URL
:=http
://code.kryo.se
/iodine
/
34 $(call Package
/iodine
/Default
)
35 TITLE
+= client version
38 define Package
/iodine
/description
42 define Package
/iodined
43 $(call Package
/iodine
/Default
)
44 TITLE
+= server version
47 define Package
/iodined
/description
51 define Build
/Configure
55 $(call Build
/Compile
/Default
,\
56 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -c -DLINUX" \
57 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -lz" \
62 define Package
/iodine
/install
63 $(INSTALL_DIR
) $(1)/usr
/sbin
64 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/bin
/iodine
$(1)/usr
/sbin
67 define Package
/iodined
/install
68 $(INSTALL_DIR
) $(1)/etc
/init.d
69 $(INSTALL_BIN
) .
/files
/iodined.init
$(1)/etc
/init.d
/iodined
70 $(INSTALL_DIR
) $(1)/etc
/config
71 $(INSTALL_DATA
) .
/files
/iodined.config
$(1)/etc
/config
/iodined
72 $(INSTALL_DIR
) $(1)/usr
/sbin
73 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/bin
/iodined
$(1)/usr
/sbin
76 $(eval
$(call BuildPackage
,iodine
))
77 $(eval
$(call BuildPackage
,iodined
))