Subject: pkg/33316: net/net-snmp: snmptrapd "-u" option is deprecated
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <ykomatsu@akaumigame.org>
List: pkgsrc-bugs
Date: 04/20/2006 12:25:00
>Number:         33316
>Category:       pkg
>Synopsis:       net/net-snmp: snmptrapd "-u" option is deprecated
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 20 12:25:00 +0000 2006
>Originator:     Yoshito Komatsu
>Release:        NetBSD 3.99.17
>Organization:
>Environment:
System: NetBSD c8.ln.akaumigame.org 3.99.17 NetBSD 3.99.17 (XENU) #0: Thu Apr 6 03:47:55 JST 2006 root@c10.ln.akaumigame.org:/usr/obj/sys/arch/i386/compile/XENU i386
Architecture: i386
Machine: i386
>Description:
	snmptrapd "-u" is deprecated.
>How-To-Repeat:
	# /etc/rc.d/snmptrapd restart
	Stopping snmptrapd.
	Waiting for PIDS: 4186.
	Starting snmptrapd.
	Warning: -u option is deprecated; use -p instead
	#
>Fix:
	Please apply the following patch.

	# diff -uNr files/snmptrapd.sh.orig files/snmptrapd.sh.orig files/snmptrapd.sh
	--- files/snmptrapd.sh.orig     2006-04-20 20:49:44.000000000 +0900
	+++ files/snmptrapd.sh  2006-04-20 20:49:52.000000000 +0900
	@@ -14,7 +14,7 @@
	 command="@PREFIX@/sbin/${name}"
	 pidfile="/var/run/${name}.pid"
	 snmptrapd_flags="-Ls 1"        # log using syslog w/ facility LOG_LOCAL1
	-command_args="-u ${pidfile}"
	+command_args="-p ${pidfile}"

	 if [ -f @PKG_SYSCONFDIR@/snmptrapd.conf ]; then
		command_args="${command_args} -c @PKG_SYSCONFDIR@/snmptrapd.conf"
	#