aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzi <zi@FreeBSD.org>2015-03-11 21:28:05 +0800
committerzi <zi@FreeBSD.org>2015-03-11 21:28:05 +0800
commitc45738164c2e5061e61b4e737ae15503f4cd18c2 (patch)
treeca071d936f7d3bb453e10e237e839d7818ea7550
parent4dc5d37f932c5544da37d7c39a0a52c9a7b734df (diff)
downloadfreebsd-ports-gnome-c45738164c2e5061e61b4e737ae15503f4cd18c2.tar.gz
freebsd-ports-gnome-c45738164c2e5061e61b4e737ae15503f4cd18c2.tar.zst
freebsd-ports-gnome-c45738164c2e5061e61b4e737ae15503f4cd18c2.zip
- Add ability to configure default banners
- Whitespace cleanup - Take MAINTAINERship
-rw-r--r--mail/proxsmtp/Makefile11
-rw-r--r--mail/proxsmtp/files/pkg-message.in12
2 files changed, 20 insertions, 3 deletions
diff --git a/mail/proxsmtp/Makefile b/mail/proxsmtp/Makefile
index 637920aa2244..655b1f9948eb 100644
--- a/mail/proxsmtp/Makefile
+++ b/mail/proxsmtp/Makefile
@@ -7,7 +7,7 @@ PORTREVISION= 1
CATEGORIES= mail security
MASTER_SITES= http://thewalter.net/stef/software/proxsmtp/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= zi@FreeBSD.org
COMMENT= Flexible SMTP filter which can act also as transparent proxy
LICENSE= BSD3CLAUSE
@@ -22,7 +22,16 @@ PORTDOCS= ChangeLog NEWS README
OPTIONS_DEFINE= DOCS
+PROXSMTP_BANNER?= 220 smtp.passthru
+PROXSMTP_HELO_RSP?= 250 smtp.passthru
+PROXSMTP_SMTP_EHLO_RSP?=250-smtp.passthru
+
post-patch:
+ @${REINPLACE_CMD} \
+ -e 's|220 smtp.passthru|${PROXSMTP_BANNER}|g' \
+ -e 's|250 smtp.passthru|${PROXSMTP_HELO_RSP}|g' \
+ -e 's|250-smtp.passthru|${PROXSMTP_SMTP_EHLO_RSP}|g' \
+ ${WRKSRC}/common/smtppass.c
@${REINPLACE_CMD} -e \
'/^acx_pthread_flags/s|=.*|="${PTHREAD_LIBS}"|' \
${WRKSRC}/configure
diff --git a/mail/proxsmtp/files/pkg-message.in b/mail/proxsmtp/files/pkg-message.in
index 1cdac12db3cf..c4d40526a7be 100644
--- a/mail/proxsmtp/files/pkg-message.in
+++ b/mail/proxsmtp/files/pkg-message.in
@@ -3,8 +3,16 @@ Edit /etc/rc.conf and set
proxsmtpd_enable="YES"
-to enable proxsmtpd.
+to enable proxsmtpd.
-To make it work with Postfix, see:
+To make it work with Postfix, see:
http://memberwebs.com/stef/software/proxsmtp/postfix.html
+
+You can also specify the following make variables:
+
+ PROXSMTP_BANNER="220 smtp.passthru"
+ PROXSMTP_HELO_RSP="250 smtp.passthru"
+ PROXSMTP_SMTP_EHLO_RSP="250-smtp.passthru"
+
+to define default values (or to override the defaults).
/* ================================================================= */