2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/vtun
17 PKG_MD5SUM
:=309534fd03c5d13a19c43916f61f4bbf
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
21 include $(INCLUDE_DIR
)/package.mk
26 DEPENDS
:=+kmod-tun
+liblzo
+libopenssl
+zlib
27 TITLE
:=VPN tunneling daemon
28 URL
:=http
://vtun.sourceforge.net
32 define Package
/vtun
/conffiles
36 define Build
/Configure
37 $(call Build
/Configure
/Default
, \
39 LIBS
="-L$(STAGING_DIR)/usr/lib" \
40 BLOWFISH_HDR_DIR
="$(STAGING_DIR)/usr/include/openssl" \
41 LZO_HDR_DIR
="$(STAGING_DIR)/usr/include/lzo" \
42 SSL_HDR_DIR
="$(STAGING_DIR)/usr/include/openssl" \
47 $(call Build
/Compile
/Default
,vtund
)
50 define Package
/vtun
/install
51 $(INSTALL_DIR
) $(1)/etc
52 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/vtund.conf
$(1)/etc
/
53 $(INSTALL_DIR
) $(1)/usr
/sbin
54 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vtund
$(1)/usr
/sbin
/
57 $(eval
$(call BuildPackage
,vtun
))