1# $OpenBSD: Makefile.bsd-wrapper,v 1.13 2015/12/11 12:30:58 sthen Exp $ 2 3.include <bsd.own.mk> 4 5BINDIR= /usr/sbin 6CHROOTDIR= /var/nsd 7USER= _nsd 8 9XCFLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${COPTS}" LDFLAGS="${LDFLAGS}" \ 10 YACC="/usr/bin/yacc" 11CONFIGURE_OPTS= --prefix=/usr \ 12 --localstatedir=/var \ 13 --sysconfdir=/etc \ 14 --with-ssl=/usr \ 15 --with-user=${USER} \ 16 --with-chroot=${CHROOTDIR} \ 17 --with-configdir=${CHROOTDIR}/etc \ 18 --with-pidfile=${CHROOTDIR}/run/nsd.pid \ 19 --with-zonesdir=${CHROOTDIR}/zones \ 20 --with-dbfile="" \ 21 --with-zonelistfile="${CHROOTDIR}/db/zone.list" \ 22 --with-xfrdir=${CHROOTDIR}/run/xfr \ 23 --with-xfrdfile=${CHROOTDIR}/run/xfrd.state \ 24 --with-libevent=/usr \ 25 --enable-ratelimit \ 26 --enable-root-server 27 28PROG= nsd nsd-checkconf nsd-checkzone nsd-control 29 30MAN= nsd.8 nsd-checkconf.8 nsd-checkzone.8 nsd-control.8 nsd.conf.5 31 32all: gnu 33 34.ifndef NOMAN 35${MANALL} ${PSALL}: ${MAN} 36 37${MAN}: gnu 38.endif 39 40gnu: config.status 41 ${MAKE} 42 43.FORCE: .IGNORE 44 45config: .FORCE 46 -rm -f config.cache 47 PATH="/bin:/usr/bin:/sbin:/usr/sbin" \ 48 ${XCFLAGS} \ 49 sh ${.CURDIR}/configure ${CONFIGURE_OPTS} 50 51config.status: 52 PATH="/bin:/usr/bin:/sbin:/usr/sbin" \ 53 ${XCFLAGS} \ 54 sh ${.CURDIR}/configure ${CONFIGURE_OPTS} 55 56.ifdef NOMAN 57maninstall: 58 @echo NOMAN is set 59.endif 60 61install: maninstall 62.for file in ${PROG} 63 ${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP} \ 64 -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 65 ${file} ${DESTDIR}${BINDIR} 66.endfor 67 ${INSTALL} ${INSTALL_COPY} \ 68 -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ 69 nsd-control-setup.sh ${DESTDIR}${BINDIR}/nsd-control-setup 70 71BEFOREMAN= config.status 72 73clean cleandir: 74 -@if [ -e Makefile ]; then ${MAKE} realclean; fi 75 rm -f ${CLEANFILES} 76 77depend: 78 # Nothing here so far... 79 80lint: 81 # Nothing here so far... 82 83tags: 84 # Nothing here so far... 85 86.include <bsd.obj.mk> 87.include <bsd.subdir.mk> 88.ifndef NOMAN 89.include <bsd.man.mk> 90.endif 91