From owner-svn-ports-head@freebsd.org Tue Nov 29 18:51:21 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EBD6AC5C3A1; Tue, 29 Nov 2016 18:51:21 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 ACC271D18; Tue, 29 Nov 2016 18:51:21 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uATIpKH8098329; Tue, 29 Nov 2016 18:51:20 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uATIpKGp098326; Tue, 29 Nov 2016 18:51:20 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201611291851.uATIpKGp098326@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Tue, 29 Nov 2016 18:51:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r427390 - in head/mail/procmail: . 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-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2016 18:51:22 -0000 Author: sunpoet Date: Tue Nov 29 18:51:20 2016 New Revision: 427390 URL: https://svnweb.freebsd.org/changeset/ports/427390 Log: - Always add PREFIX/bin to procmail path - Bump PORTREVISION for package change - While I'm here, respect PREFIX and adjust config.h patch PR: 214219 Submitted by: Armin Gruner Modified: head/mail/procmail/Makefile head/mail/procmail/files/patch-config.h head/mail/procmail/files/patch-src-autoconf Modified: head/mail/procmail/Makefile ============================================================================== --- head/mail/procmail/Makefile Tue Nov 29 18:46:21 2016 (r427389) +++ head/mail/procmail/Makefile Tue Nov 29 18:51:20 2016 (r427390) @@ -3,7 +3,7 @@ PORTNAME= procmail PORTVERSION= 3.22 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= mail MASTER_SITES= ftp://ftp.ucsb.edu/pub/mirrors/procmail/ \ ftp://ftp.informatik.rwth-aachen.de/pub/packages/procmail/ \ @@ -30,7 +30,7 @@ PORTEXAMPLES= 1procmailrc 1rmail 2procma advanced dirname forward local_procmail_lmtp.m4 mailstat post-patch: - @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/config.h + @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/config.h ${WRKSRC}/src/autoconf # Allow parallel builds (-jX) to work @${FIND} ${WRKSRC} -name 'Makefile*' | ${XARGS} ${REINPLACE_CMD} -E 's|cd (.+); (\$$\(MAKE\))|\2 -C \1|' Modified: head/mail/procmail/files/patch-config.h ============================================================================== --- head/mail/procmail/files/patch-config.h Tue Nov 29 18:46:21 2016 (r427389) +++ head/mail/procmail/files/patch-config.h Tue Nov 29 18:51:20 2016 (r427390) @@ -26,12 +26,12 @@ system mailbox. This also must be an absolute path */ -#define ETCRC "/etc/procmailrc" /* optional global procmailrc startup -+#define ETCRC "%%PREFIX%%/etc/procmailrc" /* optional global procmailrc startup ++#define ETCRC "/usr/local/etc/procmailrc" /* optional global procmailrc startup file (will only be read if procmail is started with no rcfile on the command line). */ -#define ETCRCS "/etc/procmailrcs/" /* optional trusted path prefix for -+#define ETCRCS "%%PREFIX%%/etc/procmailrcs/" /* optional trusted path prefix for ++#define ETCRCS "/usr/local/etc/procmailrcs/" /* optional trusted path prefix for rcfiles which will be executed with the uid of the owner of the rcfile (this only happens if procmail is called with the -m option, without variable assignments on the command Modified: head/mail/procmail/files/patch-src-autoconf ============================================================================== --- head/mail/procmail/files/patch-src-autoconf Tue Nov 29 18:46:21 2016 (r427389) +++ head/mail/procmail/files/patch-src-autoconf Tue Nov 29 18:51:20 2016 (r427390) @@ -18,3 +18,15 @@ if $MAKE _autotst >$DEVNULL 2>&1 test -f _autotst then +@@ -1491,6 +1493,11 @@ + fi + done + ++case ":$lpath:" in ++ *:/usr/local/bin:*) ;; ++ *) lpath="$lpath:/usr/local/bin" ;; ++esac ++ + echo "#define defPATH \"PATH=\$HOME/bin:$lpath\"" >>$ACONF + echo "#define defSPATH \"PATH=$lpath\"" >>$ACONF +