blob: d1321bf6521aea357797c595162a04974fcfc4d8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
PKG_PREFIX=${PKG_PREFIX:=/usr/local}
USER=%%MAILOWN%%; UID=%%MAILUID%%
GROUP=%%MAILGRP%%; GID=%%MAILGID%%
if [ ":$2" = ":POST-INSTALL" ]; then
if [ "%%MAILCONF%%" = "y" ]; then
mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
echo "# created by courier's pkg-install" > /etc/mail/mailer.conf
echo -n "# Execute the Courier sendmail program" >> /etc/mail/mailer.conf
echo ", named ${PKG_PREFIX}/bin/sendmail" >> /etc/mail/mailer.conf
echo "#" >> /etc/mail/mailer.conf
echo "sendmail ${PKG_PREFIX}/bin/sendmail" >> /etc/mail/mailer.conf
echo "send-mail ${PKG_PREFIX}/bin/sendmail" >> /etc/mail/mailer.conf
echo "mailq ${PKG_PREFIX}/bin/mailq" >> /etc/mail/mailer.conf
echo "newaliases ${PKG_PREFIX}/sbin/makealiases" >> /etc/mail/mailer.conf
echo "Done."
fi
if [ "%%RCCONF%%" = "y" ]; then
fi
if [ "%%PERIODIC%%" = "y" ]; then
fi
fi
|