pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/net-snmp Use "-Ls ..." instead of deprecated "-s" ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1f4443ab4dfc
branches:  trunk
changeset: 475973:1f4443ab4dfc
user:      tron <tron%pkgsrc.org@localhost>
date:      Mon May 31 11:47:29 2004 +0000

description:
Use "-Ls ..." instead of deprecated "-s" command line option when
starting the daemons.

diffstat:

 net/net-snmp/Makefile           |  3 ++-
 net/net-snmp/files/snmpd.sh     |  4 ++--
 net/net-snmp/files/snmptrapd.sh |  9 ++-------
 3 files changed, 6 insertions(+), 10 deletions(-)

diffs (58 lines):

diff -r 7e5aad7211ad -r 1f4443ab4dfc net/net-snmp/Makefile
--- a/net/net-snmp/Makefile     Mon May 31 10:00:42 2004 +0000
+++ b/net/net-snmp/Makefile     Mon May 31 11:47:29 2004 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.20 2004/05/14 13:30:34 adam Exp $
+# $NetBSD: Makefile,v 1.21 2004/05/31 11:47:29 tron Exp $
 
 DISTNAME=      net-snmp-5.1.1
 CATEGORIES=    net
+PKGREVISION=   1
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=net-snmp/} \
                ftp://ftp.net-smnp.org/pub/sourceforge/net-snmp/
 
diff -r 7e5aad7211ad -r 1f4443ab4dfc net/net-snmp/files/snmpd.sh
--- a/net/net-snmp/files/snmpd.sh       Mon May 31 10:00:42 2004 +0000
+++ b/net/net-snmp/files/snmpd.sh       Mon May 31 11:47:29 2004 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: snmpd.sh,v 1.3 2004/05/14 15:40:53 adam Exp $
+# $NetBSD: snmpd.sh,v 1.4 2004/05/31 11:47:29 tron Exp $
 #
 # PROVIDE: snmpd
 # REQUIRE: DAEMON
@@ -13,7 +13,7 @@
 rcvar=$name
 command="@PREFIX@/sbin/${name}"
 pidfile="/var/run/${name}.pid"
-snmpd_flags="-s -S d"          # log using syslog LOG_DAEMON
+snmpd_flags="-Ls d"            # log using syslog LOG_DAEMON
 command_args="-p ${pidfile}"
 
 if [ -f @PKG_SYSCONFDIR@/snmpd.conf ]; then
diff -r 7e5aad7211ad -r 1f4443ab4dfc net/net-snmp/files/snmptrapd.sh
--- a/net/net-snmp/files/snmptrapd.sh   Mon May 31 10:00:42 2004 +0000
+++ b/net/net-snmp/files/snmptrapd.sh   Mon May 31 11:47:29 2004 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: snmptrapd.sh,v 1.2 2003/09/12 12:07:19 uebayasi Exp $
+# $NetBSD: snmptrapd.sh,v 1.3 2004/05/31 11:47:29 tron Exp $
 #
 # PROVIDE: snmptrapd
 # REQUIRE: DAEMON
@@ -13,12 +13,7 @@
 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!)
-#   --woods
-#
-snmptrapd_flags="-s"   # log using syslog w/ facility LOG_LOCAL1
+snmptrapd_flags="-Ls 1"        # log using syslog w/ facility LOG_LOCAL1
 command_args="-u ${pidfile}"
 
 if [ -f @PKG_SYSCONFDIR@/snmptrapd.conf ]; then



Home | Main Index | Thread Index | Old Index