19861569ce
seed file on first startup after all. Primary rationale: it is not desirable that the predictability of the first boot (whatever that may happen to be) force an upper bound on the unpredictability of random seeds for all future dnscache instances. Instead, as before, let dnscache read 128 new bytes on every startup. Just give it /dev/urandom instead of /dev/random. While here, abolish references to LOCALBASE. Bump version.
64 lines
1.8 KiB
Makefile
64 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.25 2014/12/07 04:33:30 schmonz Exp $
|
|
#
|
|
|
|
DISTNAME= djbdns-run-20141207
|
|
CATEGORIES= net
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= schmonz@NetBSD.org
|
|
COMMENT= Configures djbdns to cache and serve queries
|
|
LICENSE= 2-clause-bsd
|
|
|
|
DEPENDS_DJBDNS= djbdns>=1.05nb5:../../net/djbdns
|
|
DEPENDS+= ${DEPENDS_DJBDNS}
|
|
DEPENDS+= daemontools-[0-9]*:../../sysutils/daemontools
|
|
DEPENDS+= ucspi-tcp-[0-9]*:../../net/ucspi-tcp
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
NO_BUILD= yes
|
|
NO_CHECKSUM= yes
|
|
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/axfrdns
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/dnscache/ip
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/dnscache/servers
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/rbldns
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/tinydns
|
|
PKG_GROUPS= djbdns
|
|
PKG_USERS+= dnslog:djbdns
|
|
PKG_USERS+= axfrdns:djbdns
|
|
PKG_USERS+= dnscache:djbdns
|
|
PKG_USERS+= rbldns:djbdns
|
|
PKG_USERS+= tinydns:djbdns
|
|
RCD_SCRIPTS= axfrdns djbdns dnscache rbldns tinydns
|
|
FILES_SUBST+= PKGNAME=${PKGNAME:Q}
|
|
|
|
INSTALLATION_DIRS= share/doc/djbdns-run
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# Detect the PKG_SYSCONFDIR of the installed djbdns, so we can create
|
|
# config files there and refer to them from rc.d scripts.
|
|
#
|
|
.if !defined(PKG_SYSCONFDIR.djbdns-run)
|
|
PKG_SYSCONFDIR.djbdns-run!= \
|
|
${PKG_INFO} -Q PKG_SYSCONFDIR \
|
|
${DEPENDS_DJBDNS:C/:.*$//:Q} 2>/dev/null || \
|
|
${ECHO} "PKG_SYSCONFDIR.djbdns-run_not_set"
|
|
. if empty(PKG_SYSCONFDIR.djbdns-run:M*not_set)
|
|
MAKEVARS+= PKG_SYSCONFDIR.djbdns-run
|
|
. endif
|
|
.endif
|
|
|
|
DJBDNS_TOOLS= daemontools djbdns ucspi-tcp
|
|
|
|
.for i in ${DJBDNS_TOOLS}
|
|
DJBDNS_TOOL_VAR.${i}= ${i:S/-/_/g:tu}_PREFIX
|
|
EVAL_PREFIX+= ${DJBDNS_TOOL_VAR.${i}}=${i}
|
|
FILES_SUBST+= ${DJBDNS_TOOL_VAR.${i}}=${${DJBDNS_TOOL_VAR.${i}}:Q}
|
|
.endfor
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${FILESDIR}/README.pkgsrc ${DESTDIR}${PREFIX}/share/doc/djbdns-run
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|