[package] vtun: make package more configurable
added possibility to disable lzo compression and encryption to save ram [Florian: added missing zlib dependency] Signed-off-by: Andreas Braeu <ab@andi95.de> git-svn-id: svn://svn.openwrt.org/openwrt/packages@33171 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
27ac5da954
commit
2e63625484
@ -20,10 +20,32 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/vtun
|
define Package/vtun
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
DEPENDS:=+kmod-tun +liblzo +libopenssl
|
DEPENDS:=+kmod-tun +VTUN_LZO:liblzo +VTUN_LZO:zlib +VTUN_SSL:libopenssl
|
||||||
TITLE:=VPN tunneling daemon
|
TITLE:=VPN tunneling daemon
|
||||||
URL:=http://vtun.sourceforge.net
|
URL:=http://vtun.sourceforge.net
|
||||||
SUBMENU:=VPN
|
SUBMENU:=VPN
|
||||||
|
MENU:=1
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/vtun/config
|
||||||
|
menu "Configuration"
|
||||||
|
depends on PACKAGE_vtun
|
||||||
|
|
||||||
|
config VTUN_config
|
||||||
|
|
||||||
|
depends on PACKAGE_vtun
|
||||||
|
config VTUN_LZO
|
||||||
|
bool "enable vtun compression"
|
||||||
|
help
|
||||||
|
vtun tunnels will be compressed
|
||||||
|
default y
|
||||||
|
|
||||||
|
config VTUN_SSL
|
||||||
|
bool "enable vtun ssl encryption"
|
||||||
|
help
|
||||||
|
vtun tunnels will be encrypted
|
||||||
|
default y
|
||||||
|
endmenu
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/vtun/conffiles
|
define Package/vtun/conffiles
|
||||||
@ -31,15 +53,15 @@ define Package/vtun/conffiles
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--with-lzo-headers="$(STAGING_DIR)/usr/include/lzo" \
|
$(if $(CONFIG_VTUN_LZO),--with-lzo-lib="$(STAGING_DIR)/usr/lib/",--disable-zlib) \
|
||||||
--with-lzo-lib="$(STAGING_DIR)/usr/lib/" \
|
$(if $(CONFIG_VTUN_LZO),--with-lzo-headers="$(STAGING_DIR)/usr/include/lzo",--disable-lzo) \
|
||||||
--with-ssl-headers="$(STAGING_DIR)/usr/include/openssl" \
|
$(if $(CONFIG_VTUN_SSL),--with-ssl-headers="$(STAGING_DIR)/usr/lib/",--disable-ssl) \
|
||||||
|
|
||||||
CONFIGURE_VARS += \
|
CONFIGURE_VARS += \
|
||||||
LIBS="$(TARGET_LDFLAGS)" \
|
LIBS="$(TARGET_LDFLAGS)" \
|
||||||
BLOWFISH_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
|
$(if $(CONFIG_VTUN_LZO),LZO_HDR_DIR="$(STAGING_DIR)/usr/include/lzo") \
|
||||||
LZO_HDR_DIR="$(STAGING_DIR)/usr/include/lzo" \
|
$(if $(CONFIG_VTUN_SSL),BLOWFISH_HDR_DIR="$(STAGING_DIR)/usr/include/openssl") \
|
||||||
SSL_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \
|
$(if $(CONFIG_VTUN_SSL),SSL_HDR_DIR="$(STAGING_DIR)/usr/include/openssl") \
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(call Build/Compile/Default,vtund)
|
$(call Build/Compile/Default,vtund)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user