[arch-commits] Commit in net-snmp/repos (6 files)
Date: Wednesday, August 1, 2018 @ 09:31:16 Author: felixonmars Revision: 330104 archrelease: copy trunk to staging-x86_64 Added: net-snmp/repos/staging-x86_64/ net-snmp/repos/staging-x86_64/PKGBUILD (from rev 330102, net-snmp/trunk/PKGBUILD) net-snmp/repos/staging-x86_64/fix-openssl-build-errors.patch (from rev 330102, net-snmp/trunk/fix-openssl-build-errors.patch) net-snmp/repos/staging-x86_64/net-snmp-5.7.3-perl-5.24.patch (from rev 330102, net-snmp/trunk/net-snmp-5.7.3-perl-5.24.patch) net-snmp/repos/staging-x86_64/snmpd.service (from rev 330103, net-snmp/trunk/snmpd.service) net-snmp/repos/staging-x86_64/snmptrapd.service (from rev 330103, net-snmp/trunk/snmptrapd.service) + PKGBUILD | 60 fix-openssl-build-errors.patch | 171 ++ net-snmp-5.7.3-perl-5.24.patch | 2599 +++ snmpd.service | 12 snmptrapd.service | 12 5 files changed, 2854 insertions(+) Copied: net-snmp/repos/staging-x86_64/PKGBUILD (from rev 330102, net-snmp/trunk/PKGBUILD) === --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2018-08-01 09:31:16 UTC (rev 330104) @@ -0,0 +1,60 @@ +# $Id$ +# Maintainer: Felix Yan +# Contributor: Dale Blount + +pkgname=net-snmp +pkgver=5.7.3 +pkgrel=9 +pkgdesc="A suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6" +arch=('x86_64') +url="http://www.net-snmp.org/"; +license=('BSD') +depends=('libnl' 'libnsl' 'openssl' 'pciutils') +makedepends=('python2-setuptools') +optdepends=('perl-term-readkey: for snmpcheck application' +'perl-tk: for snmpcheck and tkmib applications' +'python2: for the python modules') +options=('!emptydirs' '!makeflags') +source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc} +snmpd.service snmptrapd.service net-snmp-5.7.3-perl-5.24.patch fix-openssl-build-errors.patch) +sha512sums=('0758bba5844cfd6c80959ac16b83906a2f830ba49fd0ab1bf9e191dc6a79d312a2e4760bd53b3e1a1c82759481f0064d088d5a3cf475d84b25679a6bd0f049bb' +'SKIP' + '802057d08f4fe69fa9fafed349d37c0f8a6092002b933292563568db274890ae8932a000ecb60c5db0db792ecca30723fc803c0af6da147d148bf059b7f137eb' + '82b05b805db5f6870242ea4dfaa58de2865c367208cacfa4fc543c9f2a310d7229dee94ea6054d35c4bab69393f33fd367551727279da4411052589ed37bb4a4' + 'bf9ce238083f6a03cbb3080e584c9ca64060dee4e46ce62f35eccc877213e26340747de4cfdb7928dc7b95525865b68593ea82eb01b7971f3f3cacedac8c8136' + '66cad5a708615e428f2edd91cd1c9a9c2f1e6ce00f9cc3dbaa3a06b6bd1ce02dfa7a8eb3a02426713f8a9d327872f349d107e03440c942fd65bf4b13fc5df028') +validpgpkeys=('8AAA779B597B405BBC329B6376CF47B8A77C5329' + '27CAA4A32E371383A33ED0587D5F9576E0F81533') # Net-SNMP Administrators + +prepare() { + cd ${pkgname}-${pkgver} + patch -p1 -i ../net-snmp-5.7.3-perl-5.24.patch + patch -p1 -i ../fix-openssl-build-errors.patch + autoreconf -i +} + +build() { + cd ${pkgname}-${pkgver} + PYTHONPROG=/usr/bin/python2 ./configure --prefix=/usr \ +--sysconfdir=/etc --sbindir=/usr/bin \ +--mandir=/usr/share/man \ +--enable-ucd-snmp-compatibility \ +--enable-ipv6 \ +--with-python-modules \ +--with-default-snmp-version="3" \ +--with-sys-contact="root@localhost" \ +--with-sys-location="Unknown" \ +--with-logfile="/var/log/snmpd.log" \ +--with-mib-modules="host misc/ipfwacc ucd-snmp/diskio tunnel ucd-snmp/dlmod" \ +--with-persistent-directory="/var/net-snmp" + make NETSNMP_DONT_CHECK_VERSION=1 +} + +package() { + cd ${pkgname}-${pkgver} + sed -i -e "s:install --basedir=\$\$dir:install --basedir=\$\$dir --root=${pkgdir}:" Makefile + make DESTDIR="${pkgdir}" INSTALL_PREFIX="${pkgdir}" INSTALLDIRS=vendor install + install -D -m644 "${srcdir}/snmpd.service" "${pkgdir}/usr/lib/systemd/system/snmpd.service" + install -D -m644 "${srcdir}/snmptrapd.service" "${pkgdir}/usr/lib/systemd/system/snmptrapd.service" + install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} Copied: net-snmp/repos/staging-x86_64/fix-openssl-build-errors.patch (from rev 330102, net-snmp/trunk/fix-openssl-build-errors.patch) === --- staging-x86_64/fix-openssl-build-errors.patch (rev 0) +++ staging-x86_64/fix-openssl-build-errors.patch 2018-08-01 09:31:16 UTC (rev 330104) @@ -0,0 +1,171 @@ +net-snmp build fails on Debian 9 with OpenSSL 1.1.0 + +With these changes, net-snmp builds with both +OpenSSL 1.0.x and 1.1.x. + +Author: Sharmila Podury + +--- a/apps/snmpusm.c b/apps/snmpusm.c +@@ -125,6 +125,32 @@ char *usmUserPublic_val = NULL + int docreateandwait = 0; + + ++#if OPENSSL_
[arch-commits] Commit in net-snmp/repos (6 files)
Date: Thursday, April 12, 2018 @ 07:34:00 Author: felixonmars Revision: 321625 archrelease: copy trunk to staging-x86_64 Added: net-snmp/repos/staging-x86_64/ net-snmp/repos/staging-x86_64/PKGBUILD (from rev 321624, net-snmp/trunk/PKGBUILD) net-snmp/repos/staging-x86_64/fix-openssl-build-errors.patch (from rev 321624, net-snmp/trunk/fix-openssl-build-errors.patch) net-snmp/repos/staging-x86_64/net-snmp-5.7.3-perl-5.24.patch (from rev 321624, net-snmp/trunk/net-snmp-5.7.3-perl-5.24.patch) net-snmp/repos/staging-x86_64/snmpd.service (from rev 321624, net-snmp/trunk/snmpd.service) net-snmp/repos/staging-x86_64/snmptrapd.service (from rev 321624, net-snmp/trunk/snmptrapd.service) + PKGBUILD | 68 + fix-openssl-build-errors.patch | 171 ++ net-snmp-5.7.3-perl-5.24.patch | 2599 +++ snmpd.service | 12 snmptrapd.service | 12 5 files changed, 2862 insertions(+) Copied: net-snmp/repos/staging-x86_64/PKGBUILD (from rev 321624, net-snmp/trunk/PKGBUILD) === --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2018-04-12 07:34:00 UTC (rev 321625) @@ -0,0 +1,68 @@ +# $Id$ +# Maintainer: Felix Yan +# Contributor: Dale Blount + +pkgname=net-snmp +pkgver=5.7.3 +pkgrel=8 +pkgdesc="A suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6" +arch=('x86_64') +url="http://www.net-snmp.org/"; +license=('BSD') +depends=('libnl' 'libnsl' 'openssl' 'pciutils') +makedepends=('python2-setuptools') +optdepends=('perl-term-readkey: for snmpcheck application' +'perl-tk: for snmpcheck and tkmib applications' +'python2: for the python modules') +options=('!emptydirs' '!makeflags') +source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc} +snmpd.service snmptrapd.service net-snmp-5.7.3-perl-5.24.patch fix-openssl-build-errors.patch) +sha512sums=('0758bba5844cfd6c80959ac16b83906a2f830ba49fd0ab1bf9e191dc6a79d312a2e4760bd53b3e1a1c82759481f0064d088d5a3cf475d84b25679a6bd0f049bb' +'SKIP' + '802057d08f4fe69fa9fafed349d37c0f8a6092002b933292563568db274890ae8932a000ecb60c5db0db792ecca30723fc803c0af6da147d148bf059b7f137eb' + '82b05b805db5f6870242ea4dfaa58de2865c367208cacfa4fc543c9f2a310d7229dee94ea6054d35c4bab69393f33fd367551727279da4411052589ed37bb4a4' + 'bf9ce238083f6a03cbb3080e584c9ca64060dee4e46ce62f35eccc877213e26340747de4cfdb7928dc7b95525865b68593ea82eb01b7971f3f3cacedac8c8136' + '66cad5a708615e428f2edd91cd1c9a9c2f1e6ce00f9cc3dbaa3a06b6bd1ce02dfa7a8eb3a02426713f8a9d327872f349d107e03440c942fd65bf4b13fc5df028') +validpgpkeys=('8AAA779B597B405BBC329B6376CF47B8A77C5329' + '27CAA4A32E371383A33ED0587D5F9576E0F81533') # Net-SNMP Administrators + +prepare() { + cd ${pkgname}-${pkgver} + patch -p1 -i ../net-snmp-5.7.3-perl-5.24.patch + patch -p1 -i ../fix-openssl-build-errors.patch + autoreconf -i +} + +build() { + cd ${pkgname}-${pkgver} + PYTHONPROG=/usr/bin/python2 ./configure --prefix=/usr \ +--sysconfdir=/etc --sbindir=/usr/bin \ +--mandir=/usr/share/man \ +--enable-ucd-snmp-compatibility \ +--enable-ipv6 \ +--with-python-modules \ +--with-default-snmp-version="3" \ +--with-sys-contact="root@localhost" \ +--with-sys-location="Unknown" \ +--with-logfile="/var/log/snmpd.log" \ +--with-mib-modules="host misc/ipfwacc ucd-snmp/diskio tunnel ucd-snmp/dlmod" \ +--with-persistent-directory="/var/net-snmp" + make NETSNMP_DONT_CHECK_VERSION=1 +} + +package() { + cd ${pkgname}-${pkgver} + sed -i -e "s:install --basedir=\$\$dir:install --basedir=\$\$dir --root=${pkgdir}:" Makefile + make DESTDIR="${pkgdir}" INSTALL_PREFIX="${pkgdir}" INSTALLDIRS=vendor install + install -D -m644 "${srcdir}/snmpd.service" "${pkgdir}/usr/lib/systemd/system/snmpd.service" + install -D -m644 "${srcdir}/snmptrapd.service" "${pkgdir}/usr/lib/systemd/system/snmptrapd.service" + install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + +# template start; name=perl-binary-module-dependency; version=1; +if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then + _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);') + _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);') + depends+=("perl>=$_perlver_min" "perl<$_perlver_max") +fi +# template end; +} Copied: net-snmp/repos/staging-x86_64/fix-openssl-build-errors.patch (from rev 321624, net-snmp/trunk/fix-openssl-build-errors.patch) === --- staging-x86_64/fix-openssl-build-errors.patch (rev 0) +++ staging-x86_64/fix-openssl-build-errors.patch
[arch-commits] Commit in net-snmp/repos (6 files)
Date: Sunday, May 27, 2012 @ 03:42:44 Author: bluewind Revision: 159859 db-move: moved net-snmp from [staging] to [testing] (x86_64) Added: net-snmp/repos/testing-x86_64/ net-snmp/repos/testing-x86_64/PKGBUILD (from rev 159819, net-snmp/repos/staging-x86_64/PKGBUILD) net-snmp/repos/testing-x86_64/libnl32.patch (from rev 159819, net-snmp/repos/staging-x86_64/libnl32.patch) net-snmp/repos/testing-x86_64/snmpd.confd (from rev 159819, net-snmp/repos/staging-x86_64/snmpd.confd) net-snmp/repos/testing-x86_64/snmpd.rc (from rev 159819, net-snmp/repos/staging-x86_64/snmpd.rc) Deleted: net-snmp/repos/staging-x86_64/ ---+ PKGBUILD | 58 libnl32.patch | 80 snmpd.confd |5 +++ snmpd.rc | 39 +++ 4 files changed, 182 insertions(+) Copied: net-snmp/repos/testing-x86_64/PKGBUILD (from rev 159819, net-snmp/repos/staging-x86_64/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2012-05-27 07:42:44 UTC (rev 159859) @@ -0,0 +1,58 @@ +# $Id$ +# Maintainer: +# Contributor: Dale Blount + +pkgname=net-snmp +pkgver=5.7.1 +pkgrel=3 +pkgdesc="A suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6" +arch=('i686' 'x86_64') +url="http://www.net-snmp.org/"; +license=('BSD') +depends=('openssl' 'libnl' 'pciutils') +makedepends=('python2-distribute') +optdepends=('perl-term-readkey: for snmpcheck application' +'perl-tk: for snmpcheck and tkmib applications' +'python2: for the python modules') +provides=('ucd-snmp') +backup=('etc/conf.d/snmpd') +options=('!libtool' '!makeflags' '!emptydirs') +source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc} +snmpd.confd snmpd.rc libnl32.patch) +sha1sums=('ddb82ce1112ef0642869d3c8d7c7e585f151849a' + '2bdc2839ce09d7daa608cd54687fa8beb47ed907' + 'cf811da9e57bbca34d8e2a3c358bb3bfc0c2b33b' + '90600c0141eed10d6e3ca3ccc97ad8dda15c2112' + '74a9848b95f63378eb1753fc309d2b74de5afb0f') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # http://sourceforge.net/tracker/index.php?func=detail&aid=3250304&group_id=12694&atid=112694 + patch -Np1 -i "$srcdir/libnl32.patch" + autoreconf -f -i + + sed -i -e "s:\(install --basedir=\$\$dir\):\1 --root='${pkgdir}':" Makefile.in + PYTHONPROG=/usr/bin/python2 ./configure --prefix=/usr \ +--sysconfdir=/etc \ +--mandir=/usr/share/man \ +--enable-ucd-snmp-compatibility \ +--enable-ipv6 \ +--with-python-modules \ +--with-default-snmp-version="3" \ +--with-sys-contact="root@localhost" \ +--with-sys-location="Unknown" \ +--with-logfile="/var/log/snmpd.log" \ +--with-mib-modules="host misc/ipfwacc ucd-snmp/diskio tunnel ucd-snmp/dlmod" \ +--with-persistent-directory="/var/net-snmp" \ +--disable-static + make NETSNMP_DONT_CHECK_VERSION=1 +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" INSTALL_PREFIX="${pkgdir}" INSTALLDIRS=vendor install + install -D -m755 "${srcdir}/snmpd.rc" "${pkgdir}/etc/rc.d/snmpd" + install -D -m644 "${srcdir}/snmpd.confd" "${pkgdir}/etc/conf.d/snmpd" + install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} Copied: net-snmp/repos/testing-x86_64/libnl32.patch (from rev 159819, net-snmp/repos/staging-x86_64/libnl32.patch) === --- testing-x86_64/libnl32.patch(rev 0) +++ testing-x86_64/libnl32.patch2012-05-27 07:42:44 UTC (rev 159859) @@ -0,0 +1,80 @@ +diff -u -r net-snmp-5.7.1/agent/mibgroup/mibII/tcpTable.c net-snmp-5.7.1-libnl32/agent/mibgroup/mibII/tcpTable.c +--- net-snmp-5.7.1/agent/mibgroup/mibII/tcpTable.c 2011-09-28 06:53:47.0 +0200 net-snmp-5.7.1-libnl32/agent/mibgroup/mibII/tcpTable.c 2012-02-09 20:02:49.136022132 +0100 +@@ -566,8 +566,9 @@ + static int + tcpTable_load_netlink(void) + { ++ int err; + /* TODO: perhaps use permanent nl handle? */ +- struct nl_handle *nl = nl_handle_alloc(); ++ struct nl_sock *nl = nl_socket_alloc(); + + if (nl == NULL) { + DEBUGMSGTL(("mibII/tcpTable", "Failed to allocate netlink handle\n")); +@@ -575,10 +576,10 @@ + return -1; + } + +- if (nl_connect(nl, NETLINK_INET_DIAG) < 0) { +- DEBUGMSGTL(("mibII/tcpTable", "Failed to connect to netlink: %s\n", nl_geterror())); +- snmp_log(LOG_ERR, "snmpd: Couldn't connect to netlink: %s\n", nl_geterror()); +- nl_handle_destroy(nl); ++ if ((err = nl_connect(nl, NETLINK_INET_DIAG)) < 0) { ++ DEBUGMSGTL(("mibII/tcpTable", "Failed to connect to netli
[arch-commits] Commit in net-snmp/repos (6 files)
Date: Sunday, May 27, 2012 @ 03:42:43 Author: bluewind Revision: 159858 db-move: moved net-snmp from [staging] to [testing] (i686) Added: net-snmp/repos/testing-i686/ net-snmp/repos/testing-i686/PKGBUILD (from rev 159819, net-snmp/repos/staging-i686/PKGBUILD) net-snmp/repos/testing-i686/libnl32.patch (from rev 159819, net-snmp/repos/staging-i686/libnl32.patch) net-snmp/repos/testing-i686/snmpd.confd (from rev 159819, net-snmp/repos/staging-i686/snmpd.confd) net-snmp/repos/testing-i686/snmpd.rc (from rev 159819, net-snmp/repos/staging-i686/snmpd.rc) Deleted: net-snmp/repos/staging-i686/ ---+ PKGBUILD | 58 libnl32.patch | 80 snmpd.confd |5 +++ snmpd.rc | 39 +++ 4 files changed, 182 insertions(+) Copied: net-snmp/repos/testing-i686/PKGBUILD (from rev 159819, net-snmp/repos/staging-i686/PKGBUILD) === --- testing-i686/PKGBUILD (rev 0) +++ testing-i686/PKGBUILD 2012-05-27 07:42:43 UTC (rev 159858) @@ -0,0 +1,58 @@ +# $Id$ +# Maintainer: +# Contributor: Dale Blount + +pkgname=net-snmp +pkgver=5.7.1 +pkgrel=3 +pkgdesc="A suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6" +arch=('i686' 'x86_64') +url="http://www.net-snmp.org/"; +license=('BSD') +depends=('openssl' 'libnl' 'pciutils') +makedepends=('python2-distribute') +optdepends=('perl-term-readkey: for snmpcheck application' +'perl-tk: for snmpcheck and tkmib applications' +'python2: for the python modules') +provides=('ucd-snmp') +backup=('etc/conf.d/snmpd') +options=('!libtool' '!makeflags' '!emptydirs') +source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc} +snmpd.confd snmpd.rc libnl32.patch) +sha1sums=('ddb82ce1112ef0642869d3c8d7c7e585f151849a' + '2bdc2839ce09d7daa608cd54687fa8beb47ed907' + 'cf811da9e57bbca34d8e2a3c358bb3bfc0c2b33b' + '90600c0141eed10d6e3ca3ccc97ad8dda15c2112' + '74a9848b95f63378eb1753fc309d2b74de5afb0f') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # http://sourceforge.net/tracker/index.php?func=detail&aid=3250304&group_id=12694&atid=112694 + patch -Np1 -i "$srcdir/libnl32.patch" + autoreconf -f -i + + sed -i -e "s:\(install --basedir=\$\$dir\):\1 --root='${pkgdir}':" Makefile.in + PYTHONPROG=/usr/bin/python2 ./configure --prefix=/usr \ +--sysconfdir=/etc \ +--mandir=/usr/share/man \ +--enable-ucd-snmp-compatibility \ +--enable-ipv6 \ +--with-python-modules \ +--with-default-snmp-version="3" \ +--with-sys-contact="root@localhost" \ +--with-sys-location="Unknown" \ +--with-logfile="/var/log/snmpd.log" \ +--with-mib-modules="host misc/ipfwacc ucd-snmp/diskio tunnel ucd-snmp/dlmod" \ +--with-persistent-directory="/var/net-snmp" \ +--disable-static + make NETSNMP_DONT_CHECK_VERSION=1 +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" INSTALL_PREFIX="${pkgdir}" INSTALLDIRS=vendor install + install -D -m755 "${srcdir}/snmpd.rc" "${pkgdir}/etc/rc.d/snmpd" + install -D -m644 "${srcdir}/snmpd.confd" "${pkgdir}/etc/conf.d/snmpd" + install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} Copied: net-snmp/repos/testing-i686/libnl32.patch (from rev 159819, net-snmp/repos/staging-i686/libnl32.patch) === --- testing-i686/libnl32.patch (rev 0) +++ testing-i686/libnl32.patch 2012-05-27 07:42:43 UTC (rev 159858) @@ -0,0 +1,80 @@ +diff -u -r net-snmp-5.7.1/agent/mibgroup/mibII/tcpTable.c net-snmp-5.7.1-libnl32/agent/mibgroup/mibII/tcpTable.c +--- net-snmp-5.7.1/agent/mibgroup/mibII/tcpTable.c 2011-09-28 06:53:47.0 +0200 net-snmp-5.7.1-libnl32/agent/mibgroup/mibII/tcpTable.c 2012-02-09 20:02:49.136022132 +0100 +@@ -566,8 +566,9 @@ + static int + tcpTable_load_netlink(void) + { ++ int err; + /* TODO: perhaps use permanent nl handle? */ +- struct nl_handle *nl = nl_handle_alloc(); ++ struct nl_sock *nl = nl_socket_alloc(); + + if (nl == NULL) { + DEBUGMSGTL(("mibII/tcpTable", "Failed to allocate netlink handle\n")); +@@ -575,10 +576,10 @@ + return -1; + } + +- if (nl_connect(nl, NETLINK_INET_DIAG) < 0) { +- DEBUGMSGTL(("mibII/tcpTable", "Failed to connect to netlink: %s\n", nl_geterror())); +- snmp_log(LOG_ERR, "snmpd: Couldn't connect to netlink: %s\n", nl_geterror()); +- nl_handle_destroy(nl); ++ if ((err = nl_connect(nl, NETLINK_INET_DIAG)) < 0) { ++ DEBUGMSGTL(("mibII/tcpTable", "Failed to connect to netlink: %s\n", nl_geterror(err))); ++
[arch-commits] Commit in net-snmp/repos (6 files)
Date: Thursday, February 16, 2012 @ 15:41:47 Author: heftig Revision: 150318 db-move: moved net-snmp from [staging] to [testing] (x86_64) Added: net-snmp/repos/testing-x86_64/ net-snmp/repos/testing-x86_64/PKGBUILD (from rev 150302, net-snmp/repos/staging-x86_64/PKGBUILD) net-snmp/repos/testing-x86_64/libnl32.patch (from rev 150302, net-snmp/repos/staging-x86_64/libnl32.patch) net-snmp/repos/testing-x86_64/snmpd.confd (from rev 150302, net-snmp/repos/staging-x86_64/snmpd.confd) net-snmp/repos/testing-x86_64/snmpd.rc (from rev 150302, net-snmp/repos/staging-x86_64/snmpd.rc) Deleted: net-snmp/repos/staging-x86_64/ ---+ PKGBUILD | 58 libnl32.patch | 80 snmpd.confd |5 +++ snmpd.rc | 39 +++ 4 files changed, 182 insertions(+) Copied: net-snmp/repos/testing-x86_64/PKGBUILD (from rev 150302, net-snmp/repos/staging-x86_64/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2012-02-16 20:41:47 UTC (rev 150318) @@ -0,0 +1,58 @@ +# $Id$ +# Maintainer: +# Contributor: Dale Blount + +pkgname=net-snmp +pkgver=5.7.1 +pkgrel=2 +pkgdesc="A suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6" +arch=('i686' 'x86_64') +url="http://www.net-snmp.org/"; +license=('BSD') +depends=('openssl' 'libnl' 'pciutils') +makedepends=('python2-distribute') +optdepends=('perl-term-readkey: for snmpcheck application' +'perl-tk: for snmpcheck and tkmib applications' +'python2: for the python modules') +provides=('ucd-snmp') +backup=('etc/conf.d/snmpd') +options=('!libtool' '!makeflags' '!emptydirs') +source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc} +snmpd.confd snmpd.rc libnl32.patch) +sha1sums=('ddb82ce1112ef0642869d3c8d7c7e585f151849a' + '2bdc2839ce09d7daa608cd54687fa8beb47ed907' + 'cf811da9e57bbca34d8e2a3c358bb3bfc0c2b33b' + '90600c0141eed10d6e3ca3ccc97ad8dda15c2112' + '74a9848b95f63378eb1753fc309d2b74de5afb0f') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # http://sourceforge.net/tracker/index.php?func=detail&aid=3250304&group_id=12694&atid=112694 + patch -Np1 -i "$srcdir/libnl32.patch" + autoreconf -f -i + + sed -i -e "s:\(install --basedir=\$\$dir\):\1 --root='${pkgdir}':" Makefile.in + PYTHONPROG=/usr/bin/python2 ./configure --prefix=/usr \ +--sysconfdir=/etc \ +--mandir=/usr/share/man \ +--enable-ucd-snmp-compatibility \ +--enable-ipv6 \ +--with-python-modules \ +--with-default-snmp-version="3" \ +--with-sys-contact="root@localhost" \ +--with-sys-location="Unknown" \ +--with-logfile="/var/log/snmpd.log" \ +--with-mib-modules="host misc/ipfwacc ucd-snmp/diskio tunnel ucd-snmp/dlmod" \ +--with-persistent-directory="/var/net-snmp" \ +--disable-static + make NETSNMP_DONT_CHECK_VERSION=1 +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" INSTALL_PREFIX="${pkgdir}" INSTALLDIRS=vendor install + install -D -m755 "${srcdir}/snmpd.rc" "${pkgdir}/etc/rc.d/snmpd" + install -D -m644 "${srcdir}/snmpd.confd" "${pkgdir}/etc/conf.d/snmpd" + install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} Copied: net-snmp/repos/testing-x86_64/libnl32.patch (from rev 150302, net-snmp/repos/staging-x86_64/libnl32.patch) === --- testing-x86_64/libnl32.patch(rev 0) +++ testing-x86_64/libnl32.patch2012-02-16 20:41:47 UTC (rev 150318) @@ -0,0 +1,80 @@ +diff -u -r net-snmp-5.7.1/agent/mibgroup/mibII/tcpTable.c net-snmp-5.7.1-libnl32/agent/mibgroup/mibII/tcpTable.c +--- net-snmp-5.7.1/agent/mibgroup/mibII/tcpTable.c 2011-09-28 06:53:47.0 +0200 net-snmp-5.7.1-libnl32/agent/mibgroup/mibII/tcpTable.c 2012-02-09 20:02:49.136022132 +0100 +@@ -566,8 +566,9 @@ + static int + tcpTable_load_netlink(void) + { ++ int err; + /* TODO: perhaps use permanent nl handle? */ +- struct nl_handle *nl = nl_handle_alloc(); ++ struct nl_sock *nl = nl_socket_alloc(); + + if (nl == NULL) { + DEBUGMSGTL(("mibII/tcpTable", "Failed to allocate netlink handle\n")); +@@ -575,10 +576,10 @@ + return -1; + } + +- if (nl_connect(nl, NETLINK_INET_DIAG) < 0) { +- DEBUGMSGTL(("mibII/tcpTable", "Failed to connect to netlink: %s\n", nl_geterror())); +- snmp_log(LOG_ERR, "snmpd: Couldn't connect to netlink: %s\n", nl_geterror()); +- nl_handle_destroy(nl); ++ if ((err = nl_connect(nl, NETLINK_INET_DIAG)) < 0) { ++ DEBUGMSGTL(("mibII/tcpTable", "Failed to connect to
[arch-commits] Commit in net-snmp/repos (6 files)
Date: Thursday, February 16, 2012 @ 15:41:46 Author: heftig Revision: 150317 db-move: moved net-snmp from [staging] to [testing] (i686) Added: net-snmp/repos/testing-i686/ net-snmp/repos/testing-i686/PKGBUILD (from rev 150302, net-snmp/repos/staging-i686/PKGBUILD) net-snmp/repos/testing-i686/libnl32.patch (from rev 150302, net-snmp/repos/staging-i686/libnl32.patch) net-snmp/repos/testing-i686/snmpd.confd (from rev 150302, net-snmp/repos/staging-i686/snmpd.confd) net-snmp/repos/testing-i686/snmpd.rc (from rev 150302, net-snmp/repos/staging-i686/snmpd.rc) Deleted: net-snmp/repos/staging-i686/ ---+ PKGBUILD | 58 libnl32.patch | 80 snmpd.confd |5 +++ snmpd.rc | 39 +++ 4 files changed, 182 insertions(+) Copied: net-snmp/repos/testing-i686/PKGBUILD (from rev 150302, net-snmp/repos/staging-i686/PKGBUILD) === --- testing-i686/PKGBUILD (rev 0) +++ testing-i686/PKGBUILD 2012-02-16 20:41:46 UTC (rev 150317) @@ -0,0 +1,58 @@ +# $Id$ +# Maintainer: +# Contributor: Dale Blount + +pkgname=net-snmp +pkgver=5.7.1 +pkgrel=2 +pkgdesc="A suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6" +arch=('i686' 'x86_64') +url="http://www.net-snmp.org/"; +license=('BSD') +depends=('openssl' 'libnl' 'pciutils') +makedepends=('python2-distribute') +optdepends=('perl-term-readkey: for snmpcheck application' +'perl-tk: for snmpcheck and tkmib applications' +'python2: for the python modules') +provides=('ucd-snmp') +backup=('etc/conf.d/snmpd') +options=('!libtool' '!makeflags' '!emptydirs') +source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc} +snmpd.confd snmpd.rc libnl32.patch) +sha1sums=('ddb82ce1112ef0642869d3c8d7c7e585f151849a' + '2bdc2839ce09d7daa608cd54687fa8beb47ed907' + 'cf811da9e57bbca34d8e2a3c358bb3bfc0c2b33b' + '90600c0141eed10d6e3ca3ccc97ad8dda15c2112' + '74a9848b95f63378eb1753fc309d2b74de5afb0f') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # http://sourceforge.net/tracker/index.php?func=detail&aid=3250304&group_id=12694&atid=112694 + patch -Np1 -i "$srcdir/libnl32.patch" + autoreconf -f -i + + sed -i -e "s:\(install --basedir=\$\$dir\):\1 --root='${pkgdir}':" Makefile.in + PYTHONPROG=/usr/bin/python2 ./configure --prefix=/usr \ +--sysconfdir=/etc \ +--mandir=/usr/share/man \ +--enable-ucd-snmp-compatibility \ +--enable-ipv6 \ +--with-python-modules \ +--with-default-snmp-version="3" \ +--with-sys-contact="root@localhost" \ +--with-sys-location="Unknown" \ +--with-logfile="/var/log/snmpd.log" \ +--with-mib-modules="host misc/ipfwacc ucd-snmp/diskio tunnel ucd-snmp/dlmod" \ +--with-persistent-directory="/var/net-snmp" \ +--disable-static + make NETSNMP_DONT_CHECK_VERSION=1 +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" INSTALL_PREFIX="${pkgdir}" INSTALLDIRS=vendor install + install -D -m755 "${srcdir}/snmpd.rc" "${pkgdir}/etc/rc.d/snmpd" + install -D -m644 "${srcdir}/snmpd.confd" "${pkgdir}/etc/conf.d/snmpd" + install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} Copied: net-snmp/repos/testing-i686/libnl32.patch (from rev 150302, net-snmp/repos/staging-i686/libnl32.patch) === --- testing-i686/libnl32.patch (rev 0) +++ testing-i686/libnl32.patch 2012-02-16 20:41:46 UTC (rev 150317) @@ -0,0 +1,80 @@ +diff -u -r net-snmp-5.7.1/agent/mibgroup/mibII/tcpTable.c net-snmp-5.7.1-libnl32/agent/mibgroup/mibII/tcpTable.c +--- net-snmp-5.7.1/agent/mibgroup/mibII/tcpTable.c 2011-09-28 06:53:47.0 +0200 net-snmp-5.7.1-libnl32/agent/mibgroup/mibII/tcpTable.c 2012-02-09 20:02:49.136022132 +0100 +@@ -566,8 +566,9 @@ + static int + tcpTable_load_netlink(void) + { ++ int err; + /* TODO: perhaps use permanent nl handle? */ +- struct nl_handle *nl = nl_handle_alloc(); ++ struct nl_sock *nl = nl_socket_alloc(); + + if (nl == NULL) { + DEBUGMSGTL(("mibII/tcpTable", "Failed to allocate netlink handle\n")); +@@ -575,10 +576,10 @@ + return -1; + } + +- if (nl_connect(nl, NETLINK_INET_DIAG) < 0) { +- DEBUGMSGTL(("mibII/tcpTable", "Failed to connect to netlink: %s\n", nl_geterror())); +- snmp_log(LOG_ERR, "snmpd: Couldn't connect to netlink: %s\n", nl_geterror()); +- nl_handle_destroy(nl); ++ if ((err = nl_connect(nl, NETLINK_INET_DIAG)) < 0) { ++ DEBUGMSGTL(("mibII/tcpTable", "Failed to connect to netlink: %s\n", nl_geterror(err))); ++