57 lines
2.1 KiB
Makefile
57 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.34 2019/06/19 17:50:30 schmonz Exp $
|
|
#
|
|
|
|
DISTNAME= djbdns-run-20190619
|
|
CATEGORIES= net
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= schmonz@NetBSD.org
|
|
COMMENT= Configures djbdns to cache and serve queries
|
|
LICENSE= 2-clause-bsd
|
|
|
|
DEPENDS+= ${DEPENDS_DJBDNS}
|
|
DEPENDS+= daemontools-[0-9]*:../../sysutils/daemontools
|
|
|
|
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_DJBDNS_GROUP}
|
|
PKG_USERS+= ${DJBDNS_AXFR_USER}:${DJBDNS_DJBDNS_GROUP}
|
|
PKG_USERS+= ${DJBDNS_CACHE_USER}:${DJBDNS_DJBDNS_GROUP}
|
|
PKG_USERS+= ${DJBDNS_LOG_USER}:${DJBDNS_DJBDNS_GROUP}
|
|
PKG_USERS+= ${DJBDNS_RBL_USER}:${DJBDNS_DJBDNS_GROUP}
|
|
PKG_USERS+= ${DJBDNS_TINY_USER}:${DJBDNS_DJBDNS_GROUP}
|
|
RCD_SCRIPTS= djbdns axfrdns dnscache rbldns tinydns
|
|
FILES_SUBST+= DJBDNS_AXFR_USER=${DJBDNS_AXFR_USER:Q}
|
|
FILES_SUBST+= DJBDNS_CACHE_USER=${DJBDNS_CACHE_USER:Q}
|
|
FILES_SUBST+= DJBDNS_LOG_USER=${DJBDNS_LOG_USER:Q}
|
|
FILES_SUBST+= DJBDNS_RBL_USER=${DJBDNS_RBL_USER:Q}
|
|
FILES_SUBST+= DJBDNS_TINY_USER=${DJBDNS_TINY_USER:Q}
|
|
FILES_SUBST+= PKGNAME=${PKGNAME:Q}
|
|
|
|
INSTALLATION_DIRS= share/doc/djbdns-run share/examples/djbdns-run
|
|
BUILD_DEFS+= DJBDNS_AXFR_USER DJBDNS_CACHE_USER DJBDNS_LOG_USER
|
|
BUILD_DEFS+= DJBDNS_RBL_USER DJBDNS_TINY_USER
|
|
BUILD_DEFS+= DJBDNS_DJBDNS_GROUP
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/${PKGBASE}/dnsroots.global \
|
|
${PKG_SYSCONFDIR}/dnscache/servers/@
|
|
CONF_FILES+= ${PREFIX}/share/examples/${PKGBASE}/axfrdns-tcp \
|
|
${PKG_SYSCONFDIR}/axfrdns/tcp
|
|
|
|
.include "options.mk"
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${FILESDIR}/README.pkgsrc ${DESTDIR}${PREFIX}/share/doc/djbdns-run
|
|
${INSTALL_DATA} ${FILESDIR}/axfrdns-tcp ${DESTDIR}${PREFIX}/share/examples/djbdns-run
|
|
${INSTALL_DATA} ${FILESDIR}/dnscache-ip ${DESTDIR}${PREFIX}/share/examples/djbdns-run
|
|
${INSTALL_DATA} ${PREFIX}/${DNSROOTS_GLOBAL} ${DESTDIR}${PREFIX}/share/examples/djbdns-run
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|