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