svn commit: trunk/buildroot/package/netsnmp
Author: jacmet
Date: 2008-11-04 03:26:52 -0800 (Tue, 04 Nov 2008) New Revision: 23921
Log:
netsnmp: bump version
Based on fa86c12d in Bernhards tree.
Added:
trunk/buildroot/package/netsnmp/S59snmpd
Removed:
trunk/buildroot/package/netsnmp/net-snmp-5.1.2.patch trunk/buildroot/package/netsnmp/netsnmp.patch
Modified:
trunk/buildroot/package/netsnmp/netsnmp.mk
Changeset:
Added: trunk/buildroot/package/netsnmp/S59snmpd
===================================================================
buildroot/package/netsnmp/S59snmpd +97 -0
@@ -0,0 +1,97 @@ +#! /bin/sh -e +### BEGIN INIT INFO +# Provides: snmpd snmptrapd +# Required-Start: $network $local_fs +# Required-Stop: $network $local_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 6 +# Short-Description: SNMP agents +# Description: NET SNMP (Simple Network Management Protocol) Agents +### END INIT INFO +# +# Author: Jochen Friedrich <[email protected]> +# +set -e + +export PATH=/sbin:/usr/sbin:/bin:/usr/bin + +test -x /usr/sbin/snmpd || exit 0 +test -x /usr/sbin/snmptrapd || exit 0 + +# Defaults +export MIBDIRS=/usr/share/snmp/mibs +SNMPDRUN=yes +SNMPDOPTS='-Lsd -Lf /dev/null -p /var/run/snmpd.pid 127.0.0.1' +TRAPDRUN=no +TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid' + +# Reads config file (will override defaults above) +[ -r /etc/default/snmpd ] && . /etc/default/snmpd + +ssd_oknodo="-o" +ssd_oknodo="" + +# Cd to / before starting any daemons. +cd / + +# Create compatibility link to old AgentX socket location +if [ "$SNMPDCOMPAT" = "yes" ]; then + ln -sf /var/agentx/master /var/run/agentx +fi + +case "$1" in + start) + echo -n "Starting network management services:" + if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then + start-stop-daemon -q -S -x /usr/sbin/snmpd \ + -- $SNMPDOPTS + echo -n " snmpd" + fi + if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then + start-stop-daemon -q -S -x /usr/sbin/snmptrapd \ + -- $TRAPDOPTS + echo -n " snmptrapd" + fi + echo "." + ;; + stop) + echo -n "Stopping network management services:" + start-stop-daemon -q -K $ssd_oknodo -x /usr/sbin/snmpd + echo -n " snmpd" + start-stop-daemon -q -K $ssd_oknodo -x /usr/sbin/snmptrapd + echo -n " snmptrapd" + echo "." + ;; + restart) + echo -n "Restarting network management services:" + start-stop-daemon -q -K $ssd_oknodo -x /usr/sbin/snmpd + start-stop-daemon -q -K $ssd_oknodo -x /usr/sbin/snmptrapd + # Allow the daemons time to exit completely. + sleep 2 + if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then + start-stop-daemon -q -S -x /usr/sbin/snmpd -- $SNMPDOPTS + echo -n " snmpd" + fi + if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then + # Allow snmpd time to start up. + sleep 1 + start-stop-daemon -q -S -x /usr/sbin/snmptrapd -- $TRAPDOPTS + echo -n " snmptrapd" + fi + echo "." + ;; + reload|force-reload) + echo -n "Reloading network management services:" + if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then + start-stop-daemon -q -K -s 1 \ + -p /var/run/snmpd.pid -x /usr/sbin/snmpd + echo -n " snmpd" + fi + echo "." + ;; + *) + echo "Usage: /etc/init.d/snmpd {start|stop|restart|reload|force-reload}" + exit 1 +esac + +exit 0
Property changes on: trunk/buildroot/package/netsnmp/S59snmpd
___________________________________________________________________
Name: svn:executable
+ *
Deleted: trunk/buildroot/package/netsnmp/net-snmp-5.1.2.patch
===================================================================
buildroot/package/netsnmp/net-snmp-5.1.2.patch +0 -185
185 lines not on this page · raw message
Modified: trunk/buildroot/package/netsnmp/netsnmp.mk
===================================================================
buildroot/package/netsnmp/netsnmp.mk +72 -38
178 lines not on this page · raw message
Deleted: trunk/buildroot/package/netsnmp/netsnmp.patch
===================================================================
buildroot/package/netsnmp/netsnmp.patch +0 -33
@@ -1,33 +0,0 @@ -diff -urN net-snmp-5.1-dist/agent/mibgroup/host/hr_system.c net-snmp-5.1/agent/mibgroup/host/hr_system.c ---- net-snmp-5.1-dist/agent/mibgroup/host/hr_system.c 2004-02-22 17:29:34.000000000 +0000 -+++ net-snmp-5.1/agent/mibgroup/host/hr_system.c 2005-05-27 15:15:52.363982808 +0100 -@@ -603,7 +603,11 @@ - current user */ - if (kill(utmp_p->ut_pid, 0) == -1 && errno == ESRCH) { - utmp_p->ut_type = DEAD_PROCESS; -- pututline(utmp_p); -+#if HAVE_UTMPX_H -+ pututxline(utmp_p); -+#else -+ pututline(utmp_p); -+#endif - continue; - } - #endif -diff -urN net-snmp-5.1-dist/configure.in net-snmp-5.1/configure.in ---- net-snmp-5.1-dist/configure.in 2004-03-31 21:59:14.000000000 -0600 -+++ net-snmp-5.1/configure.in 2004-03-31 22:06:05.000000000 -0600 -@@ -1865,13 +1865,8 @@ - if test $cross_compiling = yes; then - if test $with_endianness = "big"; then - AC_DEFINE(WORDS_BIGENDIAN) -- elif test -z $with_endianness; then -- AC_MSG_ERROR([You are cross-compiling, but you have not specified the target's endianness]) - fi - else -- if test $with_endianness; then -- AC_MSG_ERROR([Endianness has been specified, but you are not cross-compiling.]) -- fi - AC_C_BIGENDIAN - fi -