ports/165046: [PATCH] mail/postfix preserve ident in mailer.conf

Mel Flynn rflynn at acsalaska.org
Sun Feb 12 18:40:10 UTC 2012


>Number:         165046
>Category:       ports
>Synopsis:       [PATCH] mail/postfix preserve ident in mailer.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 12 18:40:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     melvyn
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD datakitty.lan.rachie.is-a-geek.net 8.2-STABLE FreeBSD 8.2-STABLE #6 r230977: Sun Feb 5 06:20:11 AKST 2012 mel at datakitty.lan.rachie.is-a-geek.net:/data/obj/data/RELENG_8/src/sys/GENERIC amd64


	
>Description:
When writing mailer.conf, the FreeBSD ident is lost, which makes
mergemaster -F show the file even if it hasn't changed in $SRC.

>How-To-Repeat:
install mail/postfix and opt to update mailer.conf

>Fix:

--- postfix.diff begins here ---
--- files/pkg-install.in.orig	2012-02-10 20:14:34.000000000 -0900
+++ files/pkg-install.in	2012-02-12 06:59:42.000000000 -0900
@@ -81,7 +81,13 @@
 	if [ ${ret} -ne 0 ]; then
 		if yesno "Would you like to activate Postfix in ${MC}" ${DEFAULT_REPLACE_MAILERCONF}; then
 			/bin/mv -f ${MC} ${MC}.old
-			echo "#"						>	${MC}
+			ident=`grep -s '\$FreeBSD: .*\$$' ${MC}.old`
+			if [ ! -z "${ident}" ]; then
+				echo ${ident}				>	${MC}
+				echo '#'				>>	${MC}
+			else
+				echo '#'				>	${MC}
+			fi
 			echo -n "# Execute the Postfix sendmail program"	>>	${MC}
 			echo ", named ${PREFIX}/sbin/sendmail"			>>	${MC}
 			echo "#"						>>	${MC}
--- postfix.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list