FreeBSD Bugzilla – Attachment 80080 Details for
Bug 114952
net-mgmt/net-snmp4 rc script starts snmpd without being enabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.89 KB, created by
Chris Cowart
on 2007-07-27 04:00:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Chris Cowart
Created:
2007-07-27 04:00:02 UTC
Size:
1.89 KB
patch
obsolete
>diff -Nrub net-snmp4-orig/Makefile net-snmp4-mine/Makefile >--- net-snmp4-orig/Makefile 2007-07-26 18:02:09.000000000 -0700 >+++ net-snmp4-mine/Makefile 2007-07-26 17:59:24.000000000 -0700 >@@ -82,7 +82,7 @@ > snmpstatus snmptest snmptranslate snmptrap snmpwalk > SBIN= snmpd snmptrapd > >-STARTUP_FILE= ${PREFIX}/etc/rc.d/snmpd.sh >+STARTUP_FILE= ${PREFIX}/etc/rc.d/snmpd > > CONFLICTS= net-snmp-5.* > >@@ -135,8 +135,8 @@ > @for F in ${WRKSRC}/EXAMPLE.conf ${WRKSRC}/agent/mibgroup/examples/ucdDemoPublic.conf; do \ > ${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done > @if [ ! -f ${STARTUP_FILE} ]; then \ >- ${ECHO} "Creating ${PREFIX}/etc/rc.d/snmpd.sh startup file."; \ >- ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/snmpd.sh.sample ${STARTUP_FILE}; \ >+ ${ECHO} "Creating ${STARTUP_FILE} startup file."; \ >+ ${INSTALL_SCRIPT} -m 755 ${FILESDIR}/snmpd ${STARTUP_FILE}; \ > fi > > .include <bsd.port.post.mk> >diff -Nrub net-snmp4-orig/files/snmpd net-snmp4-mine/files/snmpd >--- net-snmp4-orig/files/snmpd 1969-12-31 16:00:00.000000000 -0800 >+++ net-snmp4-mine/files/snmpd 2007-07-26 18:00:37.000000000 -0700 >@@ -0,0 +1,25 @@ >+#!/bin/sh >+# >+# $FreeBSD$ >+# >+# PROVIDE: snmpd >+# REQUIRE: DAEMON >+# >+# Add the following line to /etc/rc.conf to enable snmpd: >+# >+# snmpd_enable="YES" >+# >+ >+snmpd_enable=${snmpd_enable:-"NO"} >+snmpd_flags=${snmpd_flags:-"-p /var/run/snmpd.pid"} >+ >+. /etc/rc.subr >+ >+name=snmpd >+rcvar=`set_rcvar` >+ >+command=/usr/local/sbin/${name} >+pidfile=/var/run/${name}.pid >+ >+load_rc_config ${name} >+run_rc_command "$1" >diff -Nrub net-snmp4-orig/pkg-plist net-snmp4-mine/pkg-plist >--- net-snmp4-orig/pkg-plist 2007-07-26 17:48:02.000000000 -0700 >+++ net-snmp4-mine/pkg-plist 2007-07-26 18:02:23.000000000 -0700 >@@ -19,7 +19,7 @@ > bin/snmpusm > bin/snmpvacm > bin/snmpwalk >-etc/rc.d/snmpd.sh >+etc/rc.d/snmpd > include/ucd-snmp/agent_index.h > include/ucd-snmp/agent_read_config.h > include/ucd-snmp/agent_registry.h
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 114952
: 80080