NetBSD/external/bsd/unbound/Makefile.inc
2016-08-21 17:24:22 +00:00

27 lines
992 B
Makefile

# $NetBSD: Makefile.inc,v 1.2 2016/08/21 17:24:22 christos Exp $
USE_FORT?= yes # network client/server
UNBOUND:=${.PARSEDIR}/dist
.PATH: ${UNBOUND}/doc
CPPFLAGS += -D_OPENBSD_SOURCE
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,@ub_conf_dir@,/etc/unbound, \
-e s,@ub_conf_file@,/etc/unbound/unbound.conf, \
-e s,@UNBOUND_CHROOT_DIR@,/var/chroot/unbound, \
-e s,@UNBOUND_PIDFILE@,/var/run/unbound.pid, \
-e s,@UNBOUND_ROOTCERT_FILE@,/etc/unbound/icannbundle.pem, \
-e s,@UNBOUND_ROOTKEY_FILE@,/etc/unbound/root.key, \
-e s,@UNBOUND_RUN_DIR@,/var/chroot/unbound/etc/unbound, \
-e s,@UNBOUND_SHARE_DIR@,/etc/unbound, \
-e s,@UNBOUND_USERNAME@,_unbound, < ${.ALLSRC} > ${.TARGET}