aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bind/ndc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bind/ndc/Makefile')
-rw-r--r--usr.sbin/bind/ndc/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/usr.sbin/bind/ndc/Makefile b/usr.sbin/bind/ndc/Makefile
new file mode 100644
index 000000000000..bbed3b651963
--- /dev/null
+++ b/usr.sbin/bind/ndc/Makefile
@@ -0,0 +1,26 @@
+# $Id$
+
+.include "${.CURDIR}/../Makefile.inc"
+
+.PATH: ${BIND_DIR}/named
+.PATH: ${BIND_DIR}/man
+
+BINDIR= ${DESTSBIN}
+MAN8= ndc.8
+CLEANFILES+= ndc
+
+all: ndc
+
+realinstall:
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ndc \
+ ${DESTDIR}${BINDIR}
+
+ndc: ndc.sh awkedit ${BIND_DIR}/Makefile
+ sed -e "s|%PIDDIR%|${PIDDIR}|" \
+ -e "s|%INDOT%|${INDOT}|" \
+ -e "s|%PS%|${PS}|" \
+ -e "s|%DESTSBIN%|${DESTSBIN}|" \
+ -e "s|%IOT%|${IOT}|" \
+ < ${BIND_DIR}/named/ndc.sh | awk -f ${.CURDIR}/awkedit > ndc
+
+.include <bsd.prog.mk>