2010-08-30 20:00:17 +02:00
|
|
|
# $NetBSD: Makefile,v 1.52 2010/08/30 18:00:17 pettai Exp $
|
2002-03-28 03:17:18 +01:00
|
|
|
|
2010-08-30 20:00:17 +02:00
|
|
|
DISTNAME= nsd-3.2.6
|
2002-03-28 03:17:18 +01:00
|
|
|
CATEGORIES= net
|
2002-08-28 18:05:50 +02:00
|
|
|
MASTER_SITES= http://www.nlnetlabs.nl/downloads/nsd/
|
2002-03-28 03:17:18 +01:00
|
|
|
|
2005-11-05 22:27:53 +01:00
|
|
|
MAINTAINER= joerg@NetBSD.org
|
2003-06-11 07:53:06 +02:00
|
|
|
HOMEPAGE= http://www.nlnetlabs.nl/nsd/index.html
|
2003-07-21 19:10:16 +02:00
|
|
|
COMMENT= Authoritative-only DNS server
|
2002-04-09 10:57:42 +02:00
|
|
|
|
2007-08-12 01:48:40 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2006-04-06 08:21:32 +02:00
|
|
|
BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.7
|
2004-02-15 19:47:04 +01:00
|
|
|
|
2007-09-08 00:12:10 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.nsd
|
|
|
|
PKG_SUPPORTED_OPTIONS= inet6
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
2004-02-15 19:47:04 +01:00
|
|
|
|
2003-06-17 09:50:44 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2007-08-12 01:48:40 +02:00
|
|
|
PKG_SYSCONFSUBDIR= nsd
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+=--with-configdir=${PKG_SYSCONFDIR:Q}
|
2004-02-16 22:55:14 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-bind8-stats
|
|
|
|
CONFIGURE_ARGS+=--with-libwrap=${BUILDLINK_PREFIX.tcp_wrappers}
|
2007-09-08 00:12:10 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
|
|
CONFIGURE_ARGS+=--enable-ipv6
|
|
|
|
.else
|
2004-02-16 22:55:14 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-ipv6
|
|
|
|
.endif
|
2005-11-05 22:27:53 +01:00
|
|
|
|
2004-12-29 16:42:37 +01:00
|
|
|
CONFIGURE_ARGS+=--with-pidfile=${VARBASE}/run/nsd.pid
|
2007-08-12 01:48:40 +02:00
|
|
|
CONFIGURE_ARGS+=--with-user=${NSD_USER}
|
2005-11-05 22:27:53 +01:00
|
|
|
CONFIGURE_ARGS+=--with-dbfile=${VARBASE}/db/nsd.db
|
2007-08-12 01:48:40 +02:00
|
|
|
CONFIGURE_ARGS+=--with-difffile=${VARBASE}/db/nsd-ixfr.db
|
|
|
|
CONFIGURE_ARGS+=--with-xfrdfile=${VARBASE}/db/nsd-xfrd.state
|
2006-05-02 19:32:05 +02:00
|
|
|
CONFIGURE_ARGS+=--with-ssl=${BUILDLINK_PREFIX.openssl}
|
2005-11-05 22:27:53 +01:00
|
|
|
|
|
|
|
RCD_SCRIPTS= nsd
|
|
|
|
|
2007-08-12 01:48:40 +02:00
|
|
|
NSD_USER?= nsd
|
|
|
|
NSD_GROUP?= nsd
|
|
|
|
|
|
|
|
PKG_GROUPS= ${NSD_GROUP}
|
|
|
|
PKG_USERS= ${NSD_USER}:${NSD_GROUP}
|
|
|
|
|
|
|
|
CONF_FILES+= share/examples/nsd/nsd.conf ${PKG_SYSCONFDIR}/nsd.conf
|
2005-11-05 22:27:53 +01:00
|
|
|
|
2007-08-12 01:48:40 +02:00
|
|
|
INSTALLATION_DIRS= share/examples/nsd
|
2002-04-03 05:44:32 +02:00
|
|
|
|
2004-02-16 22:55:14 +01:00
|
|
|
post-install:
|
2007-08-12 01:48:40 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/nsd.zones2nsd.conf ${DESTDIR}${PREFIX}/share/examples/nsd
|
2004-02-16 22:55:14 +01:00
|
|
|
|
2004-04-25 10:19:40 +02:00
|
|
|
.include "../../security/tcp_wrappers/buildlink3.mk"
|
2005-04-28 17:30:17 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2002-03-28 03:17:18 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|