summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kalika <max@gentoo.org>2003-09-19 21:49:35 +0000
committerMax Kalika <max@gentoo.org>2003-09-19 21:49:35 +0000
commit74a20eafcb60f6eb43064fc6b30a6ec5edd563bf (patch)
treec0c270c5b3e4d65f6d9a4100e8e720b679d7637e /net-analyzer/net-snmp/files
parentadd makeopts back (diff)
downloadgentoo-2-74a20eafcb60f6eb43064fc6b30a6ec5edd563bf.tar.gz
gentoo-2-74a20eafcb60f6eb43064fc6b30a6ec5edd563bf.tar.bz2
gentoo-2-74a20eafcb60f6eb43064fc6b30a6ec5edd563bf.zip
Major rewrite, see ChangeLog.
Diffstat (limited to 'net-analyzer/net-snmp/files')
-rw-r--r--net-analyzer/net-snmp/files/digest-net-snmp-5.0.9-r11
-rw-r--r--net-analyzer/net-snmp/files/snmpd.conf8
-rw-r--r--net-analyzer/net-snmp/files/snmpd.rc627
3 files changed, 36 insertions, 0 deletions
diff --git a/net-analyzer/net-snmp/files/digest-net-snmp-5.0.9-r1 b/net-analyzer/net-snmp/files/digest-net-snmp-5.0.9-r1
new file mode 100644
index 000000000000..6c16ce856e79
--- /dev/null
+++ b/net-analyzer/net-snmp/files/digest-net-snmp-5.0.9-r1
@@ -0,0 +1 @@
+MD5 cecd5ec74f5c546c1ea7ed7987b5932b net-snmp-5.0.9.tar.gz 2345822
diff --git a/net-analyzer/net-snmp/files/snmpd.conf b/net-analyzer/net-snmp/files/snmpd.conf
new file mode 100644
index 000000000000..b19dd59be37e
--- /dev/null
+++ b/net-analyzer/net-snmp/files/snmpd.conf
@@ -0,0 +1,8 @@
+# Initial options
+SNMPD_FLAGS=""
+
+# Enable syslog and disable file log
+#SNMPD_FLAGS="${SNMPD_FLAGS} -s -l /dev/null"
+
+# Enable agentx socket as /var/agentx/master
+#SNMPD_FLAGS="${SNMPD_FLAGS} -x /var/agentx/master"
diff --git a/net-analyzer/net-snmp/files/snmpd.rc6 b/net-analyzer/net-snmp/files/snmpd.rc6
new file mode 100644
index 000000000000..e059d02ff623
--- /dev/null
+++ b/net-analyzer/net-snmp/files/snmpd.rc6
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+ use logger
+}
+
+checkconfig() {
+ if [ ! -e /etc/snmp/snmpd.conf ] ; then
+ eerror "You need an /etc/snmp/snmpd.conf to run snmpd"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting net-snmpd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/snmpd \
+ -- -C -c /etc/snmp/snmpd.conf ${SNMPD_FLAGS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping net-snmpd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/snmpd
+ eend $?
+}