Subject: misc/331: Whimpy Makefile fix for install of named.boot
To: None <gnats-admin>
From: None <ziff@eecs.umich.edu>
List: netbsd-bugs
Date: 07/08/1994 16:50:05
>Number: 331
>Category: misc
>Synopsis: named.boot was being installed in the wrong place.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (Misc Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 8 16:50:03 1994
>Originator: Brian Moore
>Organization:
" University of Michigan"
>Release: ?
>Environment:
Gateway 2000 4DX2/66, NetBSD 0.9C, i386, latest shared libraries as
of July 6, 1994.
System: NetBSD munch.eecs.umich.edu 0.9C NetBSD 0.9C (MUNCH) #0: Fri Jul 8 11:00:12 EDT 1994 root@munch.eecs.umich.edu:/usr/src/sys/arch/i386/compile/MUNCH i386
>Description:
Decided to play around with getting named set up and realized that
named.boot was being installed in the wrong place. In the
/usr/src/etc/Makefile for the distribution target, the files
named.boot, localhost.rev, and root.cache were being installed in
/etc/named. Looking at the man page for named, named looks for its
default boot file in /etc/named.boot, which also matches up with
the fact that the /etc/rc file does not add a -f /etc/namedb/named.boot
option to the named line.
>How-To-Repeat:
Wipe out the /etc directory and re-install the files from /usr/src/etc
and then just fire up named.
>Fix:
Here's a patch file for the fix. I also changed the install line to
fork off a sub-shell, since it seemed that it would do a cd into
namedb, and the stay there.
----------------------------- Makefile.diff ---------------------------------
*** Makefile.orig Fri Jul 8 18:47:39 1994
--- Makefile Fri Jul 8 18:52:46 1994
***************
*** 24,28 ****
BIN2= motd
! NAMEDB= localhost.rev named.boot root.cache
PCS= pcs750.bin
WCS1= wcs fppwcs poc poc1 poc2 fppoc
--- 24,28 ----
BIN2= motd
! NAMEDB= localhost.rev root.cache
PCS= pcs750.bin
WCS1= wcs fppwcs poc poc1 poc2 fppoc
***************
*** 62,67 ****
install -c -o root -g wheel -m 444 4.4BSD.dist \
${DESTDIR}/etc/mtree)
! cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
! ${DESTDIR}/etc/namedb
/bin/rm -f ${DESTDIR}/etc/localtime
ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
--- 62,70 ----
install -c -o root -g wheel -m 444 4.4BSD.dist \
${DESTDIR}/etc/mtree)
! (cd namedb; \
! install -c -o ${BINOWN} -g ${BINGRP} -m 644 named.boot \
! ${DESTDIR}/etc; \
! install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
! ${DESTDIR}/etc/namedb)
/bin/rm -f ${DESTDIR}/etc/localtime
ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
>Audit-Trail:
>Unformatted:
------------------------------------------------------------------------------