pkgsrc/mail/msmtp/options.mk
wiz 344da82e03 Update mail/msmtp to version 1.6.1, from Leonardo Taccari in PR 49820.
pkgsrc changes:
- gnome-keyring option has changed to secret option to reflect the upstream
  change. For more information please read the changelog below.

Changes:
Version 1.6.1:
- The new configure option --with-tls replaces --with-ssl.
- A new configure option --disable-gai-idn was added.

Version 1.6.0:
- Support for SOCKS proxies was added. This allows msmtp to be used with Tor.
- GNOME Keyring support now uses libsecret instead of libgnome-keyring. It is
  now documented how to use secret-tool to manage passwords for msmtp; the
  obsolete msmtp-gnome-tool script is removed.
- Configuration file security is now only checked if the file actually contains
  secrets such as passwords. (If you still store passwords in the configuration
  file, consider using the passwordeval command or a key ring instead.)
- The GSSAPI authentication method is not chosen automatically anymore, you have
  to request it manually if you really want to use it.
- From: and Date: headers are now added to mails if necessary, for compatibility
  with sendmail, postfix, exim, and other MTAs. This can be disabled with the
  add_missing_from_header and add_missing_date_header commands.
- Libidn is not required for IDN support anymore on systems where getaddrinfo()
  supports the AI_IDN flag and the GnuTLS version is >= 3.4.0.
- The new remove_bcc_headers command replaces the old keepbcc command (but the
  old command is still supported for compatibility).
- SSLv3 is disabled, and the obsolete tls_force_sslv3 command and
  --tls-force-sslv3 option have no effect anymore.
2015-04-08 05:31:59 +00:00

82 lines
2.1 KiB
Makefile

# $NetBSD: options.mk,v 1.14 2015/04/08 05:31:59 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.msmtp
PKG_OPTIONS_OPTIONAL_GROUPS= ssl
PKG_OPTIONS_GROUP.ssl= gnutls ssl
PKG_SUPPORTED_OPTIONS= gsasl idn inet6 scripts secret
PKG_SUGGESTED_OPTIONS= inet6 ssl
.include "../../mk/bsd.options.mk"
###
### SSL support
###
.if !empty(PKG_OPTIONS:Mssl)
. include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --with-ssl=openssl
CONFIGURE_ARGS+= --with-libssl-prefix=${BUILDLINK_PREFIX.openssl}
.elif !empty(PKG_OPTIONS:Mgnutls)
. include "../../security/gnutls/buildlink3.mk"
CONFIGURE_ARGS+= --with-ssl=gnutls
CONFIGURE_ARGS+= --with-libgnutls-prefix=${BUILDLINK_PREFIX.gnutls}
.else
CONFIGURE_ARGS+= --disable-ssl
.endif
###
### GNUsasl support
###
.if !empty(PKG_OPTIONS:Mgsasl)
. include "../../security/gsasl/buildlink3.mk"
CONFIGURE_ARGS+= --with-libgsasl
CONFIGURE_ARGS+= --with-libgsasl-prefix=${BUILDLINK_PREFIX.gsasl}
.else
CONFIGURE_ARGS+= --without-libgsasl
.endif
###
### Internationalized Domain Names (IDN) support
###
.if !empty(PKG_OPTIONS:Midn)
. include "../../devel/libidn/buildlink3.mk"
CONFIGURE_ARGS+= --with-libidn
CONFIGURE_ARGS+= --with-libidn-prefix=${BUILDLINK_PREFIX.libidn}
.else
CONFIGURE_ARGS+= --without-libidn
.endif
###
### GNOME keyring support (via libsecret)
###
.if !empty(PKG_OPTIONS:Msecret)
. include "../../security/libsecret/buildlink3.mk"
CONFIGURE_ARGS+= --with-libsecret
USE_TOOLS+= pkg-config
.else
CONFIGURE_ARGS+= --without-libsecret
.endif
###
### Install additional scripts
###
.if !empty(PKG_OPTIONS:Mscripts)
CHECK_INTERPRETER_SKIP+= share/msmtp/find_alias/find_alias_for_msmtp.sh \
share/msmtp/msmtpq/msmtp-queue \
share/msmtp/msmtpq/msmtpq \
share/msmtp/msmtpqueue/msmtp-enqueue.sh \
share/msmtp/msmtpqueue/msmtp-listqueue.sh \
share/msmtp/msmtpqueue/msmtp-runqueue.sh \
share/msmtp/set_sendmail/set_sendmail.sh
PLIST.scripts= yes
USE_TOOLS+= pax
INSTALLATION_DIRS+= share/msmtp
install-msmtp-scripts:
cd ${WRKSRC}/scripts && \
pax -rw find_alias msmtpq msmtpqueue \
set_sendmail vim \
${DESTDIR}${PREFIX}/share/msmtp
.else
install-msmtp-scripts:
.endif