Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Mar 2015 13:28:06 +0000 (UTC)
From:      Ryan Steinmetz <zi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r380980 - in head/mail/proxsmtp: . files
Message-ID:  <201503111328.t2BDS6sv004602@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zi
Date: Wed Mar 11 13:28:05 2015
New Revision: 380980
URL: https://svnweb.freebsd.org/changeset/ports/380980
QAT: https://qat.redports.org/buildarchive/r380980/

Log:
  - Add ability to configure default banners
  - Whitespace cleanup
  - Take MAINTAINERship

Modified:
  head/mail/proxsmtp/Makefile
  head/mail/proxsmtp/files/pkg-message.in

Modified: head/mail/proxsmtp/Makefile
==============================================================================
--- head/mail/proxsmtp/Makefile	Wed Mar 11 12:18:05 2015	(r380979)
+++ head/mail/proxsmtp/Makefile	Wed Mar 11 13:28:05 2015	(r380980)
@@ -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

Modified: head/mail/proxsmtp/files/pkg-message.in
==============================================================================
--- head/mail/proxsmtp/files/pkg-message.in	Wed Mar 11 12:18:05 2015	(r380979)
+++ head/mail/proxsmtp/files/pkg-message.in	Wed Mar 11 13:28:05 2015	(r380980)
@@ -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).
 /* ================================================================= */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503111328.t2BDS6sv004602>