- Update COMMENT so it complies with guidelines in Porter's Handbook PR: 198375 Submitted by: adamw
18 lines
433 B
Bash
18 lines
433 B
Bash
#!/bin/sh
|
|
|
|
PKGNAME=$1
|
|
TARGET=$2
|
|
|
|
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
|
|
send-mail %%PREFIX%%/sbin/smtpctl
|
|
mailq %%PREFIX%%/sbin/smtpctl
|
|
makemap %%PREFIX%%/libexec/opensmtpd/makemap
|
|
newaliases %%PREFIX%%/libexec/opensmtpd/makemap
|
|
EOF
|
|
fi
|
|
|
|
exit 0
|