# HG changeset patch # User David Demelier # Date 1567182250 -7200 # Node ID 2147677dba87bf9aa5e0c09a91f8f86c89095db2 # Parent ff9f0c0f36bd379341822baab3a916e28aa237db irc/ngircd: allow SSL=yes for default implementation diff -r ff9f0c0f36bd -r 2147677dba87 irc/ngircd/ngircd.sh --- a/irc/ngircd/ngircd.sh Fri Aug 30 18:14:59 2019 +0200 +++ b/irc/ngircd/ngircd.sh Fri Aug 30 18:24:10 2019 +0200 @@ -32,7 +32,7 @@ : ${LIBS:=} : ${IPV6:=yes} : ${PAM:=yes} -: ${SSL:=openssl} # openssl or gnutls +: ${SSL:=libressl} # Note: can be libressl (or yes) or gnutls. : ${ZLIB:=yes} if [ "$IPV6" = "yes" ]; then @@ -48,15 +48,19 @@ with_pam="--without-pam" fi -if [ "$SSL" = "openssl" ]; then +case "$SSL" in +"yes"|"libressl") PKGDEPENDS="libressl $PKGDEPENDS" with_ssl="--with-openssl" -elif [ "$SSL" = "gnutls" ]; then + ;; +"gnutls") PKGDEPENDS="gnutls $PKGDEPENDS" with_ssl="--with-gnutls" -else + ;; +*) with_ssl="--without-openssl --without-gnutls" -fi + ;; +esac if [ "$ZLIB" = "zlib" ]; then PKGDEPENDS="zlib $PKGDEPENDS"