summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-02-28 07:31:29 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-02-28 07:31:29 +0000
commit5a893eaf197bc8a2da48c391aea00ce5e419b475 (patch)
tree3a6187dc31d83ae2cbda359be58900a607eb4ba7 /package
parentee55d49535b60bf135c5e52d56aa91896cedac03 (diff)
Added support for : save-password( --enable-password-save), smaller executable (--enable-small)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3284 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/openvpn/Config.in12
-rw-r--r--package/openvpn/Makefile8
2 files changed, 20 insertions, 0 deletions
diff --git a/package/openvpn/Config.in b/package/openvpn/Config.in
index 860a39f03..3feffa301 100644
--- a/package/openvpn/Config.in
+++ b/package/openvpn/Config.in
@@ -38,4 +38,16 @@ config BR2_COMPILE_OPENVPN_WITH_LZO
depends BR2_PACKAGE_OPENVPN
select BR2_PACKAGE_LIBLZO
+config BR2_COMPILE_OPENVPN_WITH_PASSWORD_SAVE
+ prompt "Enable password saving"
+ bool
+ default y
+ depends BR2_PACKAGE_OPENVPN
+
+config BR2_COMPILE_OPENVPN_WITH_SMALL
+ prompt "Enable smaller executable size (disable OCC, usage message, and verb 4 parm list)"
+ bool
+ default n
+ depends BR2_PACKAGE_OPENVPN
+
endmenu
diff --git a/package/openvpn/Makefile b/package/openvpn/Makefile
index e5e127584..5ae1a3120 100644
--- a/package/openvpn/Makefile
+++ b/package/openvpn/Makefile
@@ -38,6 +38,12 @@ endif
ifneq ($(BR2_COMPILE_OPENVPN_WITH_HTTP),y)
DISABLE_HTTP:=--disable-http
endif
+ifeq ($(BR2_COMPILE_OPENVPN_WITH_PASSWORD_SAVE),y)
+ENABLE_PASSWORD_SAVE:=--enable-password-save
+endif
+ifeq ($(BR2_COMPILE_OPENVPN_WITH_SMALL),y)
+ENABLE_SMALL:=--enable-small
+endif
$(PKG_BUILD_DIR)/.configured:
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
@@ -76,6 +82,8 @@ $(PKG_BUILD_DIR)/.configured:
$(DISABLE_OPENSSL) \
$(DISABLE_SERVER) \
$(DISABLE_HTTP) \
+ $(ENABLE_PASSWORD_SAVE) \
+ $(ENABLE_SMALL) \
);
touch $(PKG_BUILD_DIR)/.configured