openvpn without ssl closes #277/#278
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>
Fri, 10 Feb 2006 21:32:10 +0000 (21:32 +0000)
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>
Fri, 10 Feb 2006 21:32:10 +0000 (21:32 +0000)
SVN-Revision: 3217

openwrt/package/Makefile
openwrt/package/openvpn/Config.in
openwrt/package/openvpn/Makefile

index 0a2731b72659abd9f01eb463f9ec2d0ab37b97d0..927ad57bb965a3c255f4feb4100282e5f3494dc9 100644 (file)
@@ -411,7 +411,9 @@ ifneq ($(BR2_PACKAGE_MPD_FLAC),)
 mpd-compile: flac-compile
 endif
 
+ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
 openvpn-compile: openssl-compile
+endif
 ifeq ($(BR2_PACKAGE_OPENVPN_LZO),y)
 openvpn-compile: liblzo-compile
 endif
index 6117a8e99cc683c0e29301aec7f21a471aaa4f6f..860a39f03472546f353dffc18543df2a0484cf1f 100644 (file)
@@ -5,13 +5,12 @@ config BR2_PACKAGE_OPENVPN
        tristate
        default m if CONFIG_DEVEL
        select BR2_PACKAGE_KMOD_TUN
-       select BR2_PACKAGE_LIBOPENSSL
        help
          Open Source VPN solution using SSL
          
          http://openvpn.net/
          
-         Depends: kmod-tun, libpthread, openssl
+         Depends: kmod-tun, libpthread
 
 config BR2_COMPILE_OPENVPN_WITH_SERVER
        prompt "Enable server support"
@@ -25,6 +24,13 @@ config BR2_COMPILE_OPENVPN_WITH_HTTP
        default y
        depends BR2_PACKAGE_OPENVPN
 
+config BR2_COMPILE_OPENVPN_WITH_OPENSSL
+       prompt "Enable openssl support"
+       bool
+       default y
+       depends BR2_PACKAGE_OPENVPN
+       select BR2_PACKAGE_LIBOPENSSL
+
 config BR2_COMPILE_OPENVPN_WITH_LZO
        prompt "Enable transparent compression (lzo)"
        bool
index a34bf4436cc6c416ccc2d1b327b10bec94c601dd..e5e1275841a50b9215ca1d66323f7996d018fe3b 100644 (file)
@@ -18,7 +18,14 @@ include $(TOPDIR)/package/rules.mk
 
 $(eval $(call PKG_template,OPENVPN,openvpn,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
 
-PKG_DEPEND:="libopenssl, kmod-tun"
+PKG_DEPEND:="kmod-tun"
+
+ifneq ($(BR2_COMPILE_OPENVPN_WITH_OPENSSL),y)
+DISABLE_OPENSSL:=--disable-ssl --disable-crypto
+else
+PKG_DEPEND+=", libopenssl"
+endif
+
 ifneq ($(BR2_COMPILE_OPENVPN_WITH_LZO),y)
 DISABLE_LZO:=--disable-lzo
 else
@@ -66,6 +73,7 @@ $(PKG_BUILD_DIR)/.configured:
                  --disable-management \
                  --disable-socks \
                  $(DISABLE_LZO) \
+                 $(DISABLE_OPENSSL) \
                  $(DISABLE_SERVER) \
                  $(DISABLE_HTTP) \
        );