3271e303f5
24 November 2020: Wouter - Merge PR #141: ZONEMD RR type. - tag for 4.3.4rc1. 23 November 2020: Wouter - Fix #142: NODATA answers missin SOA in authority section after CNAME chain. - Fix for CVE-2020-28935 : Fix that symlink does not interfere with chown of pidfile. - fix writepid for retvalue 0. 9 November 2020: Wouter - Fix #138: NSD returns non-EDNS answer when QUESTION is empty. - Fix to check nscount in previous fix for EDNS in formerr response when there is no question. 28 October 2020: Wouter - Remove unused init_cfg_parse routine from configlexer. 20 October 2020: Wouter - Fix to add missing closest encloser NSEC3 for wildcard nodata type DS answer. 14 October 2020: Wouter - Fix #134: IPV4_MINIMAL_RESPONSE_SIZE vs EDNS_MAX_MESSAGE_LEN. 13 October 2020: Wouter - Fix missing parenthesis on size of fix to init buffer. 12 October 2020: Wouter - Fix #127: two minor `-Wcast-qual` cleanups - Fix #126: minor header hygiene - Fix #125: include config.h in compat/setproctitle.c and fix prototype of `setproctitle` - Fix #133: fix 0-init of local ( stack ) buffer.
72 lines
1.8 KiB
Makefile
72 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.115 2020/12/18 08:47:48 nia Exp $
|
|
|
|
DISTNAME= nsd-4.3.4
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://www.nlnetlabs.nl/downloads/nsd/
|
|
|
|
MAINTAINER= pettai@NetBSD.org
|
|
HOMEPAGE= https://www.nlnetlabs.nl/projects/nsd/about/
|
|
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}
|
|
|
|
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
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
# Some _NETBSD_SOURCE definitions are required to build.
|
|
CPPFLAGS+= -D_NETBSD_SOURCE
|
|
.endif
|
|
|
|
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+= --disable-dnstap
|
|
|
|
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= nlnsd
|
|
|
|
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
|
|
|
|
.include "../../devel/libevent/buildlink3.mk"
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|