pkgsrc/mail/qmail-run/INSTALL
schmonz 4e81dcb39c Replace dependency on "qmail or netqmail" with dependency on qmail.
Remove dependency on mailwrapper. If you're on a Linux with
/etc/alternatives, for instance, you don't need it. For platforms
where mailwrapper builds and provides functionality not otherwise
available, it's still a good idea.

Remove dependency on rc.subr. Teach the rc.d scripts to start
services even in the absence of rc.subr. For full rc.d-style
functionality, rc.subr is still required.

Create control/concurrencypop3 at install time, and use it in the
qmailpop3d rc.d script. From Dave Sill's book.

Add comments to the qmail rc.d script to satisfy Linux's chkconfig
utility. From the qmailctl script in "Life with qmail".

Add qmail-procmail wrapper script to map procmail's exit codes to
qmail's. To use procmail, install it and call this script. From
Dave Sill's book.

Add qmail-qfilter-queue wrapper script. Previously part of the
qmail-qfilter package, it's moving here for the same reasons that
all my other custom scripts moved here.

Insert a blank comment line in pkgsrc-generated config files.

Bump version.
2004-08-23 03:47:48 +00:00

50 lines
1.6 KiB
Text

QMAIL_QUEUE_EXTRA=@QMAIL_QUEUE_EXTRA@
psmsg='#
# This file was auto-generated by pkgsrc.'
case ${STAGE} in
POST-INSTALL)
cd ${LOCALBASE}/share/qmail/setup && ./config-fast `./hostname`
cd ${PKG_SYSCONFDIR}/alias && ${TOUCH} .qmail-postmaster .qmail-mailer-daemon .qmail-root
if ! [ -s ${PKG_SYSCONFDIR}/control/concurrencypop3 ]; then
${ECHO} 20 > ${PKG_SYSCONFDIR}/control/concurrencypop3
${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/control/concurrencypop3
${CHMOD} 644 ${PKG_SYSCONFDIR}/control/concurrencypop3
fi
if ! [ -s ${PKG_SYSCONFDIR}/control/concurrencyincoming ]; then
${ECHO} 20 > ${PKG_SYSCONFDIR}/control/concurrencyincoming
${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/control/concurrencyincoming
${CHMOD} 644 ${PKG_SYSCONFDIR}/control/concurrencyincoming
fi
if ! [ -s ${PKG_SYSCONFDIR}/control/defaultdelivery ]; then
${ECHO} ./Mailbox > ${PKG_SYSCONFDIR}/control/defaultdelivery
${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/control/defaultdelivery
${CHMOD} 644 ${PKG_SYSCONFDIR}/control/defaultdelivery
fi
pop3rule=':allow'
smtprule='127.:allow,RELAYCLIENT=""'
for i in pop3 smtp; do
if ! [ -s ${PKG_SYSCONFDIR}/tcp.${i} ]; then
${ECHO} "$psmsg" > ${PKG_SYSCONFDIR}/tcp.${i}
eval ${ECHO} \"\$${i}rule\" > ${PKG_SYSCONFDIR}/tcp.${i}
fi
${CHMOD} 644 ${PKG_SYSCONFDIR}/tcp.${i}
${LOCALBASE}/bin/tcprules ${PKG_SYSCONFDIR}/tcp.${i}.cdb ${PKG_SYSCONFDIR}/tcp.${i}.tmp < ${PKG_SYSCONFDIR}/tcp.${i}
${CHMOD} 644 ${PKG_SYSCONFDIR}/tcp.${i}.cdb
done
if ! [ -z ${QMAIL_QUEUE_EXTRA} ]; then
${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/alias/.qmail-${QMAIL_QUEUE_EXTRA}
${CHMOD} 644 ${PKG_SYSCONFDIR}/alias/.qmail-${QMAIL_QUEUE_EXTRA}
fi
;;
esac