fa90f3b350106845e7a87021bd915c761c19f4e2
[openwrt/svn-archive/archive.git] / net / iodine / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=iodine
11 PKG_VERSION:=0.6.0-rc1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://code.kryo.se/iodine/
16 PKG_MD5SUM:=a15bb4faba020d217016fde6e231074a
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/iodine/Default
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:= +kmod-tun
24 TITLE:=IP over DNS tunneling
25 URL:=http://code.kryo.se/iodine/
26 endef
27
28 define Package/iodine
29 $(call Package/iodine/Default)
30 TITLE+= client version
31 endef
32
33 define Package/iodine/description
34 iodine client version
35 endef
36
37 define Package/iodined
38 $(call Package/iodine/Default)
39 TITLE+= server version
40 endef
41
42 define Package/iodined/description
43 iodine server version
44 endef
45
46 define Build/Configure
47 endef
48
49 define Package/iodine/install
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/iodine $(1)/usr/sbin
52 endef
53
54 define Package/iodined/install
55 $(INSTALL_DIR) $(1)/etc/init.d
56 $(INSTALL_BIN) ./files/iodined.init $(1)/etc/init.d/iodined
57 $(INSTALL_DIR) $(1)/etc/config
58 $(INSTALL_DATA) ./files/iodined.config $(1)/etc/config/iodined
59 $(INSTALL_DIR) $(1)/usr/sbin
60 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/iodined $(1)/usr/sbin
61 endef
62
63 $(eval $(call BuildPackage,iodine))
64 $(eval $(call BuildPackage,iodined))