summaryrefslogtreecommitdiff
path: root/mail/msmtp
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-08-29 13:09:58 +0000
committertv <tv@pkgsrc.org>2005-08-29 13:09:58 +0000
commit1af924e81e619ede625a489ce9d5fef07a3b2f81 (patch)
tree36cfc5a66b0fd4bc48c6fccd26f96043c3b6caf2 /mail/msmtp
parente32ecbd153b09a48c7a2eaa2855678c82dbf38f5 (diff)
downloadpkgsrc-1af924e81e619ede625a489ce9d5fef07a3b2f81.tar.gz
Only one SSL scheme can be used. Default to (and prefer) OpenSSL; allow
fallback to gnutls of ssl is not set in OPTIONS.
Diffstat (limited to 'mail/msmtp')
-rw-r--r--mail/msmtp/options.mk32
1 files changed, 15 insertions, 17 deletions
diff --git a/mail/msmtp/options.mk b/mail/msmtp/options.mk
index e30da3747da..3214955e919 100644
--- a/mail/msmtp/options.mk
+++ b/mail/msmtp/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.6 2005/05/31 10:01:38 dillo Exp $
+# $NetBSD: options.mk,v 1.7 2005/08/29 13:09:58 tv Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.msmtp
PKG_SUPPORTED_OPTIONS= gnutls gsasl inet6 ssl
@@ -6,24 +6,22 @@ PKG_SUGGESTED_OPTIONS= ssl
.include "../../mk/bsd.options.mk"
-# GNUtls support
-.if !empty(PKG_OPTIONS:Mgnutls)
-.include "../../security/gnutls/buildlink3.mk"
-CONFIGURE_ARGS+= --with-ssl=gnutls
-.endif
-
-# GNUsasl support
-.if !empty(PKG_OPTIONS:Mgsasl)
-.include "../../security/gsasl/buildlink3.mk"
-.endif
-
-# OpenSSL support
+###
+### SSL support
+###
.if !empty(PKG_OPTIONS:Mssl)
-.include "../../security/openssl/buildlink3.mk"
+. include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --with-ssl=openssl
+.elif !empty(PKG_OPTIONS:Mgnutls)
+. include "../../security/gnutls/buildlink3.mk"
+CONFIGURE_ARGS+= --with-ssl=gnutls
+.else
+CONFIGURE_ARGS+= --disable-ssl
.endif
-# Disable any SSL support
-.if empty(PKG_OPTIONS:Mgnutls) && empty(PKG_OPTIONS:Mssl)
-CONFIGURE_ARGS+= --disable-ssl
+###
+### GNUsasl support
+###
+.if !empty(PKG_OPTIONS:Mgsasl)
+. include "../../security/gsasl/buildlink3.mk"
.endif