diff options
Diffstat (limited to 'mail/opensmtpd-devel/files/pkg-deinstall.in')
-rw-r--r-- | mail/opensmtpd-devel/files/pkg-deinstall.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mail/opensmtpd-devel/files/pkg-deinstall.in b/mail/opensmtpd-devel/files/pkg-deinstall.in new file mode 100644 index 000000000000..3c939c99eee1 --- /dev/null +++ b/mail/opensmtpd-devel/files/pkg-deinstall.in @@ -0,0 +1,14 @@ +#!/bin/sh + +PKGNAME=$1 +TARGET=$2 + +PREFIX=$(echo %%PREFIX%% |sed -e 's,/,\\/,g') + +if [ "$TARGET" = POST-DEINSTALL ]; then + sed -e '/[[:space:]]'$PREFIX'\/sbin\/smtpctl/d' \ + -e '/[[:space:]]'$PREFIX'\/libexec\/opensmtpd\/makemap/d' \ + -e 's/^### smtpd: //g' -i '' /etc/mail/mailer.conf +fi + +exit 0 |