diff options
author | Ashish SHUKLA <ashish@FreeBSD.org> | 2015-03-29 05:17:43 +0000 |
---|---|---|
committer | Ashish SHUKLA <ashish@FreeBSD.org> | 2015-03-29 05:17:43 +0000 |
commit | 1bef36aa0c07e536cc05752709dc48cee2588a2b (patch) | |
tree | 02d6370f485c59c7d74973ac62f6ee96f6acfead /mail/opensmtpd/files | |
parent | 6014ebaef2fc946f5fc971cd4c6d882acca60098 (diff) | |
download | ports-1bef36aa0c07e536cc05752709dc48cee2588a2b.tar.gz ports-1bef36aa0c07e536cc05752709dc48cee2588a2b.zip |
- Add OPTION to only update mailer.conf(5) on demand
- Update COMMENT so it complies with guidelines in Porter's
Handbook
PR: 198375
Submitted by: adamw
Notes
Notes:
svn path=/head/; revision=382567
Diffstat (limited to 'mail/opensmtpd/files')
-rw-r--r-- | mail/opensmtpd/files/pkg-deinstall.in | 2 | ||||
-rw-r--r-- | mail/opensmtpd/files/pkg-install.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mail/opensmtpd/files/pkg-deinstall.in b/mail/opensmtpd/files/pkg-deinstall.in index 3c939c99eee1..cdc50001245a 100644 --- a/mail/opensmtpd/files/pkg-deinstall.in +++ b/mail/opensmtpd/files/pkg-deinstall.in @@ -5,7 +5,7 @@ TARGET=$2 PREFIX=$(echo %%PREFIX%% |sed -e 's,/,\\/,g') -if [ "$TARGET" = POST-DEINSTALL ]; then +if [ "$TARGET" = POST-DEINSTALL -a -z "%%MAILERCONF%%" ]; then sed -e '/[[:space:]]'$PREFIX'\/sbin\/smtpctl/d' \ -e '/[[:space:]]'$PREFIX'\/libexec\/opensmtpd\/makemap/d' \ -e 's/^### smtpd: //g' -i '' /etc/mail/mailer.conf diff --git a/mail/opensmtpd/files/pkg-install.in b/mail/opensmtpd/files/pkg-install.in index 899ad234742e..d86bb26627e9 100644 --- a/mail/opensmtpd/files/pkg-install.in +++ b/mail/opensmtpd/files/pkg-install.in @@ -3,7 +3,7 @@ PKGNAME=$1 TARGET=$2 -if [ "$TARGET" = POST-INSTALL ]; then +if [ "$TARGET" = POST-INSTALL -a -z "%%MAILERCONF%%" ]; then sed -e '/^[^#]/s/^/### smtpd: /g' -i '' /etc/mail/mailer.conf cat >>/etc/mail/mailer.conf <<EOF sendmail %%PREFIX%%/sbin/smtpctl |