2004-08-02 05:59:21 +02:00
|
|
|
QMAIL_QUEUE_EXTRA=@QMAIL_QUEUE_EXTRA@
|
|
|
|
|
2004-08-23 05:47:48 +02:00
|
|
|
psmsg='#
|
|
|
|
# This file was auto-generated by pkgsrc.'
|
2004-08-02 05:59:21 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2004-08-23 05:47:48 +02:00
|
|
|
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
|
|
|
|
|
2004-08-02 05:59:21 +02:00
|
|
|
if ! [ -s ${PKG_SYSCONFDIR}/control/concurrencyincoming ]; then
|
|
|
|
${ECHO} 20 > ${PKG_SYSCONFDIR}/control/concurrencyincoming
|
2004-08-23 05:47:48 +02:00
|
|
|
${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/control/concurrencyincoming
|
2004-08-02 05:59:21 +02:00
|
|
|
${CHMOD} 644 ${PKG_SYSCONFDIR}/control/concurrencyincoming
|
|
|
|
fi
|
|
|
|
|
|
|
|
if ! [ -s ${PKG_SYSCONFDIR}/control/defaultdelivery ]; then
|
|
|
|
${ECHO} ./Mailbox > ${PKG_SYSCONFDIR}/control/defaultdelivery
|
2004-08-23 05:47:48 +02:00
|
|
|
${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/control/defaultdelivery
|
2004-08-02 05:59:21 +02:00
|
|
|
${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
|
2004-08-23 05:47:48 +02:00
|
|
|
${ECHO} "$psmsg" > ${PKG_SYSCONFDIR}/tcp.${i}
|
2004-08-02 05:59:21 +02:00
|
|
|
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
|
2004-08-23 05:47:48 +02:00
|
|
|
${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/alias/.qmail-${QMAIL_QUEUE_EXTRA}
|
2004-08-02 05:59:21 +02:00
|
|
|
${CHMOD} 644 ${PKG_SYSCONFDIR}/alias/.qmail-${QMAIL_QUEUE_EXTRA}
|
|
|
|
fi
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|