Subject: pkg/17378: www/apache-1.3.26nb1 rc.d script not compatible with pre-1.5 systems
To: None <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 06/24/2002 15:52:30
>Number: 17378
>Category: pkg
>Synopsis: www/apache-1.3.26nb1 rc.d script not compatible with pre-1.5 systems
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jun 24 12:53:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Greg A. Woods
>Release: pkgsrc-2002/06/23
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD
>Description:
The test for a usable /etc/rc.subr is broken in the startup
script for www/apache. /etc/rc.subr existed in NetBSD-1.3, but
was not compatible with the usage in this script until 1.5.
>How-To-Repeat:
install www/apache-1.3.26nb1 on a machine older than NetBSD-1.5
>Fix:
Make the test explicit for other files and directories which
always have to accompany a usable version of /etc/rc.subr.
Index: files/apache.sh
===================================================================
RCS file: /cvs/master/m-NetBSD/main/pkgsrc/www/apache/files/apache.sh,v
retrieving revision 1.18
diff -c -r1.18 apache.sh
*** files/apache.sh 18 Mar 2002 12:15:37 -0000 1.18
--- files/apache.sh 24 Jun 2002 19:42:55 -0000
***************
*** 48,54 ****
${ctl_command} ${action}
}
! if [ -f /etc/rc.subr ]
then
load_rc_config $name
run_rc_command "$1"
--- 48,54 ----
${ctl_command} ${action}
}
! if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]
then
load_rc_config $name
run_rc_command "$1"
>Release-Note:
>Audit-Trail:
>Unformatted: