mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-05 12:56:08 +00:00
Update for bind-8. Also use /proc in preference to the (seemingly) always
broken ps(1).
This commit is contained in:
parent
32112b0956
commit
1f1b520f7f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35640
@ -1,25 +1,22 @@
|
||||
# $Id$
|
||||
# $Id: Makefile,v 1.4 1997/02/22 16:08:18 peter Exp $
|
||||
|
||||
.include "${.CURDIR}/../named/Makefile.inc"
|
||||
|
||||
.PATH: ${BIND_DIR}/named
|
||||
.PATH: ${BIND_DIR}/man
|
||||
.PATH: ${BIND_DIR}/bin/ndc
|
||||
.PATH: ${BIND_DIR}/doc/man
|
||||
|
||||
PROG= ndc
|
||||
STRIP=
|
||||
MAN8= ndc.8
|
||||
|
||||
CLEANFILES+= ndc
|
||||
|
||||
all: ndc
|
||||
|
||||
realinstall:
|
||||
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ndc \
|
||||
${DESTDIR}${BINDIR}
|
||||
|
||||
ndc: ndc.sh ndcedit.awk ${BIND_DIR}/Makefile
|
||||
sed -e "s|%PIDDIR%|${PIDDIR}|" \
|
||||
-e "s|%INDOT%|${INDOT}|" \
|
||||
ndc: ndc.sh ndcedit.awk ${.CURDIR}/../../usr.sbin/named/Makefile.inc
|
||||
sed -e "s|%PIDFILE%|${PIDDIR}/named.pid|" \
|
||||
-e "s|%NAMED%|named|" \
|
||||
-e "s|%PS%|${PS}|" \
|
||||
-e "s|%DESTSBIN%|${DESTSBIN}|" \
|
||||
-e "s|%IOT%|${IOT}|" \
|
||||
< ${BIND_DIR}/named/ndc.sh | awk -f ${.CURDIR}/ndcedit.awk > ndc
|
||||
< ${BIND_DIR}/bin/ndc/ndc.sh | awk -f ${.CURDIR}/ndcedit.awk > ndc
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $Id: ndcedit.awk,v 1.5 1997/05/27 07:19:57 jkh Exp $
|
||||
# $Id: ndcedit.awk,v 1.6 1997/06/18 01:55:19 jkh Exp $
|
||||
NR == 3 {
|
||||
print "#"
|
||||
print "# This file is generated automatically, do not edit it here!"
|
||||
@ -23,12 +23,16 @@ NR == 3 {
|
||||
getline
|
||||
printf "\t%s\n", $0
|
||||
printf "\t\tfi\n"
|
||||
} else if (/PS=`/) {
|
||||
printf "\tif [ -f /proc/$PID/status ]; then\n"
|
||||
printf "\t\tPS=`cat /proc/$PID/status 2>/dev/null | grep named`\n"
|
||||
printf "\telse\n"
|
||||
gsub("\t", "\t\t", $0);
|
||||
print;
|
||||
printf "\tfi\n"
|
||||
} else {
|
||||
if (/PATH=/) {
|
||||
gsub(":/usr/ucb:", ":", $0);
|
||||
if (!/export/) {
|
||||
$0=$0"\nexport PATH";
|
||||
}
|
||||
}
|
||||
print;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user