summaryrefslogtreecommitdiff
path: root/package/openvpn
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-06-04 09:42:19 -0500
committerWaldemar Brodkorb <wbx@openadk.org>2015-06-04 09:42:19 -0500
commit543c5a6ab485c2dc9fe75fc86cdf7bcf6d6258e1 (patch)
treeffb3420e4d443747965336a4e244272f1666d4a7 /package/openvpn
parentdb8d181364a4cb096a7deee6e3af95712b2a82c4 (diff)
make small and non-debug optional
Diffstat (limited to 'package/openvpn')
-rw-r--r--package/openvpn/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/package/openvpn/Makefile b/package/openvpn/Makefile
index 7a1824a5b..ee2c3cff4 100644
--- a/package/openvpn/Makefile
+++ b/package/openvpn/Makefile
@@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= openvpn
PKG_VERSION:= 2.3.6
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_HASH:= adae2ef34c9225347a844683b88caa87cde0979b7f2390fd1776db0eb51510ed
PKG_DESCR:= vpn solution using ssl/tls
PKG_SECTION:= net/security
@@ -15,13 +15,14 @@ PKG_URL:= http://openvpn.net/
PKG_SITES:= http://swupdate.openvpn.org/community/releases/
PKG_CFLINE_OPENVPN:= select ADK_KERNEL_TUN m
-PKG_FLAVOURS_OPENVPN:= WITH_LZO WITH_MANAGEMENT WITH_HTTPPROXY WITH_SOCKS
+PKG_FLAVOURS_OPENVPN:= WITH_LZO WITH_MANAGEMENT WITH_HTTPPROXY WITH_SOCKS WITH_SMALL
PKGFD_WITH_LZO:= enable lzo compression support
PKGFS_WITH_LZO:= liblzo
PKGFB_WITH_LZO:= liblzo
PKGFD_WITH_MANAGEMENT:= enable management server support
PKGFD_WITH_HTTPPROXY:= enable http proxy support
PKGFD_WITH_SOCKS:= enable socks proxy support
+PKGFD_WITH_SMALL:= enable extra small binary
include $(ADK_TOPDIR)/mk/package.mk
@@ -51,9 +52,17 @@ else
CONFIGURE_ARGS+= --disable-socks
endif
+ifneq ($(ADK_PACKAGE_OPENVPN_WITH_SMALL),)
+CONFIGURE_ARGS+= --enable-small
+endif
+
+ifeq ($(ADK_DEBUG),y)
+CONFIGURE_ARGS+= --enable-debug
+else
+CONFIGURE_ARGS+= --disable-debug
+endif
+
CONFIGURE_ARGS+= --disable-plugins \
- --enable-small \
- --disable-debug \
--with-crypto-library=openssl \
--enable-iproute2