1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/mail/msmtp/Makefile
Roman Bogorodskiy d4324d8d71 mail/msmtp: depend on bash for msmtpq
When MSMTPQ option (which installs offline message queueing scripts)
is enabled, depend on shells/bash because these scripts require bash.

Bump PORTREVISION.

PR:		220439
Submitted by:	Moritz Wilhelmy
MFH:		2017Q3
2017-07-09 04:47:17 +00:00

71 lines
1.9 KiB
Makefile

# Created by: R.I.Pienaar <rip@devco.net>
# $FreeBSD$
PORTNAME= msmtp
PORTVERSION= 1.6.6
PORTREVISION= 1
CATEGORIES= mail ipv6
MASTER_SITES= SF
MAINTAINER= novel@FreeBSD.org
COMMENT= SMTP plugin for MUAs
LICENSE= GPLv3
GNU_CONFIGURE= yes
USES= gmake makeinfo pkgconfig tar:xz
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
INFO= msmtp
OPTIONS_DEFINE= DOCS GSASL NLS IDN LIBSECRET MSMTPQ
OPTIONS_RADIO= TLS
OPTIONS_RADIO_TLS= GNUTLS OPENSSL
OPTIONS_DEFAULT= MSMTPQ OPENSSL
OPTIONS_SUB= yes
GSASL_DESC= GSASL support
LIBSECRET_DESC= GNOME password management
MSMTPQ_DESC= Install offline messaging scripts
GSASL_CONFIGURE_WITH= libgsasl
GSASL_LIB_DEPENDS= libgsasl.so:security/gsasl
IDN_CONFIGURE_WITH= libidn
IDN_LIB_DEPENDS= libidn.so:dns/libidn
LIBSECRET_CONFIGURE_WITH= libsecret
LIBSECRET_LIB_DEPENDS= libsecret-1.so:security/libsecret
MSMTPQ_PORTDOCS= README.msmtpq
MSMTPQ_RUN_DEPENDS= bash:shells/bash
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
GNUTLS_CONFIGURE_ON= --with-ssl=gnutls
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
OPENSSL_USES= ssl
OPENSSL_CONFIGURE_ON= --with-ssl=openssl
OPENSSL_CONFIGURE_ENV= libssl_CFLAGS="-I${OPENSSLINC}" \
libssl_LIBS="-L${OPENSSLLIB} -lssl -lcrypto"
CERTSFILE= ${LOCALBASE}/share/certs/ca-root-nss.crt
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGNUTLS} || ${PORT_OPTIONS:MOPENSSL}
RUN_DEPENDS+= ${CERTSFILE}:security/ca_root_nss
.else
CONFIGURE_ARGS+= --with-ssl=no
.endif
post-extract:
@${REINPLACE_CMD} -e 's|/etc/ssl/certs/ca\\-certificates.crt|${CERTSFILE}|' \
${WRKSRC}/doc/msmtp.1
.if ${PORT_OPTIONS:MMSMTPQ}
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/scripts/msmtpq/msmtp-queue ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/scripts/msmtpq/msmtpq ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_SCRIPT} ${WRKSRC}/scripts/msmtpq/README.msmtpq ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>