diff options
author | tron <tron> | 2004-05-31 11:47:29 +0000 |
---|---|---|
committer | tron <tron> | 2004-05-31 11:47:29 +0000 |
commit | f5223707d253a11b2f7c00e03ad91cc84128f205 (patch) | |
tree | 16ff74069fd9417aa5b8a5edb5b15f88ca4dd750 /net/net-snmp | |
parent | 57a7eeb0722699afae833adb0c299dc3a40cb094 (diff) | |
download | pkgsrc-f5223707d253a11b2f7c00e03ad91cc84128f205.tar.gz |
Use "-Ls ..." instead of deprecated "-s" command line option when
starting the daemons.
Diffstat (limited to 'net/net-snmp')
-rw-r--r-- | net/net-snmp/Makefile | 3 | ||||
-rw-r--r-- | net/net-snmp/files/snmpd.sh | 4 | ||||
-rw-r--r-- | net/net-snmp/files/snmptrapd.sh | 9 |
3 files changed, 6 insertions, 10 deletions
diff --git a/net/net-snmp/Makefile b/net/net-snmp/Makefile index 28033de7223..fecdfba03a3 100644 --- a/net/net-snmp/Makefile +++ b/net/net-snmp/Makefile @@ -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 --git a/net/net-snmp/files/snmpd.sh b/net/net-snmp/files/snmpd.sh index 34c7452855f..9a0b9328f24 100644 --- a/net/net-snmp/files/snmpd.sh +++ b/net/net-snmp/files/snmpd.sh @@ -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 @@ name="snmpd" 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 --git a/net/net-snmp/files/snmptrapd.sh b/net/net-snmp/files/snmptrapd.sh index 7225189a6c6..8a976a79749 100644 --- a/net/net-snmp/files/snmptrapd.sh +++ b/net/net-snmp/files/snmptrapd.sh @@ -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 @@ name="snmptrapd" 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 |