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
+VTUN_LZO
:liblzo
+VTUN_LZO
:zlib
+VTUN_SSL
:libopenssl
24 TITLE
:=VPN tunneling daemon
25 URL
:=http
://vtun.sourceforge.net
30 define Package
/vtun
/config
32 depends on PACKAGE_vtun
37 depends on PACKAGE_vtun
39 bool
"enable vtun compression"
41 vtun tunnels will be compressed
45 bool
"enable vtun ssl encryption"
47 vtun tunnels will be encrypted
52 define Package
/vtun
/conffiles
57 $(if
$(CONFIG_VTUN_LZO
),--with-lzo-lib
="$(STAGING_DIR)/usr/lib/",--disable-zlib
) \
58 $(if
$(CONFIG_VTUN_LZO
),--with-lzo-headers
="$(STAGING_DIR)/usr/include/lzo",--disable-lzo
) \
59 $(if
$(CONFIG_VTUN_SSL
),--with-ssl-headers
="$(STAGING_DIR)/usr/lib/",--disable-ssl
) \
62 LIBS
="$(TARGET_LDFLAGS)" \
63 $(if
$(CONFIG_VTUN_LZO
),LZO_HDR_DIR
="$(STAGING_DIR)/usr/include/lzo") \
64 $(if
$(CONFIG_VTUN_SSL
),BLOWFISH_HDR_DIR
="$(STAGING_DIR)/usr/include/openssl") \
65 $(if
$(CONFIG_VTUN_SSL
),SSL_HDR_DIR
="$(STAGING_DIR)/usr/include/openssl") \
68 $(call Build
/Compile
/Default
,vtund
)
71 define Package
/vtun
/install
72 $(INSTALL_DIR
) $(1)/etc
73 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/vtund.conf
$(1)/etc
/
74 $(INSTALL_DIR
) $(1)/usr
/sbin
75 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/vtund
$(1)/usr
/sbin
/
78 $(eval
$(call BuildPackage
,vtun
))