nuke $Id$ in /packages as well
[packages.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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=iodine
11 PKG_VERSION:=0.5.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://code.kryo.se/iodine/
16 PKG_MD5SUM:=af2d9062b7788fc47385d8c6c645dfa0
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/iodine/Default
21   SECTION:=net
22   CATEGORY:=Network
23   DEPENDS:=+zlib +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 Build/Compile
50         $(call Build/Compile/Default,\
51                 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -c -DLINUX" \
52                 LDFLAGS="-L$(STAGING_DIR)/usr/lib -lz" \
53                 all \
54         )
55 endef
56
57 define Package/iodine/install
58         $(INSTALL_DIR) $(1)/usr/sbin
59         $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/iodine $(1)/usr/sbin
60 endef
61
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
69 endef
70
71 $(eval $(call BuildPackage,iodine))
72 $(eval $(call BuildPackage,iodined))