aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2011-12-26 21:22:26 +0100
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2011-12-26 21:22:26 +0100
commit4a98e62ac35d4367d3c072819317deeda52abf5e (patch)
treed715719233de6c2108ced07252e7bbab1ac1c168
parentf6df1033722a95ffbfe50e9725af5ac966edd248 (diff)
downloadopenembedded-4a98e62ac35d4367d3c072819317deeda52abf5e.tar.gz
net-snmp: added version 5.7.1
Backported from meta-oe where it was contributed by Eric BĂ©nard While at it also fixed some whitespace warnings. Gave it a DEFAULT_PREFERENCE of 1 so it gets preference above the older svn recipe (svn is deprecatted by net-snmp anyway) Rationale for adding is because the existing recipe does not build for uclibc, and the new version does. Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
-rw-r--r--recipes/net-snmp/files/snmpd.conf32
-rw-r--r--recipes/net-snmp/files/snmptrapd.conf1
-rw-r--r--recipes/net-snmp/net-snmp_5.7.1.bb28
3 files changed, 44 insertions, 17 deletions
diff --git a/recipes/net-snmp/files/snmpd.conf b/recipes/net-snmp/files/snmpd.conf
index 728171c427..4e6b2eb404 100644
--- a/recipes/net-snmp/files/snmpd.conf
+++ b/recipes/net-snmp/files/snmpd.conf
@@ -39,7 +39,7 @@
# allow me to access it?"
#
# By default, the agent responds to the "public" community for read
-# only access, if run out of the box without any configuration file in
+# only access, if run out of the box without any configuration file in
# place. The following examples show you other ways of configuring
# the agent so that you can change the community names, and give
# yourself write access as well.
@@ -150,7 +150,7 @@ syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
#proc sendmail 10 1
# A snmpwalk of the prTable would look something like this:
-#
+#
# % snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.2021.2
# enterprises.ucdavis.procTable.prEntry.prIndex.1 = 1
# enterprises.ucdavis.procTable.prEntry.prIndex.2 = 2
@@ -180,8 +180,8 @@ syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
# Note that the errorFlag for mountd is set to 1 because one is not
# running (in this case an rpc.mountd is, but thats not good enough),
# and the ErrMessage tells you what's wrong. The configuration
-# imposed in the snmpd.conf file is also shown.
-#
+# imposed in the snmpd.conf file is also shown.
+#
# Special Case: When the min and max numbers are both 0, it assumes
# you want a max of infinity and a min of 1.
#
@@ -220,7 +220,7 @@ syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
#
#exec shelltest /bin/sh /tmp/shtest
-# Then,
+# Then,
# % snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.2021.8
# enterprises.ucdavis.extTable.extEntry.extIndex.1 = 1
# enterprises.ucdavis.extTable.extEntry.extIndex.2 = 2
@@ -246,7 +246,7 @@ syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
#
# The agent can check the amount of available disk space, and make
-# sure it is above a set limit.
+# sure it is above a set limit.
# disk PATH [MIN=DEFDISKMINIMUMSPACE]
#
@@ -260,7 +260,7 @@ syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
# % snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.2021.9
# enterprises.ucdavis.diskTable.dskEntry.diskIndex.1 = 0
-# enterprises.ucdavis.diskTable.dskEntry.diskPath.1 = "/" Hex: 2F
+# enterprises.ucdavis.diskTable.dskEntry.diskPath.1 = "/" Hex: 2F
# enterprises.ucdavis.diskTable.dskEntry.diskDevice.1 = "/dev/dsk/c201d6s0"
# enterprises.ucdavis.diskTable.dskEntry.diskMinimum.1 = 10000
# enterprises.ucdavis.diskTable.dskEntry.diskTotal.1 = 837130
@@ -294,9 +294,9 @@ syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
# enterprises.ucdavis.loadTable.laEntry.loadaveNames.1 = "Load-1"
# enterprises.ucdavis.loadTable.laEntry.loadaveNames.2 = "Load-5"
# enterprises.ucdavis.loadTable.laEntry.loadaveNames.3 = "Load-15"
-# enterprises.ucdavis.loadTable.laEntry.loadaveLoad.1 = "0.49" Hex: 30 2E 34 39
-# enterprises.ucdavis.loadTable.laEntry.loadaveLoad.2 = "0.31" Hex: 30 2E 33 31
-# enterprises.ucdavis.loadTable.laEntry.loadaveLoad.3 = "0.26" Hex: 30 2E 32 36
+# enterprises.ucdavis.loadTable.laEntry.loadaveLoad.1 = "0.49" Hex: 30 2E 34 39
+# enterprises.ucdavis.loadTable.laEntry.loadaveLoad.2 = "0.31" Hex: 30 2E 33 31
+# enterprises.ucdavis.loadTable.laEntry.loadaveLoad.3 = "0.26" Hex: 30 2E 32 36
# enterprises.ucdavis.loadTable.laEntry.loadaveConfig.1 = "12.00"
# enterprises.ucdavis.loadTable.laEntry.loadaveConfig.2 = "14.00"
# enterprises.ucdavis.loadTable.laEntry.loadaveConfig.3 = "14.00"
@@ -312,7 +312,7 @@ syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
###############################################################################
# Extensible sections.
-#
+#
# This alleviates the multiple line output problem found in the
# previous executable mib by placing each mib in its own mib table:
@@ -346,8 +346,8 @@ syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
# the .50.* outputs above to change to reasonable text descriptions.
# Other ideas:
-#
-# exec .1.3.6.1.4.1.2021.51 ps /bin/ps
+#
+# exec .1.3.6.1.4.1.2021.51 ps /bin/ps
# exec .1.3.6.1.4.1.2021.52 top /usr/local/bin/top
# exec .1.3.6.1.4.1.2021.53 mailq /usr/bin/mailq
@@ -356,17 +356,17 @@ syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
###############################################################################
# Pass through control.
-#
+#
# Usage:
# pass MIBOID EXEC-COMMAND
#
# This will pass total control of the mib underneath the MIBOID
-# portion of the mib to the EXEC-COMMAND.
+# portion of the mib to the EXEC-COMMAND.
#
# Note: You'll have to change the path of the passtest script to your
# source directory or install it in the given location.
-#
+#
# Example: (see the script for details)
# (commented out here since it requires that you place the
# script in the right location. (its not installed by default))
diff --git a/recipes/net-snmp/files/snmptrapd.conf b/recipes/net-snmp/files/snmptrapd.conf
index 8d2e4375ef..a012a0001b 100644
--- a/recipes/net-snmp/files/snmptrapd.conf
+++ b/recipes/net-snmp/files/snmptrapd.conf
@@ -15,4 +15,3 @@
#
# PLEASE: read the snmptrapd.conf(5) manual page as well!
#
-
diff --git a/recipes/net-snmp/net-snmp_5.7.1.bb b/recipes/net-snmp/net-snmp_5.7.1.bb
new file mode 100644
index 0000000000..08571e9043
--- /dev/null
+++ b/recipes/net-snmp/net-snmp_5.7.1.bb
@@ -0,0 +1,28 @@
+require net-snmp.inc
+PR = "${INC_PR}.0"
+LIC_FILES_CHKSUM = "file://README;beginline=3;endline=8;md5=7f7f00ba639ac8e8deb5a622ea24634e"
+
+DEFAULT_PREFERENCE = "1"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
+ file://init \
+ file://snmpd.conf \
+ file://snmptrapd.conf"
+
+EXTRA_OECONF += "--disable-embedded-perl --with-perl-modules=no"
+EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
+
+do_configure_prepend() {
+ gnu-configize -f
+ # We better change sources and re-autoconf here, but
+ # required autoconf is too new for us.
+ sed -e '/echo.*\".*\\\\.*\"/s/echo/echo -e/g' \
+ -e 's/tail -1/tail -n 1/g' \
+ -i configure
+}
+
+PARALLEL_MAKE = ""
+CCACHE = ""
+
+SRC_URI[md5sum] = "c95d08fd5d93df0c11a2e1bdf0e01e0b"
+SRC_URI[sha256sum] = "7c71c9650c65b715356547e20ca2dbe6313944278af8cc19c32a5337f46b181f"