Subject: pkg/15934: Cups rc.d script is using wrong config file path
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kivinen@ssh.fi>
List: netbsd-bugs
Date: 03/15/2002 18:01:26
>Number:         15934
>Category:       pkg
>Synopsis:       Cups rc.d script is using wrong config file path
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 15 08:02:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Tero Kivinen
>Release:        NetBSD 1.5ZA
>Organization:
SSH Communications Security
>Environment:
System: NetBSD kaakeli.ssh.fi 1.5ZA NetBSD 1.5ZA (KAAKELI) #6: Mon Feb 18 18:21:42 EET 2002 kivinen@kaakeli.ssh.fi:/usr/src/sys/arch/i386/compile/KAAKELI i386
Architecture: i386
Machine: i386
cups-1.1.14
>Description:

	I installed cups-1.1.14, copied the /usr/pkg/etc/rc.d/cupsd to
	the /etc/rc.d, added cupsd=YES to the rc.conf. When I then run
	the /etc/rc.d/cupsd start it complains that
	/usr/pkg/etc/cups/cups/cups.conf is not found. The cups
	package installed the config file to
	/usr/pkg/etc/cups/cups.conf so the /usr/pkg/etc/rc.d/cupsd is
	having one extra /cups/ component in the path. 

>How-To-Repeat:

	cd /usr/pkgsrc/print/cups
	make install
	cp /usr/pkg/etc/rc.d/cupsd /etc/rc.d
	echo cupsd=YES >> /etc/rc.conf
	/etc/rc.d/cupsd start

>Fix:

	Changed line

	required_files="/usr/pkg/etc/cups/cups/${name}.conf"

	to

	required_files="/usr/pkg/etc/cups/${name}.conf"
>Release-Note:
>Audit-Trail:
>Unformatted: