diff options
Diffstat (limited to 'mail/opensmtpd-devel/files/pkg-install.in')
-rw-r--r-- | mail/opensmtpd-devel/files/pkg-install.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mail/opensmtpd-devel/files/pkg-install.in b/mail/opensmtpd-devel/files/pkg-install.in new file mode 100644 index 000000000000..899ad234742e --- /dev/null +++ b/mail/opensmtpd-devel/files/pkg-install.in @@ -0,0 +1,17 @@ +#!/bin/sh + +PKGNAME=$1 +TARGET=$2 + +if [ "$TARGET" = POST-INSTALL ]; then + sed -e '/^[^#]/s/^/### smtpd: /g' -i '' /etc/mail/mailer.conf + cat >>/etc/mail/mailer.conf <<EOF +sendmail %%PREFIX%%/sbin/smtpctl +send-mail %%PREFIX%%/sbin/smtpctl +mailq %%PREFIX%%/sbin/smtpctl +makemap %%PREFIX%%/libexec/opensmtpd/makemap +newaliases %%PREFIX%%/libexec/opensmtpd/makemap +EOF +fi + +exit 0 |