Upgrade iodine
[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.0
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:=82d331f75a99d1547e0ccc3c3efd0a7a
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/iodine/Default
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+zlib
29 TITLE:=IP over DNS tunneling
30 URL:=http://code.kryo.se/iodine/
31 DESCRIPTION:=\
32 iodine
33 endef
34
35 define Package/iodine
36 $(call Package/iodine/Default)
37 TITLE+= client version
38 DESCRIPTION+= client version
39 endef
40
41 define Package/iodined
42 $(call Package/iodine/Default)
43 TITLE+= server version
44 DESCRIPTION+= 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)/usr/sbin
65 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/iodined $(1)/usr/sbin
66 endef
67
68 $(eval $(call BuildPackage,iodine))
69 $(eval $(call BuildPackage,iodined))