diff options
author | Remko van der Vossen | 2022-12-02 13:09:17 +0100 |
---|---|---|
committer | Remko van der Vossen | 2022-12-02 13:09:17 +0100 |
commit | d22f5168d220c49bf204f1e208963a81e7c1b439 (patch) | |
tree | 2f9f880c638e1d68666509d02996515e6e09e138 /ftp | |
parent | ce4e05956d442043d535f74f76af5ecbbbd8e38f (diff) |
wget2: add SSL sub depends
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/wget2/HISTORY | 2 | ||||
-rwxr-xr-x | ftp/wget2/PRE_SUB_DEPENDS | 8 | ||||
-rwxr-xr-x | ftp/wget2/REPAIR^all^PRE_SUB_DEPENDS | 8 | ||||
-rwxr-xr-x | ftp/wget2/SUB_DEPENDS | 13 |
4 files changed, 31 insertions, 0 deletions
diff --git a/ftp/wget2/HISTORY b/ftp/wget2/HISTORY index 2987bdb077..a683a0e8fd 100644 --- a/ftp/wget2/HISTORY +++ b/ftp/wget2/HISTORY @@ -1,6 +1,8 @@ 2022-12-02 Remko van der Vossen <wich@sourcemage.org> * BUILD, CONFIGURE, DEPENDS: use optional_depends_one_of for SSL library selection + * SUB_DEPENDS, PRE_SUB_DEPENDS, REPAIR^all^PRE_SUB_DEPENDS: + add SSL sub depends 2022-05-28 Treeve Jelbert <treeve@sourcemage.org> * DETAILS: version 2.0.1 diff --git a/ftp/wget2/PRE_SUB_DEPENDS b/ftp/wget2/PRE_SUB_DEPENDS new file mode 100755 index 0000000000..f50ffc8104 --- /dev/null +++ b/ftp/wget2/PRE_SUB_DEPENDS @@ -0,0 +1,8 @@ +case $THIS_SUB_DEPENDS in + SSL) is_depends_enabled $SPELL gnutls \ + || is_depends_enabled $SPELL openssl \ + || is_depends_enabled $SPELL libressl \ + || is_depends_enabled $SPELL wolfssl ;; + *) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL $THIS_SUB_DEPENDS${DEFAULT_COLOR}" + return 1;; +esac diff --git a/ftp/wget2/REPAIR^all^PRE_SUB_DEPENDS b/ftp/wget2/REPAIR^all^PRE_SUB_DEPENDS new file mode 100755 index 0000000000..f50ffc8104 --- /dev/null +++ b/ftp/wget2/REPAIR^all^PRE_SUB_DEPENDS @@ -0,0 +1,8 @@ +case $THIS_SUB_DEPENDS in + SSL) is_depends_enabled $SPELL gnutls \ + || is_depends_enabled $SPELL openssl \ + || is_depends_enabled $SPELL libressl \ + || is_depends_enabled $SPELL wolfssl ;; + *) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL $THIS_SUB_DEPENDS${DEFAULT_COLOR}" + return 1;; +esac diff --git a/ftp/wget2/SUB_DEPENDS b/ftp/wget2/SUB_DEPENDS new file mode 100755 index 0000000000..4d67b21ade --- /dev/null +++ b/ftp/wget2/SUB_DEPENDS @@ -0,0 +1,13 @@ +. "$GRIMOIRE/depends_one_of.function" + +case $THIS_SUB_DEPENDS in + SSL) message "$SPELL with SSL backend is requested, forcing it" && + depends_one_of WGET_SSL \ + gnutls '--with-ssl=gnutls' \ + openssl '--with-ssl=openssl' \ + libressl '--with-ssl=openssl' \ + wolfssl '--with-ssl=wolfssl' \ + 'SSL library' + ;; + *) echo "unknown sub_depends $THIS_SUB_DEPENDS"; false ;; +esac |