pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/mutt mutt: add a gnutls option



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0c43ff5d43c4
branches:  trunk
changeset: 318263:0c43ff5d43c4
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Jan 22 13:19:44 2019 +0000

description:
mutt: add a gnutls option

Make the smime option error out if neither openssl nor gnutls are
enabled instead of hardcoding openssl.

No change to defaults.

diffstat:

 mail/mutt/options.mk |  26 +++++++++++++++++++++-----
 1 files changed, 21 insertions(+), 5 deletions(-)

diffs (65 lines):

diff -r a1cbed90feb9 -r 0c43ff5d43c4 mail/mutt/options.mk
--- a/mail/mutt/options.mk      Tue Jan 22 12:46:46 2019 +0000
+++ b/mail/mutt/options.mk      Tue Jan 22 13:19:44 2019 +0000
@@ -1,17 +1,21 @@
-# $NetBSD: options.mk,v 1.30 2017/06/25 14:34:25 joerg Exp $
+# $NetBSD: options.mk,v 1.31 2019/01/22 13:19:44 wiz Exp $
 
 # Global and legacy options
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.mutt
 PKG_OPTIONS_REQUIRED_GROUPS=   display
+PKG_OPTIONS_OPTIONAL_GROUPS=   ssl
 PKG_OPTIONS_GROUP.display=     curses wide-curses slang
-PKG_SUPPORTED_OPTIONS= debug gpgme idn ssl smime sasl
+PKG_OPTIONS_GROUP.ssl= gnutls openssl
+PKG_SUPPORTED_OPTIONS= debug gpgme idn smime sasl
 # TODO: add kyoto cabinet and lmdb backend options for header cache
 PKG_SUPPORTED_OPTIONS+=        mutt-hcache mutt-compressed-mbox tokyocabinet mutt-smtp
 PKG_SUPPORTED_OPTIONS+=        gssapi
-PKG_SUGGESTED_OPTIONS= curses gpgme mutt-hcache mutt-smtp smime ssl
+PKG_SUGGESTED_OPTIONS= curses gpgme mutt-hcache mutt-smtp smime openssl
 PKG_SUGGESTED_OPTIONS+= gssapi mutt-compressed-mbox
+# remove after 2019Q1
 PKG_OPTIONS_LEGACY_OPTS+=      ncurses:curses ncursesw:wide-curses
+PKG_OPTIONS_LEGACY_OPTS+=      ssl:openssl
 
 .include "../../mk/bsd.options.mk"
 
@@ -39,6 +43,16 @@
 .endif
 
 ###
+### GnuTLS
+###
+.if !empty(PKG_OPTIONS:Mgnutls)
+.  include "../../security/gnutls/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-gnutls=${BUILDLINK_PREFIX.gnutls}
+.else
+CONFIGURE_ARGS+=       --without-gnutls
+.endif
+
+###
 ### Slang
 ###
 .if !empty(PKG_OPTIONS:Mslang)
@@ -57,7 +71,7 @@
 ###
 ### SSL
 ###
-.if !empty(PKG_OPTIONS:Mssl)
+.if !empty(PKG_OPTIONS:Mopenssl)
 .  include "../../security/openssl/buildlink3.mk"
 CONFIGURE_ARGS+=       --with-ssl=${SSLBASE:Q}
 .else
@@ -71,7 +85,9 @@
 .if !empty(PKG_OPTIONS:Msmime)
 USE_TOOLS+=            perl:run
 REPLACE_PERL+=         *.pl */*.pl
-.  include "../../security/openssl/buildlink3.mk"
+.if empty(PKG_OPTIONS:Mopenssl) && empty(PKG_OPTIONS:Mgnutls)
+PKG_FAIL_REASON+=      "The smime option requires the openssl or gnutls options."
+.endif
 CONFIGURE_ARGS+=       --enable-smime
 PLIST.smime=           yes
 .else



Home | Main Index | Thread Index | Old Index