View | Details | Raw Unified | Return to bug 114952
Collapse All | Expand All

(-)net-snmp4-mine/Makefile (-3 / +3 lines)
Lines 82-88 Link Here
82
		snmpstatus snmptest snmptranslate snmptrap snmpwalk
82
		snmpstatus snmptest snmptranslate snmptrap snmpwalk
83
SBIN=		snmpd snmptrapd
83
SBIN=		snmpd snmptrapd
84
84
85
STARTUP_FILE=	${PREFIX}/etc/rc.d/snmpd.sh
85
STARTUP_FILE=	${PREFIX}/etc/rc.d/snmpd
86
86
87
CONFLICTS=	net-snmp-5.*
87
CONFLICTS=	net-snmp-5.*
88
88
Lines 135-142 Link Here
135
	@for F in ${WRKSRC}/EXAMPLE.conf  ${WRKSRC}/agent/mibgroup/examples/ucdDemoPublic.conf; do \
135
	@for F in ${WRKSRC}/EXAMPLE.conf  ${WRKSRC}/agent/mibgroup/examples/ucdDemoPublic.conf; do \
136
		${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done
136
		${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done
137
	@if [ ! -f ${STARTUP_FILE} ]; then \
137
	@if [ ! -f ${STARTUP_FILE} ]; then \
138
		${ECHO} "Creating ${PREFIX}/etc/rc.d/snmpd.sh startup file."; \
138
		${ECHO} "Creating ${STARTUP_FILE} startup file."; \
139
		${INSTALL_SCRIPT} -m 751 ${FILESDIR}/snmpd.sh.sample ${STARTUP_FILE}; \
139
		${INSTALL_SCRIPT} -m 755 ${FILESDIR}/snmpd ${STARTUP_FILE}; \
140
	 fi
140
	 fi
141
141
142
.include <bsd.port.post.mk>
142
.include <bsd.port.post.mk>
(-)net-snmp4-mine/files/snmpd (+25 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
# PROVIDE: snmpd
6
# REQUIRE: DAEMON
7
#
8
# Add the following line to /etc/rc.conf to enable snmpd:
9
#
10
# snmpd_enable="YES"
11
#
12
13
snmpd_enable=${snmpd_enable:-"NO"}
14
snmpd_flags=${snmpd_flags:-"-p /var/run/snmpd.pid"}
15
16
. /etc/rc.subr
17
18
name=snmpd
19
rcvar=`set_rcvar`
20
21
command=/usr/local/sbin/${name}
22
pidfile=/var/run/${name}.pid
23
24
load_rc_config ${name}
25
run_rc_command "$1"
(-)net-snmp4-mine/pkg-plist (-1 / +1 lines)
Lines 19-25 Link Here
19
bin/snmpusm
19
bin/snmpusm
20
bin/snmpvacm
20
bin/snmpvacm
21
bin/snmpwalk
21
bin/snmpwalk
22
etc/rc.d/snmpd.sh
22
etc/rc.d/snmpd
23
include/ucd-snmp/agent_index.h
23
include/ucd-snmp/agent_index.h
24
include/ucd-snmp/agent_read_config.h
24
include/ucd-snmp/agent_read_config.h
25
include/ucd-snmp/agent_registry.h
25
include/ucd-snmp/agent_registry.h

Return to bug 114952