2009-04-09 02:48:06 +02:00
|
|
|
# $NetBSD: Makefile,v 1.20 2009/04/09 00:48:10 joerg Exp $
|
2004-09-01 22:13:04 +02:00
|
|
|
#
|
|
|
|
|
2005-04-15 07:15:55 +02:00
|
|
|
DISTNAME= djbdns-run-20050415
|
2004-09-01 22:13:04 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= # empty
|
|
|
|
DISTFILES= # empty
|
|
|
|
|
|
|
|
MAINTAINER= schmonz@NetBSD.org
|
|
|
|
COMMENT= Configures djbdns to cache and serve queries
|
|
|
|
|
|
|
|
DEPENDS_DJBDNS= djbdns>=1.05nb5:../../net/djbdns
|
|
|
|
DEPENDS+= ${DEPENDS_DJBDNS}
|
|
|
|
DEPENDS+= daemontools-[0-9]*:../../sysutils/daemontools
|
|
|
|
DEPENDS+= ucspi-tcp-[0-9]*:../../net/ucspi-tcp
|
|
|
|
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2008-06-12 04:14:13 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2004-09-01 22:13:04 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}
|
2006-01-08 15:08:58 +01:00
|
|
|
NO_BUILD= yes
|
2004-09-01 22:13:04 +02:00
|
|
|
|
|
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/axfrdns
|
|
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/dnscache/ip
|
|
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/dnscache/servers
|
2005-01-26 08:01:10 +01:00
|
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/rbldns
|
2004-09-01 22:13:04 +02:00
|
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/tinydns
|
|
|
|
PKG_GROUPS= djbdns
|
2006-04-23 02:12:35 +02:00
|
|
|
PKG_USERS+= dnslog:djbdns
|
|
|
|
PKG_USERS+= axfrdns:djbdns
|
|
|
|
PKG_USERS+= dnscache:djbdns
|
|
|
|
PKG_USERS+= rbldns:djbdns
|
|
|
|
PKG_USERS+= tinydns:djbdns
|
2005-04-15 07:15:55 +02:00
|
|
|
RCD_SCRIPTS= axfrdns djbdns dnscache rbldns tinydns
|
2005-12-05 21:49:47 +01:00
|
|
|
FILES_SUBST+= PKGNAME=${PKGNAME:Q}
|
2004-09-01 22:13:04 +02:00
|
|
|
|
2008-06-16 16:48:42 +02:00
|
|
|
INSTALLATION_DIRS= share/doc/djbdns-run
|
2004-09-01 22:13:04 +02:00
|
|
|
|
|
|
|
.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.
|
2006-07-11 00:59:26 +02:00
|
|
|
#
|
|
|
|
.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
|
2004-09-01 22:13:04 +02:00
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2008-06-16 16:48:42 +02:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/README.pkgsrc ${DESTDIR}${PREFIX}/share/doc/djbdns-run
|
2004-09-01 22:13:04 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|