[oe-commits] Evan Doiron : net-snmp: add v5.4.2.1

git version control git at git.openembedded.org
Mon Aug 31 15:58:08 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 199c29075ef45515047c02555bc6fd1ff2f8ee8c
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=199c29075ef45515047c02555bc6fd1ff2f8ee8c

Author: Evan Doiron <edoiron at cbnco.com>
Date:   Tue Aug 25 09:49:43 2009 +0000

net-snmp: add v5.4.2.1

Signed-off-by: Evan Doiron <edoiron at cbnco.com>
Signed-off-by: Michael Smith <msmith at cbnco.com>

---

 conf/checksums.ini                                 |    4 +
 .../net-snmp/net-snmp-5.4.2.1/configure-tail.patch |   99 ++++++++++++++++++++
 recipes/net-snmp/net-snmp_5.4.2.1.bb               |   26 +++++
 3 files changed, 129 insertions(+), 0 deletions(-)

diff --git a/conf/checksums.ini b/conf/checksums.ini
index 32a0630..09729ff 100644
--- a/conf/checksums.ini
+++ b/conf/checksums.ini
@@ -18038,6 +18038,10 @@ sha256=0ea976722c993c87dede8eb6348e6feb059e3851bbef2de824bf18ac97cdb565
 md5=6c974df7a5a5b1579f72115e6b045bda
 sha256=0ea976722c993c87dede8eb6348e6feb059e3851bbef2de824bf18ac97cdb565
 
