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