pkgsrc/net/nsd/Makefile
ryoon e66cba3a57 Update to 4.1.11
Changelog:
1 August 2016: Wouter
        - Tag 4.1.11rc1.
        - Fix nsec3 missing for nsec3 signed parent and child for DS at zonecut.
        - Tag 4.1.11rc2.

8 July 2016: Wouter
        - Note down tracking numbers for issue JVN#63359718 JPCERT#91251865.

5 July 2016: Wouter
        - Fix #790: size-limit-xfr can stop NSD from downloading infinite zone
          transfer data size, from Toshifumi Sakaguchi.

27 June 2016: Wouter
        - Set default for min-refresh-time and min-retry-time to 0.  Behaves
          just like before, but has a configurable option in nsd.conf.
        - Fix #783: Trying to run a root server without having configured it
          silently gives wrong answers.

16 June 2016: Wouter
        - When tcp is more than half full, use short timeout for tcp session.
        - Patch for {max,min}-{refresh,retry}-time from YAMAGUCHI Takanori.
        - man page entries for max-refresh-time patch.

15 June 2016: Wouter
        - Fix build without IPv6, patch from Zdenek Kaspar.
2016-08-18 13:02:52 +00:00

70 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.86 2016/08/18 13:02:52 ryoon Exp $
DISTNAME= nsd-4.1.11
CATEGORIES= net
MASTER_SITES= http://www.nlnetlabs.nl/downloads/nsd/
MAINTAINER= pettai@NetBSD.org
HOMEPAGE= http://www.nlnetlabs.nl/nsd/index.html
COMMENT= Authoritative-only DNS server
LICENSE= modified-bsd
BUILD_DEFS+= VARBASE NSD_USER NSD_GROUP
FILES_SUBST+= NSD_USER=${NSD_USER} NSD_GROUP=${NSD_GROUP}
BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.7
PKG_OPTIONS_VAR= PKG_OPTIONS.nsd
PKG_SUPPORTED_OPTIONS= inet6 rrl
PKG_SUGGESTED_OPTIONS= inet6
.include "../../mk/bsd.options.mk"
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
PKG_SYSCONFSUBDIR= nsd
CONFIGURE_ARGS+=--prefix=${PREFIX:Q}
CONFIGURE_ARGS+=--localstatedir=${VARBASE}
CONFIGURE_ARGS+=--with-configdir=${PKG_SYSCONFDIR:Q}
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+=--enable-ipv6
.else
CONFIGURE_ARGS+=--disable-ipv6
.endif
.if !empty(PKG_OPTIONS:Mrrl)
CONFIGURE_ARGS+=--enable-ratelimit
.else
CONFIGURE_ARGS+=--disable-ratelimit
.endif
CONFIGURE_ARGS+=--with-pidfile=${VARBASE}/run/nsd/nsd.pid
CONFIGURE_ARGS+=--with-user=${NSD_USER}
CONFIGURE_ARGS+=--with-dbfile=${VARBASE}/nsd/nsd.db
CONFIGURE_ARGS+=--with-xfrdfile=${VARBASE}/nsd/nsd-xfrd.state
CONFIGURE_ARGS+=--with-libevent=${BUILDLINK_PREFIX.libevent}
CONFIGURE_ARGS+=--with-ssl=${BUILDLINK_PREFIX.openssl}
RCD_SCRIPTS= nsd
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
OWN_DIRS_PERMS+= ${VARBASE}/nsd ${NSD_USER} ${NSD_GROUP} 755
INSTALLATION_DIRS= share/examples/nsd
INSTALLATION_DIRS+= ${VARBASE}/nsd
CFLAGS.SunOS+= -Du_int32_t=uint32_t
.include "../../devel/libevent/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"