+[http://downloads.sourceforge.net/net-snmp/net-snmp-5.4.2.1.tar.gz]
+md5=984932520143f0c8bf7b7ce1fc9e1da1
+sha256=11a8baf167f7bfff60d2590e050991400a3a082923dbcdbf85e0e0ce46eb247c
+
 [http://download.berlios.de/net-tools/net-tools-1.60.tar.bz2]
 md5=888774accab40217dde927e21979c165
 sha256=7ae4dd6d44d6715f18e10559ffd270511b6e55a8900ca54fbebafe0ae6cf7d7b
diff --git a/recipes/net-snmp/net-snmp-5.4.2.1/configure-tail.patch b/recipes/net-snmp/net-snmp-5.4.2.1/configure-tail.patch
new file mode 100644
index 0000000..89f9309
--- /dev/null
+++ b/recipes/net-snmp/net-snmp-5.4.2.1/configure-tail.patch
@@ -0,0 +1,99 @@
+diff -urN net-snmp-5.4.1-orig/acinclude.m4 net-snmp-5.4.1-patched/acinclude.m4
+--- net-snmp-5.4.1-orig/acinclude.m4	2006-08-15 05:25:49.000000000 +0200
++++ net-snmp-5.4.1-patched/acinclude.m4	2007-08-14 13:22:13.000000000 +0200
+@@ -39,7 +39,7 @@
+ dnl
+ AC_DEFUN([AC_PROMPT_USER],
+ [
+-MSG_CHECK=`echo "$2" | tail -1`
++MSG_CHECK=`echo "$2" | tail -n 1`
+ AC_CACHE_CHECK($MSG_CHECK, ac_cv_user_prompt_$1,
+ [echo "" >&AC_FD_MSG
+ AC_PROMPT_USER_NO_DEFINE($1,[$2],$3)
+diff -urN net-snmp-5.4.1-orig/configure net-snmp-5.4.1-patched/configure
+--- net-snmp-5.4.1-orig/configure	2007-07-27 19:04:19.000000000 +0200
++++ net-snmp-5.4.1-patched/configure	2007-08-14 13:22:13.000000000 +0200
+@@ -26417,7 +26417,7 @@
+ 	# hpux make (at least) doesn't like a trailing \ on the last
+ 	# line even when the next line contains nothing but
+ 	# whitespace.
+-	lasttoken=`tail -1 mk/$i.mk | awk '{print $1}'`
++	lasttoken=`tail -n 1 mk/$i.mk | awk '{print $1}'`
+ 	sed "s#$lasttoken \\\\#$lasttoken#" < mk/$i.mk > mk/$i.mk.tmp
+ 	mv mk/$i.mk.tmp mk/$i.mk
+ 
+@@ -48793,7 +48793,7 @@
+ 
+ ME=`$WHOAMI`
+ if test -f /etc/resolv.conf; then
+-  LOC=`cat /etc/resolv.conf | grep '^domain' | tail -1 | awk '{print $NF}'`
++  LOC=`cat /etc/resolv.conf | grep '^domain' | tail -n 1 | awk '{print $NF}'`
+ else
+   LOC="@no.where"
+ fi
+@@ -48819,7 +48819,7 @@
+    Providing the --with-default-snmp-version=\"x\" parameter to ./configure
+ will avoid this prompt.
+ 
+-Default version of SNMP to use" | tail -1`
++Default version of SNMP to use" | tail -n 1`
+ echo "$as_me:$LINENO: checking $MSG_CHECK" >&5
+ echo $ECHO_N "checking $MSG_CHECK... $ECHO_C" >&6
+ if test "${ac_cv_user_prompt_NETSNMP_DEFAULT_SNMP_VERSION+set}" = set; then
+@@ -48903,7 +48903,7 @@
+   Providing the --with-sys-contact=\"contact\" parameter to ./configure
+ will avoid this prompt.
+ 
+-System Contact Information" | tail -1`
++System Contact Information" | tail -n 1`
+ echo "$as_me:$LINENO: checking $MSG_CHECK" >&5
+ echo $ECHO_N "checking $MSG_CHECK... $ECHO_C" >&6
+ if test "${ac_cv_user_prompt_NETSNMP_SYS_CONTACT+set}" = set; then
+@@ -48967,7 +48967,7 @@
+   Providing the --with-sys-location=\"location\" parameter to ./configure
+ will avoid this prompt.
+ 
+-System Location" | tail -1`
++System Location" | tail -n 1`
+ echo "$as_me:$LINENO: checking $MSG_CHECK" >&5
+ echo $ECHO_N "checking $MSG_CHECK... $ECHO_C" >&6
+ if test "${ac_cv_user_prompt_NETSNMP_SYS_LOC+set}" = set; then
+@@ -49037,7 +49037,7 @@
+   Providing the --with-logfile=\"path\" parameter to ./configure
+ will avoid this prompt.
+ 
+-Location to write logfile" | tail -1`
++Location to write logfile" | tail -n 1`
+ echo "$as_me:$LINENO: checking $MSG_CHECK" >&5
+ echo $ECHO_N "checking $MSG_CHECK... $ECHO_C" >&6
+ if test "${ac_cv_user_prompt_NETSNMP_LOGFILE+set}" = set; then
+@@ -49114,7 +49114,7 @@
+   Providing the --with-persistent-directory=\"path\" parameter to
+ ./configure will avoid this prompt.
+ 
+-Location to write persistent information" | tail -1`
++Location to write persistent information" | tail -n 1`
+ echo "$as_me:$LINENO: checking $MSG_CHECK" >&5
+ echo $ECHO_N "checking $MSG_CHECK... $ECHO_C" >&6
+ if test "${ac_cv_user_prompt_NETSNMP_PERSISTENT_DIRECTORY+set}" = set; then
+diff -urN net-snmp-5.4.1-orig/configure.in net-snmp-5.4.1-patched/configure.in
+--- net-snmp-5.4.1-orig/configure.in	2007-07-27 19:02:00.000000000 +0200
++++ net-snmp-5.4.1-patched/configure.in	2007-08-14 13:22:13.000000000 +0200
+@@ -2465,7 +2465,7 @@
+ 	# hpux make (at least) doesn't like a trailing \ on the last
+ 	# line even when the next line contains nothing but
+ 	# whitespace.
+-	lasttoken=`tail -1 mk/$i.mk | awk '{print $1}'`
++	lasttoken=`tail -n 1 mk/$i.mk | awk '{print $1}'`
+ 	sed "s#$lasttoken \\\\#$lasttoken#" < mk/$i.mk > mk/$i.mk.tmp
+ 	mv mk/$i.mk.tmp mk/$i.mk
+ 
+@@ -4575,7 +4575,7 @@
+ 
+ ME=`$WHOAMI`
+ if test -f /etc/resolv.conf; then
+-  LOC=`cat /etc/resolv.conf | grep '^domain' | tail -1 | awk '{print $NF}'`
++  LOC=`cat /etc/resolv.conf | grep '^domain' | tail -n 1 | awk '{print $NF}'`
+ else
+   LOC="@no.where"
+ fi
diff --git a/recipes/net-snmp/net-snmp_5.4.2.1.bb b/recipes/net-snmp/net-snmp_5.4.2.1.bb
new file mode 100644
index 0000000..3c51a5f
--- /dev/null
+++ b/recipes/net-snmp/net-snmp_5.4.2.1.bb
@@ -0,0 +1,26 @@
+require net-snmp.inc
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
+        file://configure-tail.patch;patch=1 \
+        file://init \
+        file://snmpd.conf \
+        file://snmptrapd.conf"
+
+EXTRA_OECONF = "--enable-shared --disable-manuals --with-defaults \
+                --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
+
+        #The tarball for v5.4.2.1 is missing config.sub
+        cp ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
+}
+
+PARALLEL_MAKE = ""
+CCACHE = ""





More information about the Openembedded-commits mailing list