freebsd-ports/mail/opensmtpd-devel/files/pkg-install.in
Ashish SHUKLA 49ce9770f2 OpenSMTPD is a FREE implementation of the server-side SMTP protocol as
defined by RFC 5321, with some additional standard extensions. It
allows ordinary machines to exchange e-mails with other systems
speaking the SMTP protocol.

This port packages the development snapshots released by OpenSMTPD team.

WWW:	http://www.OpenSMTPD.org/

Changes:		http://article.gmane.org/gmane.mail.opensmtpd.general/738
2013-06-30 21:30:52 +00:00

17 lines
410 B
Bash

#!/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