aboutsummaryrefslogtreecommitdiff
path: root/mail/opensmtpd/files
diff options
context:
space:
mode:
authorAshish SHUKLA <ashish@FreeBSD.org>2015-03-29 05:17:43 +0000
committerAshish SHUKLA <ashish@FreeBSD.org>2015-03-29 05:17:43 +0000
commit1bef36aa0c07e536cc05752709dc48cee2588a2b (patch)
tree02d6370f485c59c7d74973ac62f6ee96f6acfead /mail/opensmtpd/files
parent6014ebaef2fc946f5fc971cd4c6d882acca60098 (diff)
downloadports-1bef36aa0c07e536cc05752709dc48cee2588a2b.tar.gz
ports-1bef36aa0c07e536cc05752709dc48cee2588a2b.zip
Notes
Diffstat (limited to 'mail/opensmtpd/files')
-rw-r--r--mail/opensmtpd/files/pkg-deinstall.in2
-rw-r--r--mail/opensmtpd/files/pkg-install.in2
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