Subject: Re: pkg/19939: net/net-snmp update to 5.0.7
To: NetBSD GNATS submissions and followups <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 01/19/2003 20:39:59
Note the following corrected patch for the rc.d/snmptrapd script:

Index: net/net-snmp/files/snmptrapd.sh
===================================================================
RCS file: /cvs/master/m-NetBSD/main/pkgsrc/net/net-snmp/files/snmptrapd.sh,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 snmptrapd.sh
*** net/net-snmp/files/snmptrapd.sh	24 Oct 2002 08:29:34 -0000	1.1.1.1
--- net/net-snmp/files/snmptrapd.sh	20 Jan 2003 01:36:55 -0000
***************
*** 13,19 ****
  rcvar=$name
  command="@PREFIX@/sbin/${name}"
  pidfile="/var/run/${name}.pid"
! snmptrapd_flags="-s -l 1"	# log using syslog w/ facility LOG_LOCAL1
  command_args="-u ${pidfile}"
  
  if [ -f @PKG_SYSCONFDIR@/snmptrapd.conf ]; then
--- 13,24 ----
  rcvar=$name
  command="@PREFIX@/sbin/${name}"
  pidfile="/var/run/${name}.pid"
! 
! # XXX this should include '-S 1' to explicitly set LOG_LOCAL1, but if
! # it's there snmptrapd blows up saying "no syslog facility specified"
! # and then printing a usage message (and the old -l complains too!)
! #
! snmptrapd_flags="-s"	# log using syslog w/ facility LOG_LOCAL1
  command_args="-u ${pidfile}"
  
  if [ -f @PKG_SYSCONFDIR@/snmptrapd.conf ]; then

-- 
								Greg A. Woods

+1 416 218-0098;            <g.a.woods@ieee.org>;           <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>