Commit 0cde249f authored by Natanael Copa's avatar Natanael Copa

main/net-snmp: upgrade to 5.4.3

parent 13efabeb
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=net-snmp
pkgver=5.4.2.1
pkgrel=3
pkgver=5.4.3
pkgrel=0
pkgdesc="Simple Network Management Protocol"
url="http://www.net-snmp.org/"
license="GPL"
......@@ -14,12 +14,10 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
snmpd.confd
snmptrapd.initd
snmptrapd.confd
CVE-2008-6123.patch
"
build() {
cd "$srcdir/$pkgname-$pkgver"
patch -p0 -i ../CVE-2008-6123.patch || return 1
export lt_cv_sys_max_cmd_len=8192
......@@ -41,6 +39,10 @@ build() {
# embedded-perl seems to create TEXTREL's
make -j1 || return 1
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make -j1 DESTDIR="$pkgdir" install
install -m755 -D "$srcdir"/snmpd.initd "$pkgdir"/etc/init.d/snmpd
......@@ -58,9 +60,8 @@ tools() {
}
md5sums="984932520143f0c8bf7b7ce1fc9e1da1 net-snmp-5.4.2.1.tar.gz
md5sums="3513e39ee1a9d6c7581c508810b818f9 net-snmp-5.4.3.tar.gz
198a4a7b80557fa8112394df5ec9914e snmpd.initd
96510a2f3bc9f21648b03f7e8d76c0d3 snmpd.confd
7ce3e9e880fc6313ae87eb000bae4bda snmptrapd.initd
363f7728a76bdfc46e29b7e1f5cf4950 snmptrapd.confd
e8eac801c76e03bca7e7bf6b267b0d3d CVE-2008-6123.patch"
363f7728a76bdfc46e29b7e1f5cf4950 snmptrapd.confd"
diff -Naur snmplib.orig/snmpUDPDomain.c snmplib/snmpUDPDomain.c
--- snmplib.orig/snmpUDPDomain.c 2007-10-11 22:46:30.000000000 +0200
+++ snmplib/snmpUDPDomain.c 2009-07-10 23:41:37.000000000 +0200
@@ -104,12 +110,12 @@
char tmp[64];
to = (struct sockaddr_in *) &(addr_pair->remote_addr);
if (to == NULL) {
- sprintf(tmp, "UDP: [%s]->unknown",
+ sprintf(tmp, "UDP: unknown->[%s]",
inet_ntoa(addr_pair->local_addr));
} else {
- sprintf(tmp, "UDP: [%s]->", inet_ntoa(addr_pair->local_addr));
- sprintf(tmp + strlen(tmp), "[%s]:%hd",
+ sprintf(tmp, "UDP: [%s]:%hu->",
inet_ntoa(to->sin_addr), ntohs(to->sin_port));
+ sprintf(tmp + strlen(tmp), "[%s]", inet_ntoa(addr_pair->local_addr));
}
return strdup(tmp);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment