From owner-svn-ports-all@FreeBSD.ORG Wed Mar 11 13:28:06 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DFD7577E; Wed, 11 Mar 2015 13:28:06 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B0F76BDB; Wed, 11 Mar 2015 13:28:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2BDS6Gb004605; Wed, 11 Mar 2015 13:28:06 GMT (envelope-from zi@FreeBSD.org) Received: (from zi@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2BDS6sv004602; Wed, 11 Mar 2015 13:28:06 GMT (envelope-from zi@FreeBSD.org) Message-Id: <201503111328.t2BDS6sv004602@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: zi set sender to zi@FreeBSD.org using -f From: Ryan Steinmetz Date: Wed, 11 Mar 2015 13:28:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r380980 - in head/mail/proxsmtp: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2015 13:28:07 -0000 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). /* ================================================================= */