2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://code.kryo.se/iodine/
16 PKG_MD5SUM:=af2d9062b7788fc47385d8c6c645dfa0
18 include $(INCLUDE_DIR)/package.mk
20 define Package/iodine/Default
23 DEPENDS:=+zlib +kmod-tun
24 TITLE:=IP over DNS tunneling
25 URL:=http://code.kryo.se/iodine/
29 $(call Package/iodine/Default)
30 TITLE+= client version
33 define Package/iodine/description
37 define Package/iodined
38 $(call Package/iodine/Default)
39 TITLE+= server version
42 define Package/iodined/description
46 define Build/Configure
50 $(call Build/Compile/Default,\
51 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -c -DLINUX" \
52 LDFLAGS="$(TARGET_LDFLAGS) -lz" \
57 define Package/iodine/install
58 $(INSTALL_DIR) $(1)/usr/sbin
59 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/iodine $(1)/usr/sbin
62 define Package/iodined/install
63 $(INSTALL_DIR) $(1)/etc/init.d
64 $(INSTALL_BIN) ./files/iodined.init $(1)/etc/init.d/iodined
65 $(INSTALL_DIR) $(1)/etc/config
66 $(INSTALL_DATA) ./files/iodined.config $(1)/etc/config/iodined
67 $(INSTALL_DIR) $(1)/usr/sbin
68 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/iodined $(1)/usr/sbin
71 $(eval $(call BuildPackage,iodine))
72 $(eval $(call BuildPackage,iodined))