Subject: pkg/13707: support for www/squid on NetBSD-1.4 or older was dropped
To: None <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 08/13/2001 13:57:53
>Number:         13707
>Category:       pkg
>Synopsis:       support for www/squid on NetBSD-1.4 or older was dropped
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 13 12:09:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Greg A. Woods
>Release:        2001/08/13
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:

System: NetBSD 1.4.x

>Description:

	the changes applied from my PR#13427 dropped support for
	NetBSD-1.4 or older

	this fix may also be necessary for any non-NetBSD system using
	pksrc and using a variant of NetBSD's rc.subr stuff....

>How-To-Repeat:

	run squid using the supplied startup script on 1.4 or older

	(I'm still running a couple of 1.3.3 squid severs, for example)

>Fix:

***************
*** 56,62 ****
  	. /etc/rc.conf
  
  	extra_commands="reload rotate"
! 	load_rc_config $name
  	run_rc_command "$1"
  
  else				# old NetBSD, Solaris, Linux, etc...
--- 49,58 ----
  	. /etc/rc.conf
  
  	extra_commands="reload rotate"
! 
! 	if type load_rc_config > /dev/null 2>&1 ; then			# is this NetBSD-1.4 or older?
! 		load_rc_config $name
! 	fi
  	run_rc_command "$1"
  
  else				# old NetBSD, Solaris, Linux, etc...
>Release-Note:
>Audit-Trail:
>Unformatted: