32 lines
1.1 KiB
PHP
32 lines
1.1 KiB
PHP
|
# $NetBSD: Makefile.inc,v 1.1 2017/01/07 19:51:21 christos Exp $
|
||
|
|
||
|
USE_FORT?= yes # network client/server
|
||
|
|
||
|
NSD:=${.PARSEDIR}/dist
|
||
|
|
||
|
CPPFLAGS+=-D_OPENBSD_SOURCE
|
||
|
CPPFLAGS+=-I${NSD} -I${NSD}/../include
|
||
|
.PATH: ${NSD}
|
||
|
|
||
|
DPLIBS+= event ${NETBSDSRCDIR}/external/bsd/libevent/lib/libevent
|
||
|
DPLIBS+= ssl ${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libssl
|
||
|
DPLIBS+= crypto ${NETBSDSRCDIR}/crypto/external/bsd/openssl/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}
|