summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authorfox <fox@pkgsrc.org>2020-01-25 23:48:31 +0000
committerfox <fox@pkgsrc.org>2020-01-25 23:48:31 +0000
commit8f7483aafc5403d1208aeed4856690e7e6200cbf (patch)
treecfc8844aec0f6b79fe742dc192ae55f50d19ab1a /chat
parentd6e19f2a442815a51cb07ce3811c42bee1712d15 (diff)
downloadpkgsrc-8f7483aafc5403d1208aeed4856690e7e6200cbf.tar.gz
chat/ircd-hybrid: Adds option for supporting GnuTLS.
Thanks to leot@ for reviewing.
Diffstat (limited to 'chat')
-rw-r--r--chat/ircd-hybrid/options.mk14
1 files changed, 10 insertions, 4 deletions
diff --git a/chat/ircd-hybrid/options.mk b/chat/ircd-hybrid/options.mk
index b2cfd46bedf..d2849adc9d6 100644
--- a/chat/ircd-hybrid/options.mk
+++ b/chat/ircd-hybrid/options.mk
@@ -1,17 +1,23 @@
-# $NetBSD: options.mk,v 1.5 2020/01/23 10:06:22 fox Exp $
+# $NetBSD: options.mk,v 1.6 2020/01/25 23:48:31 fox Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ircd-hybrid
-PKG_SUPPORTED_OPTIONS= ssl
+
+PKG_OPTIONS_OPTIONAL_GROUPS= ssl
+PKG_OPTIONS_GROUP.ssl= gnutls ssl
+
PKG_SUGGESTED_OPTIONS= ssl
.include "../../mk/bsd.options.mk"
###
-### Enable OpenSSL support
+### SSL support
###
.if !empty(PKG_OPTIONS:Mssl)
-.include "../../security/openssl/buildlink3.mk"
+. include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --with-tls=openssl
+.elif !empty(PKG_OPTIONS:Mgnutls)
+. include "../../security/gnutls/buildlink3.mk"
+CONFIGURE_ARGS+= --with-tls=gnutls
.else
CONFIGURE_ARGS+= --with-tls=none
.endif