mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-28 23:32:50 +02:00
make lzo and server support in openvpn optional
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@551 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5beb2acad5
commit
68b3a26938
@ -54,6 +54,10 @@ clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m)) linux-clean
|
|||||||
compile: $(patsubst %,%-compile,$(package-y) $(package-m))
|
compile: $(patsubst %,%-compile,$(package-y) $(package-m))
|
||||||
install: $(patsubst %,%-install,$(package-y))
|
install: $(patsubst %,%-install,$(package-y))
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_OPENVPN_LZO),y)
|
||||||
|
openvpn-compile: lzo-compile
|
||||||
|
endif
|
||||||
|
|
||||||
nocatsplash-compile: glib-compile
|
nocatsplash-compile: glib-compile
|
||||||
arpwatch-compile: libpcap-compile
|
arpwatch-compile: libpcap-compile
|
||||||
tcpdump-compile: libpcap-compile
|
tcpdump-compile: libpcap-compile
|
||||||
|
@ -3,8 +3,18 @@ config BR2_PACKAGE_OPENVPN
|
|||||||
default m
|
default m
|
||||||
select BR2_PACKAGE_KMOD_TUN
|
select BR2_PACKAGE_KMOD_TUN
|
||||||
select BR2_PACKAGE_OPENSSL
|
select BR2_PACKAGE_OPENSSL
|
||||||
select BR2_PACKAGE_LZO
|
|
||||||
help
|
help
|
||||||
Open Source VPN solution using SSL
|
Open Source VPN solution using SSL
|
||||||
|
|
||||||
http://openvpn.net/
|
http://openvpn.net/
|
||||||
|
|
||||||
|
config BR2_PACKAGE_OPENVPN_SERVER
|
||||||
|
bool "Enable server support"
|
||||||
|
default y
|
||||||
|
depends BR2_PACKAGE_OPENVPN
|
||||||
|
|
||||||
|
config BR2_PACKAGE_OPENVPN_LZO
|
||||||
|
bool "Enable transparent compression (lzo)"
|
||||||
|
default y
|
||||||
|
depends BR2_PACKAGE_OPENVPN
|
||||||
|
select BR2_PACKAGE_LZO
|
||||||
|
@ -14,6 +14,14 @@ PKG_CAT:=zcat
|
|||||||
PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
|
PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
|
||||||
PKG_IPK_DIR:=$(PKG_BUILD_DIR)/ipkg
|
PKG_IPK_DIR:=$(PKG_BUILD_DIR)/ipkg
|
||||||
|
|
||||||
|
ifneq ($(BR2_PACKAGE_OPENVPN_LZO),y)
|
||||||
|
DISABLE_LZO:=--disable-lzo
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ($(BR2_PACKAGE_OPENVPN_SERVER),y)
|
||||||
|
DISABLE_SERVER:=--disable-server
|
||||||
|
endif
|
||||||
|
|
||||||
$(DL_DIR)/$(PKG_SOURCE):
|
$(DL_DIR)/$(PKG_SOURCE):
|
||||||
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL)
|
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL)
|
||||||
|
|
||||||
@ -46,6 +54,8 @@ $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.unpacked
|
|||||||
--disable-management \
|
--disable-management \
|
||||||
--disable-socks \
|
--disable-socks \
|
||||||
--disable-http \
|
--disable-http \
|
||||||
|
$(DISABLE_LZO) \
|
||||||
|
$(DISABLE_SERVER) \
|
||||||
);
|
);
|
||||||
touch $(PKG_BUILD_DIR)/.configured
|
touch $(PKG_BUILD_DIR)/.configured
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
my %change = (
|
my %change = (
|
||||||
'BUSYBOX' => 'make -C package busybox-clean',
|
'BUSYBOX' => 'make -C package busybox-clean',
|
||||||
|
'OPENVPN_' => 'make -C package openvpn-clean',
|
||||||
'' => 'make target_clean'
|
'' => 'make target_clean'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user