pkgsrc/net/djbdns-run/INSTALL
jperkin b5a3ccfbce Remove mk/find-prefix.mk usage from the net category.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-25 12:52:11 +00:00

26 lines
452 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
${PREFIX}/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