Upgrade vtun to 3.0.1 (#3265)
[openwrt/svn-archive/archive.git] / net / vtun / 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:=vtun
12 PKG_VERSION:=3.0.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/vtun
17 PKG_MD5SUM:=c342ffe77055d4248a38f0b380f28c1b
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/vtun
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+kmod-tun +liblzo +libopenssl +zlib
25 TITLE:=VPN tunneling daemon
26 URL:=http://vtun.sourceforge.net
27 SUBMENU:=VPN
28 endef
29
30 define Package/vtun/conffiles
31 /etc/vtund.conf
32 endef
33
34 define Build/Configure
35 $(call Build/Configure/Default, \
36 --with-lzo-headers="$(STAGING_DIR)/usr/include/lzo" \
37 --with-lzo-lib="$(STAGING_DIR)/usr/lib/" \
38 --with-ssl-headers="$(STAGING_DIR)/usr/include/openssl" \
39 , \
40 LIBS="-L$(STAGING_DIR)/usr/lib" \
41 BLOWFISH_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
42 LZO_HDR_DIR="$(STAGING_DIR)/usr/include/lzo" \
43 SSL_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
44 )
45 endef
46
47 define Build/Compile
48 $(call Build/Compile/Default,vtund)
49 endef
50
51 define Package/vtun/install
52 $(INSTALL_DIR) $(1)/etc
53 $(INSTALL_CONF) $(PKG_BUILD_DIR)/vtund.conf $(1)/etc/
54 $(INSTALL_DIR) $(1)/usr/sbin
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/vtund $(1)/usr/sbin/
56 endef
57
58 $(eval $(call BuildPackage,vtun))