You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2006-2011 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=iodine
  9. PKG_VERSION:=0.7.0
  10. PKG_RELEASE:=4
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://code.kryo.se/iodine/
  13. PKG_HASH:=ad2b40acf1421316ec15800dcde0f587ab31d7d6f891fa8b9967c4ded93c013e
  14. PKG_MAINTAINER:=Uwe Kleine-König <uwe+openwrt@kleine-koenig.org>
  15. PKG_LICENSE:=ISC
  16. PKG_LICENSE_FILES:=README
  17. PKG_CPE_ID:=cpe:/a:kryo:iodine
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/iodine/Default
  20. SECTION:=net
  21. CATEGORY:=Network
  22. SUBMENU:=Firewall Tunnel
  23. DEPENDS:= +kmod-tun +zlib
  24. TITLE:=IP over DNS tunneling
  25. URL:=http://code.kryo.se/iodine/
  26. endef
  27. define Package/iodine
  28. $(call Package/iodine/Default)
  29. TITLE+= client version
  30. endef
  31. define Package/iodine/description
  32. iodine client version
  33. endef
  34. define Package/iodined
  35. $(call Package/iodine/Default)
  36. TITLE+= server version
  37. endef
  38. define Package/iodined/description
  39. iodine server version
  40. endef
  41. MAKE_FLAGS += \
  42. TARGETOS="Linux"
  43. define Build/Configure
  44. endef
  45. define Package/iodine/install
  46. $(INSTALL_DIR) $(1)/usr/sbin
  47. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/iodine $(1)/usr/sbin
  48. endef
  49. define Package/iodined/install
  50. $(INSTALL_DIR) $(1)/etc/init.d
  51. $(INSTALL_BIN) ./files/iodined.init $(1)/etc/init.d/iodined
  52. $(INSTALL_DIR) $(1)/etc/config
  53. $(INSTALL_DATA) ./files/iodined.config $(1)/etc/config/iodined
  54. $(INSTALL_DIR) $(1)/usr/sbin
  55. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/iodined $(1)/usr/sbin
  56. endef
  57. define Package/iodined/conffiles
  58. /etc/config/iodined
  59. endef
  60. $(eval $(call BuildPackage,iodine))
  61. $(eval $(call BuildPackage,iodined))