01f641147d
rc.d scripts (inspired by Bennett Todd's Linux init.d scripts) to run djbdns services. It also includes Jonathan de Boyne Pollard's dnscache-showctl and tinydns-showctl scripts.
26 lines
455 B
Text
26 lines
455 B
Text
psmsg='#
|
|
# This file was auto-generated by pkgsrc.'
|
|
|
|
case ${STAGE} in
|
|
|
|
POST-INSTALL)
|
|
|
|
cd ${PKG_SYSCONFDIR}/axfrdns
|
|
if ! [ -s tcp ]; then
|
|
${ECHO} ':allow,AXFR=""' > tcp
|
|
${ECHO} "$psmsg" >> tcp
|
|
${CHMOD} 644 tcp
|
|
fi
|
|
${LOCALBASE}/bin/tcprules tcp.cdb tcp.tmp < tcp
|
|
${CHMOD} 644 tcp.cdb
|
|
|
|
cd ${PKG_SYSCONFDIR}/dnscache
|
|
${TOUCH} ip/127.0.0.1
|
|
${CHMOD} 644 ip/127.0.0.1
|
|
if ! [ -s servers/@ ]; then
|
|
${CP} ../dnsroots.global servers/@
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|