blob: 4d7f8fe9b57d33a0b79ba2db65eb36d982e45814 (
plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
QMAIL_QUEUE_EXTRA=@QMAIL_QUEUE_EXTRA@
psmsg='#
# This file was auto-generated by pkgsrc.'
case ${STAGE} in
POST-INSTALL)
cd ${PREFIX}/share/qmail/setup && ./config-fast `./hostname`
cd ${PKG_SYSCONFDIR}/alias && ${TOUCH} .qmail-postmaster .qmail-mailer-daemon .qmail-root
if ! [ -s ${PKG_SYSCONFDIR}/control/concurrencyofmip ]; then
${ECHO} 20 > ${PKG_SYSCONFDIR}/control/concurrencyofmip
${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/control/concurrencyofmip
${CHMOD} 644 ${PKG_SYSCONFDIR}/control/concurrencyofmip
fi
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 ofmip 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}
${PREFIX}/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
|