Subject: pkg/28866: openntpd ignores PKG_SYSCONFBASE
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Kimmo Suominen <kim@tac.nyc.ny.us>
List: pkgsrc-bugs
Date: 01/04/2005 19:36:00
>Number:         28866
>Category:       pkg
>Synopsis:       openntpd ignores PKG_SYSCONFBASE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 04 19:36:00 +0000 2005
>Originator:     Kimmo Suominen
>Release:        NetBSD 2.99.11 / pkgsrc 2004-12-31
>Organization:
Kimmo Suominen
>Environment:
System: NetBSD hrothgar.gw.com 2.99.11 NetBSD 2.99.11 (GW-GENERIC) #85: Sat Jan 1 11:30:14 EST 2005 kim@hrothgar.gw.com:/usr/src/sys/arch/i386/compile/GW-GENERIC i386
Architecture: i386
Machine: i386
>Description:
The openntpd daemon and its sample rc.d script don't agree on the
location of the configuration file.  It seems that the daemon has
a hard-coded path in it that ignores PKG_SYSCONFBASE completely.
>How-To-Repeat:
dit:/etc# env - sh /usr/pkg/share/examples/rc.d/openntpd forcestart
Starting ntpd.
/usr/pkg/etc/ntpd.conf: No such file or directory
dit:/etc# mv ntpd.conf /usr/pkg/etc/
dit:/etc# env - sh /usr/pkg/share/examples/rc.d/openntpd forcestart
/usr/pkg/share/examples/rc.d/openntpd: WARNING: /etc/ntpd.conf is not readable.
Starting ntpd.
>Fix: