1# $OpenBSD: Makefile.bsd-wrapper,v 1.9 2013/11/26 12:53:57 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=${CHROOTDIR}/db/nsd.db \ 21 --with-xfrdir=${CHROOTDIR}/run/xfr \ 22 --with-xfrdfile=${CHROOTDIR}/run/xfrd.state \ 23 --enable-ratelimit \ 24 --enable-root-server 25 26PROG= nsd nsd-checkconf nsd-control 27 28MAN= nsd.8 nsd-checkconf.8 nsd-control.8 nsd.conf.5 29 30all: gnu 31 32.ifndef NOMAN 33${MANALL} ${PSALL}: ${MAN} 34 35${MAN}: gnu 36.endif 37 38gnu: config.status 39 ${MAKE} 40 41.FORCE: .IGNORE 42 43config: .FORCE 44 -rm -f config.cache 45 PATH="/bin:/usr/bin:/sbin:/usr/sbin" \ 46 ${XCFLAGS} \ 47 INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP}" \ 48 sh ${.CURDIR}/configure ${CONFIGURE_OPTS} 49 50config.status: 51 PATH="/bin:/usr/bin:/sbin:/usr/sbin" \ 52 ${XCFLAGS} \ 53 INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP}" \ 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