2006-04-23 02:12:35 +02:00
|
|
|
# $NetBSD: Makefile,v 1.36 2006/04/23 00:12:40 jlam Exp $
|
2002-03-28 03:17:18 +01:00
|
|
|
|
2005-12-12 21:34:14 +01:00
|
|
|
DISTNAME= nsd-2.3.3
|
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
|
|
|
|
2004-02-15 19:47:04 +01:00
|
|
|
BUILD_DEFS+= USE_INET6
|
2006-04-06 08:21:32 +02:00
|
|
|
BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.7
|
2004-02-15 19:47:04 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2003-06-17 09:50:44 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFDIR:Q}
|
2004-02-16 22:55:14 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-bind8-stats
|
|
|
|
CONFIGURE_ARGS+=--with-libwrap=${BUILDLINK_PREFIX.tcp_wrappers}
|
|
|
|
.if !defined(USE_INET6)
|
|
|
|
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
|
2005-11-05 22:27:53 +01:00
|
|
|
CONFIGURE_ARGS+=--with-user=nsd
|
|
|
|
CONFIGURE_ARGS+=--with-dbfile=${VARBASE}/db/nsd.db
|
|
|
|
|
|
|
|
RCD_SCRIPTS= nsd
|
|
|
|
FILES_SUBST+= NSDDB=${VARBASE}/db/nsd.db
|
|
|
|
|
2006-04-23 02:12:35 +02:00
|
|
|
PKG_GROUPS?= nsd
|
|
|
|
PKG_USERS?= nsd:nsd
|
2005-11-05 22:27:53 +01:00
|
|
|
|
|
|
|
.for _file_ in nsd.zones nsdc.conf
|
2006-04-23 02:12:35 +02:00
|
|
|
CONF_FILES+= ${EXAMPLEDIR}/${_file_} ${PKG_SYSCONFDIR}/nsd/${_file_}
|
2005-11-05 22:27:53 +01:00
|
|
|
.endfor
|
2002-04-03 05:44:32 +02:00
|
|
|
|
2004-02-16 22:55:14 +01:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/nsd
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/nsd/contrib
|
|
|
|
.for FILE in README RELNOTES DIFFERENCES LICENSE NSD-DATABASE TODO
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/share/nsd
|
|
|
|
.endfor
|
|
|
|
.for FILE in README build-nsdzones.pl build-nsdzones.pl.README example-plugin.c
|
2004-02-22 04:36:46 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/${FILE} ${PREFIX}/share/nsd/contrib
|
2004-02-16 22:55:14 +01:00
|
|
|
.endfor
|
|
|
|
|
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"
|