2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/vtun
16 PKG_MD5SUM
:=d3d8bc4d58886498a1c338670eab9315
18 include $(INCLUDE_DIR
)/package.mk
23 DEPENDS
:=+kmod-tun
+liblzo
+libopenssl
24 TITLE
:=VPN tunneling daemon
25 URL
:=http
://vtun.sourceforge.net
29 define Package
/vtun
/conffiles
34 --with-lzo-headers
="$(STAGING_DIR)/usr/include/lzo" \
35 --with-lzo-lib
="$(STAGING_DIR)/usr/lib/" \
36 --with-ssl-headers
="$(STAGING_DIR)/usr/include/openssl" \
39 LIBS
="$(TARGET_LDFLAGS)" \
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" \
45 $(call Build
/Compile
/Default
,vtund
)
48 define Package
/vtun
/install
49 $(INSTALL_DIR
) $(1)/etc
50 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/vtund.conf
$(1)/etc
/
51 $(INSTALL_DIR
) $(1)/usr
/sbin
52 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vtund
$(1)/usr
/sbin
/
55 $(eval
$(call BuildPackage
,vtun
))