external/bsd/nsd/Makefile.inc
author christos <christos@NetBSD.org>
Sun, 04 Feb 2018 03:19:51 +0000
branchtrunk
changeset 274957 24b437595f28
parent 252146 74b99928a47f
child 275200 55d3d3f8c31a
permissions -rw-r--r--
switch everyone to openssl.old

# $NetBSD: Makefile.inc,v 1.3 2018/02/04 03:19:52 christos Exp $

.include <bsd.own.mk>

USE_FORT?= yes  # network client/server

NSD:=${.PARSEDIR}/dist

CPPFLAGS+=-D_OPENBSD_SOURCE
CPPFLAGS+=-I${NSD} -I${NSD}/../include
.PATH: ${NSD}

.if (${USE_INET6} != "no")
CPPFLAGS+=      -DINET6
.endif

DPLIBS+= event ${NETBSDSRCDIR}/external/bsd/libevent/lib/libevent
DPLIBS+= ssl ${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libssl
DPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libcrypto
DPLIBS+= crypt ${NETBSDSRCDIR}/lib/libcrypt
DPLIBS+= util ${NETBSDSRCDIR}/lib/libutil
DPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread

__subst: .USE
	${TOOL_SED} \
	    -e s,@nsdconfigfile@,/etc/nsd/nsd.conf, \
	    -e s,@configdir@,/etc/nsd, \
	    -e s,@dbfile@,/var/db/nsd/nsd.db, \
	    -e s,@pidfile@,/var/run/nsd.pid, \
	    -e s,@zonelistfile@,/var/db/nsd/zone.list, \
	    -e s,@zonesdir@,/etc/namedb, \
	    -e s,@user@,_nsd, \
	    -e s,@logfile@,/var/log/nsd.log, \
	    -e s,@xfrdfile@,/var/db/nsd/xfdr.state, \
	    -e s,@xfrddir@,/var/tmp, \
	    -e s,@chrootdir@,/var/chroot/nsd, \
	    -e s,@ratelimit_default@,0, < ${.ALLSRC} > ${.TARGET}