[Lunar-commits] <moonbase> wget: make it use ssl or tls. Thanks to Richard Pyne.

Florin Braescu florin at lunar-linux.org
Sun Nov 6 15:36:30 CET 2011


commit 4609dde022532ce113b59d070938717a39fed50a
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Sun Nov 6 15:36:30 2011 +0100

    wget: make it use ssl or tls. Thanks to Richard Pyne.
---
 ftp/wget/BUILD   |   12 ++++++++++++
 ftp/wget/DEPENDS |    2 +-
 2 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/ftp/wget/BUILD b/ftp/wget/BUILD
index da06fc1..ef324d1 100644
--- a/ftp/wget/BUILD
+++ b/ftp/wget/BUILD
@@ -1,5 +1,17 @@
 (
 
+  # get the alias
+  SSL=`unalias %SSL` &&
+
+  # setting the ssl option
+  if [[ $SSL == "openssl" ]] && module_installed "openssl" ; then
+        OPTS+=" --with-ssl=openssl"
+  elif [[ $SSL == "gnutls" ]] && module_installed "gnutls" ; then
+        OPTS+=" --with-ssl"
+  else
+        OPTS+=" --without-ssl"
+  fi &&
+
   ./configure --build=$BUILD             \
               --prefix=/usr              \
               --bindir=/usr/bin          \
diff --git a/ftp/wget/DEPENDS b/ftp/wget/DEPENDS
index 74976bc..c7debec 100644
--- a/ftp/wget/DEPENDS
+++ b/ftp/wget/DEPENDS
@@ -1,3 +1,3 @@
-optional_depends "gnutls"  "--with-ssl"   "--without-ssl" "for https and ftps support"
+optional_depends "%SSL"    ""             ""              "for SSL support"
 optional_depends "gettext" "--enable-nls" "--disable-nls" "for NLS support"
 optional_depends "libidn"  "--enable-iri" "--disable-iri" "for IDN/IRIs support"


More information about the Lunar-commits mailing list