Subject: bin/17364: wrong path in Makefile for configuration files of bind
To: None <gnats-bugs@gnats.netbsd.org>
From: None <TripleDES@eSlack.org>
List: netbsd-bugs
Date: 06/22/2002 20:31:50
>Number:         17364
>Category:       bin
>Synopsis:       wrong path in Makefile for configuration files of bind
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 22 11:33:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Sergio Jimenez Romero
>Release:        NetBSD 1.6B
>Organization:
	HispaBSD
>Environment:
System: NetBSD odin 1.6B NetBSD 1.6B (ODIN) #0: Thu Jun 20 16:16:37 UTC 2002 root@:/usr/src/sys/arch/i386/compile/ODIN i386
Architecture: i386
Machine: i386
>Description:
	named doesn't work without /etc/named.conf and correct path will be /etc/namedb/named.conf. 
>How-To-Repeat:
	Try to run named (sh /etc/rc.d/named start) without /etc/named.conf (or /var/chroot/named/etc/named.conf in chroot environment).
>Fix:
	Index: Makefile
	===================================================================
	RCS file: /pub/NetBSD-CVS/basesrc/usr.sbin/bind/named/Makefile,v
	retrieving revision 1.10
	diff -u -r1.10 Makefile
	--- Makefile    2000/11/10 09:56:58     1.10
	+++ Makefile    2002/06/22 17:33:14
	@@ -1,4 +1,4 @@
	-#      $NetBSD: Makefile,v 1.10 2000/11/10 09:56:58 itojun Exp $
	+#      $NetBSD: Makefile,v 1.9 2000/07/04 20:27:36 matt Exp $
	 
	 .include "../Makefile.inc"
	 .PATH:         ${BIND_DIST_DIR}/bin/named \
	@@ -36,7 +36,7 @@
	            < ${BIND_DIST_DIR}/bin/named/version.c > tmp_version.c)
		        
	 pathnames.h: ${BIND_DIST_DIR}/bin/named/pathtemplate.h
	-       sed -e "s|%DESTETC%|/etc|" -e "s|%DESTSBIN%|/usr/sbin|" \
	+       sed -e "s|%DESTETC%|/etc/namedb|" -e "s|%DESTSBIN%|/usr/sbin|" \
	            -e "s|%DESTRUN%|/var/run|" -e "s|%DESTEXEC%|/usr/libexec|" \
	            < ${BIND_DIST_DIR}/bin/named/pathtemplate.h > pathnames.h
						 
>Release-Note:
>Audit-Trail:
>Unformatted: