aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2020-03-05 16:11:41 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2020-03-05 16:11:41 +0000
commitd1ba2708b273a200c7fb946ed7eb446716959607 (patch)
treed4fc28a9afeb9412ba6445eeebaabc3b91481f47 /mail
parented22ad5b2f3949cf8d9756c12c6deaebd9ef34f4 (diff)
downloadports-d1ba2708b273a200c7fb946ed7eb446716959607.tar.gz
ports-d1ba2708b273a200c7fb946ed7eb446716959607.zip
Notes
Diffstat (limited to 'mail')
-rw-r--r--mail/ssmtp/Makefile44
1 files changed, 24 insertions, 20 deletions
diff --git a/mail/ssmtp/Makefile b/mail/ssmtp/Makefile
index f825c3454a29..7509ceb11e39 100644
--- a/mail/ssmtp/Makefile
+++ b/mail/ssmtp/Makefile
@@ -14,29 +14,33 @@ COMMENT= Extremely simple MTA to get mail off the system to a mail hub
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
-GNU_CONFIGURE= yes
USES= gmake tar:bzip2
-GROUPS= ssmtp
+GNU_CONFIGURE= yes
-SUB_FILES+= pkg-message
MAKE_ENV+= TARGET_ARCH=
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
-MAILERCONF= /etc/mail/mailer.conf
-OPTIONS_DEFINE= LOGFILE IPV6 USERPREFS XORIGIP CRAMMD5 OPENSSL
-OPTIONS_DEFAULT=XORIGIP CRAMMD5 OPENSSL
+SUB_FILES+= pkg-message
+
+GROUPS= ssmtp
+
+OPTIONS_DEFINE= CRAMMD5 IPV6 LOGFILE OPENSSL USERPREFS XORIGIP
+OPTIONS_DEFAULT= CRAMMD5 OPENSSL XORIGIP
+
+CRAMMD5_DESC= CRAM-MD5 authentication support
LOGFILE_DESC= Log file
USERPREFS_DESC= User-defined revaliases
XORIGIP_DESC= X-Originating-IP header for REMOTE_ADDR envvar
-CRAMMD5_DESC= CRAM-MD5 authentication support
-LOGFILE_CONFIGURE_ON= --enable-logfile
-XORIGIP_EXTRA_PATCHES= ${FILESDIR}/remote-addr.patch
-IPV6_CONFIGURE_ON= --enable-inet6
CRAMMD5_CONFIGURE_ON= --enable-md5auth
-OPENSSL_CONFIGURE_ON= --enable-ssl
+IPV6_CONFIGURE_ON= --enable-inet6
+LOGFILE_CONFIGURE_ON= --enable-logfile
OPENSSL_USES= ssl
+OPENSSL_CONFIGURE_ON= --enable-ssl
+XORIGIP_EXTRA_PATCHES= ${FILESDIR}/remote-addr.patch
+
+_MAILERCONF= /etc/mail/mailer.conf
.include <bsd.port.options.mk>
@@ -52,15 +56,6 @@ post-configure:
${WRKSRC}/ssmtp.c ${WRKSRC}/ssmtp.conf
@${REINPLACE_CMD} -e "s, /etc, ${PREFIX}/etc,g" ${WRKSRC}/ssmtp.8
-replace:
- @${REINPLACE_CMD} -e 's,^[^#],#&,g' ${MAILERCONF}
- @${ECHO_CMD} "sendmail ${PREFIX}/sbin/ssmtp" >> ${MAILERCONF}
- @${ECHO_CMD} "send-mail ${PREFIX}/sbin/ssmtp" >> ${MAILERCONF}
- @${ECHO_CMD} "mailq ${PREFIX}/sbin/ssmtp" >> ${MAILERCONF}
- @${ECHO_CMD} "newaliases ${PREFIX}/sbin/ssmtp" >> ${MAILERCONF}
- @${ECHO_CMD} "hoststat /usr/bin/true" >> ${MAILERCONF}
- @${ECHO_CMD} "purgestat /usr/bin/true" >> ${MAILERCONF}
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ssmtp ${STAGEDIR}${PREFIX}/sbin/ssmtp
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/ssmtp
@@ -72,4 +67,13 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/ssmtp.conf.5 \
${STAGEDIR}${MANPREFIX}/man/man5/ssmtp.conf.5
+replace:
+ @${REINPLACE_CMD} -e 's,^[^#],#&,g' ${_MAILERCONF}
+ @${ECHO_CMD} "sendmail ${PREFIX}/sbin/ssmtp" >> ${_MAILERCONF}
+ @${ECHO_CMD} "send-mail ${PREFIX}/sbin/ssmtp" >> ${_MAILERCONF}
+ @${ECHO_CMD} "mailq ${PREFIX}/sbin/ssmtp" >> ${_MAILERCONF}
+ @${ECHO_CMD} "newaliases ${PREFIX}/sbin/ssmtp" >> ${_MAILERCONF}
+ @${ECHO_CMD} "hoststat /usr/bin/true" >> ${_MAILERCONF}
+ @${ECHO_CMD} "purgestat /usr/bin/true" >> ${_MAILERCONF}
+
.include <bsd.port.mk>