[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / djbdns-run

File: [cvs.NetBSD.org] / pkgsrc / net / djbdns-run / Makefile (download)

Revision 1.34, Wed Jun 19 17:50:30 2019 UTC (9 months, 2 weeks ago) by schmonz
Branch: MAIN
CVS Tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, HEAD
Changes since 1.33: +2 -17 lines

Keep it simple: set PKG_SYSCONFSUBDIR to match net/djbdns's. Bump version just in case.

# $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"