[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2020-11-09 Thread Evangelos Foutras via arch-commits
Date: Monday, November 9, 2020 @ 15:47:24
  Author: foutrelis
Revision: 399760

upgpkg: net-snmp 5.9-2: Python 3.9 rebuild

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-11-09 15:47:11 UTC (rev 399759)
+++ PKGBUILD2020-11-09 15:47:24 UTC (rev 399760)
@@ -3,7 +3,7 @@
 
 pkgname=net-snmp
 pkgver=5.9
-pkgrel=1
+pkgrel=2
 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/;


[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2020-10-27 Thread Felix Yan via arch-commits
Date: Tuesday, October 27, 2020 @ 09:59:06
  Author: felixonmars
Revision: 398848

upgpkg: net-snmp 5.9-1

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-10-27 09:35:38 UTC (rev 398847)
+++ PKGBUILD2020-10-27 09:59:06 UTC (rev 398848)
@@ -9,10 +9,10 @@
 url="http://www.net-snmp.org/;
 license=('BSD')
 depends=('libnsl' 'libpcap' 'lm_sensors' 'pciutils' 'pcre')
-makedepends=('python2-setuptools')
+makedepends=('python-setuptools')
 optdepends=('perl-term-readkey: for snmpcheck application'
 'perl-tk: for snmpcheck and tkmib applications'
-'python2: for the python modules')
+'python: for the python modules')
 options=('!emptydirs' '!makeflags')
 
source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc}
 snmpd.service snmptrapd.service)
@@ -31,7 +31,7 @@
 
 build() {
   cd ${pkgname}-${pkgver}
-  PYTHONPROG=/usr/bin/python2 ./configure --prefix=/usr \
+  ./configure --prefix=/usr \
 --sysconfdir=/etc --sbindir=/usr/bin \
 --mandir=/usr/share/man \
 --enable-ucd-snmp-compatibility \


[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2020-10-16 Thread Felix Yan via arch-commits
Date: Friday, October 16, 2020 @ 08:33:36
  Author: felixonmars
Revision: 398434

upgpkg: net-snmp 5.9-1

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-10-16 07:41:24 UTC (rev 398433)
+++ PKGBUILD2020-10-16 08:33:36 UTC (rev 398434)
@@ -2,8 +2,8 @@
 # Contributor: Dale Blount 
 
 pkgname=net-snmp
-pkgver=5.8
-pkgrel=6
+pkgver=5.9
+pkgrel=1
 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/;
@@ -16,7 +16,7 @@
 options=('!emptydirs' '!makeflags')
 
source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc}
 snmpd.service snmptrapd.service)
-sha512sums=('27895a583b23f3e14c48562bc32f3ba83513d81aa848e878be9a3650f0458d45950635c937ef627135f80b757b663e71fab9a3bde4fd91889153998ae3468fe7'
+sha512sums=('df3273f03065ea5cb7d63398308ada06bcd186e0bc48929e81ba647f392b646ab81ddc241aebcd75408ec29231377375af62edf2835e9c3eb01d0a6856b79434'
 'SKIP'
 
'802057d08f4fe69fa9fafed349d37c0f8a6092002b933292563568db274890ae8932a000ecb60c5db0db792ecca30723fc803c0af6da147d148bf059b7f137eb'
 
'82b05b805db5f6870242ea4dfaa58de2865c367208cacfa4fc543c9f2a310d7229dee94ea6054d35c4bab69393f33fd367551727279da4411052589ed37bb4a4')


[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2020-06-21 Thread Evangelos Foutras via arch-commits
Date: Sunday, June 21, 2020 @ 10:53:18
  Author: foutrelis
Revision: 389768

upgpkg: net-snmp 5.8-6: Perl 5.32 rebuild

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-06-21 10:51:33 UTC (rev 389767)
+++ PKGBUILD2020-06-21 10:53:18 UTC (rev 389768)
@@ -3,7 +3,7 @@
 
 pkgname=net-snmp
 pkgver=5.8
-pkgrel=5
+pkgrel=6
 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/;


[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2020-05-16 Thread Felix Yan via arch-commits
Date: Saturday, May 16, 2020 @ 12:12:46
  Author: felixonmars
Revision: 384457

upgpkg: net-snmp 5.8-5: reproducibility rebuild

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-05-16 12:12:44 UTC (rev 384456)
+++ PKGBUILD2020-05-16 12:12:46 UTC (rev 384457)
@@ -3,7 +3,7 @@
 
 pkgname=net-snmp
 pkgver=5.8
-pkgrel=4
+pkgrel=5
 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/;


[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2019-06-01 Thread Felix Yan via arch-commits
Date: Saturday, June 1, 2019 @ 09:26:47
  Author: felixonmars
Revision: 354651

Perl 5.30 rebuild

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-06-01 09:25:10 UTC (rev 354650)
+++ PKGBUILD2019-06-01 09:26:47 UTC (rev 354651)
@@ -3,7 +3,7 @@
 
 pkgname=net-snmp
 pkgver=5.8
-pkgrel=3
+pkgrel=4
 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/;


[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2019-05-25 Thread Evangelos Foutras via arch-commits
Date: Saturday, May 25, 2019 @ 09:44:31
  Author: foutrelis
Revision: 354140

Perl 5.30 rebuild

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-05-25 09:37:26 UTC (rev 354139)
+++ PKGBUILD2019-05-25 09:44:31 UTC (rev 354140)
@@ -3,7 +3,7 @@
 
 pkgname=net-snmp
 pkgver=5.8
-pkgrel=2
+pkgrel=3
 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/;


[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2019-04-11 Thread Antonio Rojas via arch-commits
Date: Thursday, April 11, 2019 @ 20:04:17
  Author: arojas
Revision: 350590

https

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-04-11 20:03:10 UTC (rev 350589)
+++ PKGBUILD2019-04-11 20:04:17 UTC (rev 350590)
@@ -14,7 +14,7 @@
 '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}
+source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc}
 snmpd.service snmptrapd.service)
 
sha512sums=('27895a583b23f3e14c48562bc32f3ba83513d81aa848e878be9a3650f0458d45950635c937ef627135f80b757b663e71fab9a3bde4fd91889153998ae3468fe7'
 'SKIP'


[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2019-01-10 Thread Felix Yan via arch-commits
Date: Thursday, January 10, 2019 @ 12:35:48
  Author: felixonmars
Revision: 343238

upgpkg: net-snmp 5.8-2

enable lm_sensors support (FS#55304)

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-01-10 11:39:26 UTC (rev 343237)
+++ PKGBUILD2019-01-10 12:35:48 UTC (rev 343238)
@@ -3,12 +3,12 @@
 
 pkgname=net-snmp
 pkgver=5.8
-pkgrel=1
+pkgrel=2
 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')
+depends=('libnsl' 'libpcap' 'lm_sensors' 'pciutils' 'pcre')
 makedepends=('python2-setuptools')
 optdepends=('perl-term-readkey: for snmpcheck application'
 'perl-tk: for snmpcheck and tkmib applications'
@@ -41,7 +41,7 @@
 --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-mib-modules="host misc/ipfwacc ucd-snmp/diskio tunnel 
ucd-snmp/dlmod ucd-snmp/lmsensorsMib" \
 --with-persistent-directory="/var/net-snmp"
   make NETSNMP_DONT_CHECK_VERSION=1
 }


[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2018-08-01 Thread Felix Yan via arch-commits
Date: Wednesday, August 1, 2018 @ 09:30:54
  Author: felixonmars
Revision: 330101

Perl 5.28 rebuild

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-08-01 09:30:30 UTC (rev 330100)
+++ PKGBUILD2018-08-01 09:30:54 UTC (rev 330101)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.7.3
-pkgrel=8
+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/;


[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2018-04-12 Thread Felix Yan via arch-commits
Date: Thursday, April 12, 2018 @ 07:33:16
  Author: felixonmars
Revision: 321624

upgpkg: net-snmp 5.7.3-8

libnsl rebuild

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |   16 
 1 file changed, 8 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-04-12 07:25:43 UTC (rev 321623)
+++ PKGBUILD2018-04-12 07:33:16 UTC (rev 321624)
@@ -4,12 +4,12 @@
 
 pkgname=net-snmp
 pkgver=5.7.3
-pkgrel=7
+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=('openssl' 'libnl' 'pciutils')
+depends=('libnl' 'libnsl' 'openssl' 'pciutils')
 makedepends=('python2-setuptools')
 optdepends=('perl-term-readkey: for snmpcheck application'
 'perl-tk: for snmpcheck and tkmib applications'
@@ -17,12 +17,12 @@
 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)
-sha1sums=('97dc25077257680815de44e34128d365c76bd839'
-  'SKIP'
-  '84e32c54d32e6b608747054e04a3ddfe6d6638cc'
-  '0244e91c7baa0abebfb5c0560e8ce04c966c5992'
-  '31beef2cb5ad9b4ac655f8ced53058ebf6e99ca9'
-  'b329ff700a3e20cdfcab4643a573ef976f9182c0')
+sha512sums=('0758bba5844cfd6c80959ac16b83906a2f830ba49fd0ab1bf9e191dc6a79d312a2e4760bd53b3e1a1c82759481f0064d088d5a3cf475d84b25679a6bd0f049bb'
+'SKIP'
+
'802057d08f4fe69fa9fafed349d37c0f8a6092002b933292563568db274890ae8932a000ecb60c5db0db792ecca30723fc803c0af6da147d148bf059b7f137eb'
+
'82b05b805db5f6870242ea4dfaa58de2865c367208cacfa4fc543c9f2a310d7229dee94ea6054d35c4bab69393f33fd367551727279da4411052589ed37bb4a4'
+
'bf9ce238083f6a03cbb3080e584c9ca64060dee4e46ce62f35eccc877213e26340747de4cfdb7928dc7b95525865b68593ea82eb01b7971f3f3cacedac8c8136'
+
'66cad5a708615e428f2edd91cd1c9a9c2f1e6ce00f9cc3dbaa3a06b6bd1ce02dfa7a8eb3a02426713f8a9d327872f349d107e03440c942fd65bf4b13fc5df028')
 validpgpkeys=('8AAA779B597B405BBC329B6376CF47B8A77C5329'
   '27CAA4A32E371383A33ED0587D5F9576E0F81533')  # Net-SNMP 
Administrators
 


[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2017-08-26 Thread Evangelos Foutras
Date: Saturday, August 26, 2017 @ 10:59:33
  Author: foutrelis
Revision: 303777

Perl versioned binary modules rebuild

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-08-26 10:52:14 UTC (rev 303776)
+++ PKGBUILD2017-08-26 10:59:33 UTC (rev 303777)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.7.3
-pkgrel=6
+pkgrel=7
 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/;


[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2017-08-24 Thread Evangelos Foutras
Date: Thursday, August 24, 2017 @ 12:53:08
  Author: foutrelis
Revision: 303403

Perl versioned binary modules rebuild

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-08-24 12:46:53 UTC (rev 303402)
+++ PKGBUILD2017-08-24 12:53:08 UTC (rev 303403)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.7.3
-pkgrel=5
+pkgrel=6
 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/;


[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2017-06-01 Thread Evangelos Foutras
Date: Thursday, June 1, 2017 @ 10:02:35
  Author: foutrelis
Revision: 297192

Perl 5.26 rebuild

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-06-01 09:59:28 UTC (rev 297191)
+++ PKGBUILD2017-06-01 10:02:35 UTC (rev 297192)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.7.3
-pkgrel=4
+pkgrel=5
 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/;


[arch-commits] Commit in net-snmp/trunk (PKGBUILD fix-openssl-build-errors.patch)

2017-03-10 Thread Jelle van der Waa
Date: Friday, March 10, 2017 @ 20:04:44
  Author: jelle
Revision: 290505

upgpkg: net-snmp 5.7.3-4

openssl 1.1.0 rebuild

Added:
  net-snmp/trunk/fix-openssl-build-errors.patch
Modified:
  net-snmp/trunk/PKGBUILD

+
 PKGBUILD   |9 +-
 fix-openssl-build-errors.patch |  171 +++
 2 files changed, 177 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-03-10 15:42:47 UTC (rev 290504)
+++ PKGBUILD2017-03-10 20:04:44 UTC (rev 290505)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.7.3
-pkgrel=3
+pkgrel=4
 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/;
@@ -16,12 +16,13 @@
 '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)
+snmpd.service snmptrapd.service net-snmp-5.7.3-perl-5.24.patch 
fix-openssl-build-errors.patch)
 sha1sums=('97dc25077257680815de44e34128d365c76bd839'
   'SKIP'
   '84e32c54d32e6b608747054e04a3ddfe6d6638cc'
   '0244e91c7baa0abebfb5c0560e8ce04c966c5992'
-  '31beef2cb5ad9b4ac655f8ced53058ebf6e99ca9')
+  '31beef2cb5ad9b4ac655f8ced53058ebf6e99ca9'
+  'b329ff700a3e20cdfcab4643a573ef976f9182c0')
 validpgpkeys=('8AAA779B597B405BBC329B6376CF47B8A77C5329'
   '27CAA4A32E371383A33ED0587D5F9576E0F81533')  # Net-SNMP 
Administrators
 
@@ -28,6 +29,8 @@
 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() {

Added: fix-openssl-build-errors.patch
===
--- fix-openssl-build-errors.patch  (rev 0)
+++ fix-openssl-build-errors.patch  2017-03-10 20:04:44 UTC (rev 290505)
@@ -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_VERSION_NUMBER < 0x1010L
++
++#include 
++#include 
++
++void DH_get0_pqg(const DH *dh,
++const BIGNUM **p, const BIGNUM **q, const BIGNUM **g)
++{
++   if (p != NULL)
++   *p = dh->p;
++   if (q != NULL)
++   *q = dh->q;
++   if (g != NULL)
++   *g = dh->g;
++}
++
++void DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM 
**priv_key)
++{
++   if (pub_key != NULL)
++   *pub_key = dh->pub_key;
++   if (priv_key != NULL)
++   *priv_key = dh->priv_key;
++}
++
++#endif
++
+ void
+ usage(void)
+ {
+@@ -190,7 +216,7 @@ get_USM_DH_key(netsnmp_variable_list *va
+oid *keyoid, size_t keyoid_len) {
+ u_char *dhkeychange;
+ DH *dh;
+-BIGNUM *other_pub;
++BIGNUM *p, *g, *pub_key, *other_pub;
+ u_char *key;
+ size_t key_len;
+ 
+@@ -205,25 +231,29 @@ get_USM_DH_key(netsnmp_variable_list *va
+ dh = d2i_DHparams(NULL, , dhvar->val_len);
+ }
+ 
+-if (!dh || !dh->g || !dh->p) {
++if (dh)
++DH_get0_pqg(dh, , NULL, );
++
++if (!dh || !g || !p) {
+ SNMP_FREE(dhkeychange);
+ return SNMPERR_GENERR;
+ }
+ 
+-DH_generate_key(dh);
+-if (!dh->pub_key) {
++if (!DH_generate_key(dh)) {
+ SNMP_FREE(dhkeychange);
+ return SNMPERR_GENERR;
+ }
+ 
+-if (vars->val_len != (unsigned int)BN_num_bytes(dh->pub_key)) {
++DH_get0_key(dh, _key, NULL);
++
++if (vars->val_len != (unsigned int)BN_num_bytes(pub_key)) {
+ SNMP_FREE(dhkeychange);
+ fprintf(stderr,"incorrect diffie-helman lengths (%lu != %d)\n",
+-(unsigned long)vars->val_len, BN_num_bytes(dh->pub_key));
++(unsigned long)vars->val_len, BN_num_bytes(pub_key));
+ return SNMPERR_GENERR;
+ }
+ 
+-BN_bn2bin(dh->pub_key, dhkeychange + vars->val_len);
++BN_bn2bin(pub_key, dhkeychange + vars->val_len);
+ 
+ key_len = DH_size(dh);
+ if (!key_len) {
+--- a/configure.d/config_os_libs2
 b/configure.d/config_os_libs2
+@@ -327,10 +327,16 @@ if test "x$tryopenssl" != "xno" -a "x$tr
+  [[#include ]])
+ 
+ AC_CHECK_LIB(${CRYPTO}, EVP_MD_CTX_create,
+-AC_DEFINE([HAVE_EVP_MD_CTX_CREATE], [],
++AC_DEFINE([HAVE_EVP_MD_CTX_CREATE], [1],
+ [Define to 1 if you have the `EVP_MD_CTX_create' 
function.])
+-AC_DEFINE([HAVE_EVP_MD_CTX_DESTROY], [],
++

[arch-commits] Commit in net-snmp/trunk (PKGBUILD net-snmp-5.7.3-perl-5.24.patch)

2016-05-11 Thread Felix Yan
Date: Wednesday, May 11, 2016 @ 08:15:39
  Author: fyan
Revision: 267771

upgpkg: net-snmp 5.7.3-3

rebuild with perl 5.24

Added:
  net-snmp/trunk/net-snmp-5.7.3-perl-5.24.patch
Modified:
  net-snmp/trunk/PKGBUILD

+
 PKGBUILD   |9 
 net-snmp-5.7.3-perl-5.24.patch | 2599 +++
 2 files changed, 2604 insertions(+), 4 deletions(-)

The diff is longer than the limit of 200KB.
Use svn diff -r 267770:267771 to see the changes.


[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2015-06-02 Thread Felix Yan
Date: Wednesday, June 3, 2015 @ 04:47:45
  Author: fyan
Revision: 240265

upgpkg: net-snmp 5.7.3-2

perl 5.22 rebuild

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |   10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-06-03 02:40:38 UTC (rev 240264)
+++ PKGBUILD2015-06-03 02:47:45 UTC (rev 240265)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.7.3
-pkgrel=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/;
@@ -53,4 +53,12 @@
   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;
 }


[arch-commits] Commit in net-snmp/trunk (PKGBUILD libnl32.patch)

2015-02-06 Thread Felix Yan
Date: Saturday, February 7, 2015 @ 03:58:02
  Author: fyan
Revision: 230918

upgpkg: net-snmp 5.7.3-1

Modified:
  net-snmp/trunk/PKGBUILD
Deleted:
  net-snmp/trunk/libnl32.patch

---+
 PKGBUILD  |   19 -
 libnl32.patch |   80 
 2 files changed, 7 insertions(+), 92 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-02-06 21:31:23 UTC (rev 230917)
+++ PKGBUILD2015-02-07 02:58:02 UTC (rev 230918)
@@ -3,8 +3,8 @@
 # Contributor: Dale Blount d...@archlinux.org
 
 pkgname=net-snmp
-pkgver=5.7.2.1
-pkgrel=3
+pkgver=5.7.3
+pkgrel=1
 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/;
@@ -16,22 +16,17 @@
 'python2: for the python modules')
 options=('!emptydirs' '!makeflags')
 
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc}
-snmpd.service snmptrapd.service libnl32.patch)
-sha1sums=('815d4e5520a1ed96a27def33e7534b4190599f0f'
+snmpd.service snmptrapd.service)
+sha1sums=('97dc25077257680815de44e34128d365c76bd839'
   'SKIP'
   '84e32c54d32e6b608747054e04a3ddfe6d6638cc'
-  '0244e91c7baa0abebfb5c0560e8ce04c966c5992'
-  '74a9848b95f63378eb1753fc309d2b74de5afb0f')
-validpgpkeys=('8AAA779B597B405BBC329B6376CF47B8A77C5329')  # Net-SNMP 
Administrators
+  '0244e91c7baa0abebfb5c0560e8ce04c966c5992')
+validpgpkeys=('8AAA779B597B405BBC329B6376CF47B8A77C5329'
+  '27CAA4A32E371383A33ED0587D5F9576E0F81533')  # Net-SNMP 
Administrators
 
 prepare() {
   cd ${pkgname}-${pkgver}
   #make PERL_ARCHLIB=/usr/lib/perl5/core_perl 
PERL_INC=/usr/lib/perl5/core_perl/CORE distclean
-
-  # 
http://sourceforge.net/tracker/index.php?func=detailaid=3250304group_id=12694atid=112694
-  patch -Np1 -i $srcdir/libnl32.patch
-
-  autoreconf -f -i
 }
 
 build() {

Deleted: libnl32.patch
===
--- libnl32.patch   2015-02-06 21:31:23 UTC (rev 230917)
+++ libnl32.patch   2015-02-07 02:58:02 UTC (rev 230918)
@@ -1,80 +0,0 @@
-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)));
-+  snmp_log(LOG_ERR, snmpd: Couldn't connect to netlink: %s\n, 
nl_geterror(err));
-+  nl_socket_free(nl);
-   return -1;
-   }
- 
-@@ -590,10 +591,10 @@
-   struct nl_msg *nm = nlmsg_alloc_simple(TCPDIAG_GETSOCK, 
NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST);
-   nlmsg_append(nm, req, sizeof(struct inet_diag_req), 0);
- 
--  if (nl_send_auto_complete(nl, nm)  0) {
--  DEBUGMSGTL((mibII/tcpTable, nl_send_autocomplete(): %s\n, 
nl_geterror()));
--  snmp_log(LOG_ERR, snmpd: nl_send_autocomplete(): %s\n, 
nl_geterror());
--  nl_handle_destroy(nl);
-+  if ((err = nl_send_auto_complete(nl, nm))  0) {
-+  DEBUGMSGTL((mibII/tcpTable, nl_send_autocomplete(): %s\n, 
nl_geterror(err)));
-+  snmp_log(LOG_ERR, snmpd: nl_send_autocomplete(): %s\n, 
nl_geterror(err));
-+  nl_socket_free(nl);
-   return -1;
-   }
-   nlmsg_free(nm);
-@@ -604,9 +605,9 @@
- 
-   while (running) {
-   if ((len = nl_recv(nl, peer, buf, NULL)) = 0) {
--  DEBUGMSGTL((mibII/tcpTable, nl_recv(): %s\n, 
nl_geterror()));
--  snmp_log(LOG_ERR, snmpd: nl_recv(): %s\n, 
nl_geterror());
--  nl_handle_destroy(nl);
-+  DEBUGMSGTL((mibII/tcpTable, nl_recv(): %s\n, 
nl_geterror(len)));
-+  snmp_log(LOG_ERR, snmpd: nl_recv(): %s\n, 
nl_geterror(len));
-+  nl_socket_free(nl);
-   return -1;
-   

[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2014-12-29 Thread Felix Yan
Date: Tuesday, December 30, 2014 @ 03:06:01
  Author: fyan
Revision: 228164

add validpgpkeys integrity check

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-12-30 01:57:20 UTC (rev 228163)
+++ PKGBUILD2014-12-30 02:06:01 UTC (rev 228164)
@@ -1,5 +1,5 @@
 # $Id$
-# Maintainer: Felix Yan felixonm...@gmail.com
+# Maintainer: Felix Yan felixonm...@archlinux.org
 # Contributor: Dale Blount d...@archlinux.org
 
 pkgname=net-snmp
@@ -22,6 +22,7 @@
   '84e32c54d32e6b608747054e04a3ddfe6d6638cc'
   '0244e91c7baa0abebfb5c0560e8ce04c966c5992'
   '74a9848b95f63378eb1753fc309d2b74de5afb0f')
+validpgpkeys=('8AAA779B597B405BBC329B6376CF47B8A77C5329')  # Net-SNMP 
Administrators
 
 prepare() {
   cd ${pkgname}-${pkgver}


[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2014-05-28 Thread Felix Yan
Date: Thursday, May 29, 2014 @ 05:49:27
  Author: fyan
Revision: 213780

upgpkg: net-snmp 5.7.2.1-3

perl 5.20 rebuild

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-05-29 03:09:30 UTC (rev 213779)
+++ PKGBUILD2014-05-29 03:49:27 UTC (rev 213780)
@@ -1,10 +1,10 @@
 # $Id$
-# Maintainer:
+# Maintainer: Felix Yan felixonm...@gmail.com
 # Contributor: Dale Blount d...@archlinux.org
 
 pkgname=net-snmp
 pkgver=5.7.2.1
-pkgrel=2
+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/;



[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2014-03-13 Thread Felix Yan
Date: Thursday, March 13, 2014 @ 16:30:20
  Author: fyan
Revision: 207699

upgpkg: net-snmp 5.7.2.1-2

- upstream re-released 5.7.2.1
- address CVE-2014-2285 and CVE-2014-2284 (FS#39190)

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |   10 ++
 1 file changed, 6 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-03-13 15:20:37 UTC (rev 207698)
+++ PKGBUILD2014-03-13 15:30:20 UTC (rev 207699)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.7.2.1
-pkgrel=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/;
@@ -17,7 +17,7 @@
 options=('!emptydirs' '!makeflags')
 
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc}
 snmpd.service snmptrapd.service libnl32.patch)
-sha1sums=('ea5b8952ca482eceac8cb1f3ffbac50e13c0a5b0'
+sha1sums=('815d4e5520a1ed96a27def33e7534b4190599f0f'
   'SKIP'
   '84e32c54d32e6b608747054e04a3ddfe6d6638cc'
   '0244e91c7baa0abebfb5c0560e8ce04c966c5992'
@@ -25,9 +25,11 @@
 
 prepare() {
   cd ${pkgname}-${pkgver}
-  make PERL_ARCHLIB=/usr/lib/perl5/core_perl 
PERL_INC=/usr/lib/perl5/core_perl/CORE distclean
-# 
http://sourceforge.net/tracker/index.php?func=detailaid=3250304group_id=12694atid=112694
+  #make PERL_ARCHLIB=/usr/lib/perl5/core_perl 
PERL_INC=/usr/lib/perl5/core_perl/CORE distclean
+
+  # 
http://sourceforge.net/tracker/index.php?func=detailaid=3250304group_id=12694atid=112694
   patch -Np1 -i $srcdir/libnl32.patch
+
   autoreconf -f -i
 }
 



[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2014-02-27 Thread Eric Bélanger
Date: Thursday, February 27, 2014 @ 13:20:49
  Author: eric
Revision: 206472

upgpkg: net-snmp 5.7.2.1-1

Upstream update

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |   10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-02-27 11:47:50 UTC (rev 206471)
+++ PKGBUILD2014-02-27 12:20:49 UTC (rev 206472)
@@ -3,8 +3,8 @@
 # Contributor: Dale Blount d...@archlinux.org
 
 pkgname=net-snmp
-pkgver=5.7.2
-pkgrel=8
+pkgver=5.7.2.1
+pkgrel=1
 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/;
@@ -17,7 +17,7 @@
 options=('!emptydirs' '!makeflags')
 
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc}
 snmpd.service snmptrapd.service libnl32.patch)
-sha1sums=('c493027907f32400648244d81117a126aecd27ee'
+sha1sums=('ea5b8952ca482eceac8cb1f3ffbac50e13c0a5b0'
   'SKIP'
   '84e32c54d32e6b608747054e04a3ddfe6d6638cc'
   '0244e91c7baa0abebfb5c0560e8ce04c966c5992'
@@ -25,6 +25,7 @@
 
 prepare() {
   cd ${pkgname}-${pkgver}
+  make PERL_ARCHLIB=/usr/lib/perl5/core_perl 
PERL_INC=/usr/lib/perl5/core_perl/CORE distclean
 # 
http://sourceforge.net/tracker/index.php?func=detailaid=3250304group_id=12694atid=112694
   patch -Np1 -i $srcdir/libnl32.patch
   autoreconf -f -i
@@ -43,8 +44,7 @@
 --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
+--with-persistent-directory=/var/net-snmp
   make NETSNMP_DONT_CHECK_VERSION=1
 }
 



[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2013-08-17 Thread Ángel Velásquez
Date: Saturday, August 17, 2013 @ 12:28:25
  Author: angvp
Revision: 193154

upgpkg: net-snmp 5.7.2-8

Changed dependencies to setuptools instead distribute

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-08-17 10:25:30 UTC (rev 193153)
+++ PKGBUILD2013-08-17 10:28:25 UTC (rev 193154)
@@ -4,13 +4,13 @@
 
 pkgname=net-snmp
 pkgver=5.7.2
-pkgrel=7
+pkgrel=8
 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')
+makedepends=('python2-setuptools')
 optdepends=('perl-term-readkey: for snmpcheck application'
 'perl-tk: for snmpcheck and tkmib applications'
 'python2: for the python modules')



[arch-commits] Commit in net-snmp/trunk (PKGBUILD snmptrapd.service)

2013-05-22 Thread Eric Bélanger
Date: Wednesday, May 22, 2013 @ 17:09:06
  Author: eric
Revision: 186237

upgpkg: net-snmp 5.7.2-7

Add snmptrapd service file (close FS#35410)

Added:
  net-snmp/trunk/snmptrapd.service
Modified:
  net-snmp/trunk/PKGBUILD

---+
 PKGBUILD  |6 --
 snmptrapd.service |   12 
 2 files changed, 16 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-05-22 12:23:19 UTC (rev 186236)
+++ PKGBUILD2013-05-22 15:09:06 UTC (rev 186237)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.7.2
-pkgrel=6
+pkgrel=7
 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/;
@@ -16,10 +16,11 @@
 'python2: for the python modules')
 options=('!libtool' '!emptydirs' '!makeflags')
 
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc}
-snmpd.service libnl32.patch)
+snmpd.service snmptrapd.service libnl32.patch)
 sha1sums=('c493027907f32400648244d81117a126aecd27ee'
   'SKIP'
   '84e32c54d32e6b608747054e04a3ddfe6d6638cc'
+  '0244e91c7baa0abebfb5c0560e8ce04c966c5992'
   '74a9848b95f63378eb1753fc309d2b74de5afb0f')
 
 prepare() {
@@ -52,5 +53,6 @@
   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
 }

Added: snmptrapd.service
===
--- snmptrapd.service   (rev 0)
+++ snmptrapd.service   2013-05-22 15:09:06 UTC (rev 186237)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Simple Network Management Protocol (SNMP) TRAP Daemon
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=/run/snmptrapd.pid
+ExecStart=/usr/bin/snmptrapd -p /run/snmptrapd.pid
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target



[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2013-05-19 Thread Evangelos Foutras
Date: Monday, May 20, 2013 @ 00:11:07
  Author: foutrelis
Revision: 185955

upgpkg: net-snmp 5.7.2-6

Perl 5.18 rebuild.

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-05-19 22:02:06 UTC (rev 185954)
+++ PKGBUILD2013-05-19 22:11:07 UTC (rev 185955)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.7.2
-pkgrel=5
+pkgrel=6
 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/;



[arch-commits] Commit in net-snmp/trunk (PKGBUILD snmpd.service)

2013-05-12 Thread Eric Bélanger
Date: Monday, May 13, 2013 @ 05:05:05
  Author: eric
Revision: 185294

upgpkg: net-snmp 5.7.2-5

Move binaries in /usr/sbin to /usr/bin

Modified:
  net-snmp/trunk/PKGBUILD
  net-snmp/trunk/snmpd.service

---+
 PKGBUILD  |6 +++---
 snmpd.service |2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-05-13 00:49:44 UTC (rev 185293)
+++ PKGBUILD2013-05-13 03:05:05 UTC (rev 185294)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.7.2
-pkgrel=4
+pkgrel=5
 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/;
@@ -19,7 +19,7 @@
 snmpd.service libnl32.patch)
 sha1sums=('c493027907f32400648244d81117a126aecd27ee'
   'SKIP'
-  '2ad00f89ecb8ec97adfbae7adfbfa3499319e5d7'
+  '84e32c54d32e6b608747054e04a3ddfe6d6638cc'
   '74a9848b95f63378eb1753fc309d2b74de5afb0f')
 
 prepare() {
@@ -32,7 +32,7 @@
 build() {
   cd ${pkgname}-${pkgver}
   PYTHONPROG=/usr/bin/python2 ./configure --prefix=/usr \
---sysconfdir=/etc \
+--sysconfdir=/etc --sbindir=/usr/bin \
 --mandir=/usr/share/man \
 --enable-ucd-snmp-compatibility \
 --enable-ipv6 \

Modified: snmpd.service
===
--- snmpd.service   2013-05-13 00:49:44 UTC (rev 185293)
+++ snmpd.service   2013-05-13 03:05:05 UTC (rev 185294)
@@ -5,7 +5,7 @@
 [Service]
 Type=forking
 PIDFile=/run/snmpd.pid
-ExecStart=/usr/sbin/snmpd -p /run/snmpd.pid
+ExecStart=/usr/bin/snmpd -p /run/snmpd.pid
 ExecReload=/bin/kill -HUP $MAINPID
 
 [Install]



[arch-commits] Commit in net-snmp/trunk (PKGBUILD snmpd.confd snmpd.rc snmpd.service)

2013-04-13 Thread Eric Bélanger
Date: Sunday, April 14, 2013 @ 06:21:37
  Author: eric
Revision: 182743

upgpkg: net-snmp 5.7.2-4

Set PIDFile in snmpd.service (close FS#32258), Disable SMP build (close 
FS#33757), Remove initscripts support, Add prepare function, Remove old 
provides array

Modified:
  net-snmp/trunk/PKGBUILD
  net-snmp/trunk/snmpd.service
Deleted:
  net-snmp/trunk/snmpd.confd
  net-snmp/trunk/snmpd.rc

---+
 PKGBUILD  |   28 
 snmpd.confd   |5 -
 snmpd.rc  |   39 ---
 snmpd.service |3 ++-
 4 files changed, 14 insertions(+), 61 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-04-14 01:15:35 UTC (rev 182742)
+++ PKGBUILD2013-04-14 04:21:37 UTC (rev 182743)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.7.2
-pkgrel=3
+pkgrel=4
 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/;
@@ -14,25 +14,23 @@
 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' '!emptydirs')
+options=('!libtool' '!emptydirs' '!makeflags')
 
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc}
-snmpd.confd snmpd.rc snmpd.service libnl32.patch)
+snmpd.service libnl32.patch)
 sha1sums=('c493027907f32400648244d81117a126aecd27ee'
-  '25ee4b2e7b5a1b91122d06e82d41ef5bb5359d6d'
-  'cf811da9e57bbca34d8e2a3c358bb3bfc0c2b33b'
-  '90600c0141eed10d6e3ca3ccc97ad8dda15c2112'
-  'f59ddc049c1c689f04e68c3c7cd8b8e301df3158'
+  'SKIP'
+  '2ad00f89ecb8ec97adfbae7adfbfa3499319e5d7'
   '74a9848b95f63378eb1753fc309d2b74de5afb0f')
 
-build() {
-  cd ${srcdir}/${pkgname}-${pkgver}
-
-  # 
http://sourceforge.net/tracker/index.php?func=detailaid=3250304group_id=12694atid=112694
+prepare() {
+  cd ${pkgname}-${pkgver}
+# 
http://sourceforge.net/tracker/index.php?func=detailaid=3250304group_id=12694atid=112694
   patch -Np1 -i $srcdir/libnl32.patch
   autoreconf -f -i
+}
 
+build() {
+  cd ${pkgname}-${pkgver}
   PYTHONPROG=/usr/bin/python2 ./configure --prefix=/usr \
 --sysconfdir=/etc \
 --mandir=/usr/share/man \
@@ -50,11 +48,9 @@
 }
 
 package() {
-  cd ${srcdir}/${pkgname}-${pkgver}
+  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 -m755 ${srcdir}/snmpd.rc ${pkgdir}/etc/rc.d/snmpd
-  install -D -m644 ${srcdir}/snmpd.confd ${pkgdir}/etc/conf.d/snmpd
   install -D -m644 ${srcdir}/snmpd.service 
${pkgdir}/usr/lib/systemd/system/snmpd.service
   install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
 }

Deleted: snmpd.confd
===
--- snmpd.confd 2013-04-14 01:15:35 UTC (rev 182742)
+++ snmpd.confd 2013-04-14 04:21:37 UTC (rev 182743)
@@ -1,5 +0,0 @@
-#
-# Parameters to be passed to snmpd
-#
-SNMPD_ARGS=
-

Deleted: snmpd.rc
===
--- snmpd.rc2013-04-14 01:15:35 UTC (rev 182742)
+++ snmpd.rc2013-04-14 04:21:37 UTC (rev 182743)
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/conf.d/snmpd
-
-PID=`pidof -o %PPID /usr/sbin/snmpd`
-case $1 in
-  start)
-stat_busy Starting Net-SNMP
-[ -z $PID ]  /usr/sbin/snmpd $SNMPD_ARGS
-if [ $? -gt 0 ]; then
-  stat_fail
-else
-  echo $PID  /var/run/snmpd.pid
-  add_daemon snmpd
-  stat_done
-fi
-;;
-  stop)
-stat_busy Stopping Net-SNMP
-[ ! -z $PID ]   kill $PID  /dev/null
-if [ $? -gt 0 ]; then
-  stat_fail
-else
-  rm /var/run/snmpd.pid
-  rm_daemon snmpd
-  stat_done
-fi
-;;
-  restart)
-$0 stop
-sleep 2
-$0 start
-;;
-  *)
-echo usage: $0 {start|stop|restart}  
-esac
-exit 0

Modified: snmpd.service
===
--- snmpd.service   2013-04-14 01:15:35 UTC (rev 182742)
+++ snmpd.service   2013-04-14 04:21:37 UTC (rev 182743)
@@ -4,7 +4,8 @@
 
 [Service]
 Type=forking
-ExecStart=/usr/sbin/snmpd
+PIDFile=/run/snmpd.pid
+ExecStart=/usr/sbin/snmpd -p /run/snmpd.pid
 ExecReload=/bin/kill -HUP $MAINPID
 
 [Install]



[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2013-03-07 Thread Evangelos Foutras
Date: Thursday, March 7, 2013 @ 13:10:07
  Author: foutrelis
Revision: 179579

upgpkg: net-snmp 5.7.2-3

libnl 3.2.21 rebuild.

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-03-07 12:02:00 UTC (rev 179578)
+++ PKGBUILD2013-03-07 12:10:07 UTC (rev 179579)
@@ -1,17 +1,17 @@
 # $Id$
-# Maintainer: 
+# Maintainer:
 # Contributor: Dale Blount d...@archlinux.org
 
 pkgname=net-snmp
 pkgver=5.7.2
-pkgrel=2
+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' 
+optdepends=('perl-term-readkey: for snmpcheck application'
 'perl-tk: for snmpcheck and tkmib applications'
 'python2: for the python modules')
 provides=('ucd-snmp')



[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2013-02-09 Thread Thomas Bächler
Date: Saturday, February 9, 2013 @ 20:39:56
  Author: thomas
Revision: 177836

upgpkg: net-snmp 5.7.2-2 - rebuild for libnl 200-201 soname bump

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-02-09 19:39:46 UTC (rev 177835)
+++ PKGBUILD2013-02-09 19:39:56 UTC (rev 177836)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.7.2
-pkgrel=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/;



[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2012-10-20 Thread Eric Bélanger
Date: Saturday, October 20, 2012 @ 05:06:00
  Author: eric
Revision: 169380

upgpkg: net-snmp 5.7.2-1

Upstream update, Enable SMP build

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |   10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-10-20 09:05:17 UTC (rev 169379)
+++ PKGBUILD2012-10-20 09:06:00 UTC (rev 169380)
@@ -3,8 +3,8 @@
 # Contributor: Dale Blount d...@archlinux.org
 
 pkgname=net-snmp
-pkgver=5.7.1
-pkgrel=4
+pkgver=5.7.2
+pkgrel=1
 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/;
@@ -16,11 +16,11 @@
 'python2: for the python modules')
 provides=('ucd-snmp')
 backup=('etc/conf.d/snmpd')
-options=('!libtool' '!makeflags' '!emptydirs')
+options=('!libtool' '!emptydirs')
 
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc}
 snmpd.confd snmpd.rc snmpd.service libnl32.patch)
-sha1sums=('ddb82ce1112ef0642869d3c8d7c7e585f151849a'
-  '2bdc2839ce09d7daa608cd54687fa8beb47ed907'
+sha1sums=('c493027907f32400648244d81117a126aecd27ee'
+  '25ee4b2e7b5a1b91122d06e82d41ef5bb5359d6d'
   'cf811da9e57bbca34d8e2a3c358bb3bfc0c2b33b'
   '90600c0141eed10d6e3ca3ccc97ad8dda15c2112'
   'f59ddc049c1c689f04e68c3c7cd8b8e301df3158'



[arch-commits] Commit in net-snmp/trunk (PKGBUILD snmpd.service)

2012-10-05 Thread Eric Bélanger
Date: Friday, October 5, 2012 @ 02:53:51
  Author: eric
Revision: 168009

upgpkg: net-snmp 5.7.1-4

Add systemd unit (close FS#31769)

Added:
  net-snmp/trunk/snmpd.service
Modified:
  net-snmp/trunk/PKGBUILD

---+
 PKGBUILD  |6 --
 snmpd.service |   11 +++
 2 files changed, 15 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-10-05 06:33:28 UTC (rev 168008)
+++ PKGBUILD2012-10-05 06:53:51 UTC (rev 168009)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.7.1
-pkgrel=3
+pkgrel=4
 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/;
@@ -18,11 +18,12 @@
 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)
+snmpd.confd snmpd.rc snmpd.service libnl32.patch)
 sha1sums=('ddb82ce1112ef0642869d3c8d7c7e585f151849a'
   '2bdc2839ce09d7daa608cd54687fa8beb47ed907'
   'cf811da9e57bbca34d8e2a3c358bb3bfc0c2b33b'
   '90600c0141eed10d6e3ca3ccc97ad8dda15c2112'
+  'f59ddc049c1c689f04e68c3c7cd8b8e301df3158'
   '74a9848b95f63378eb1753fc309d2b74de5afb0f')
 
 build() {
@@ -54,5 +55,6 @@
   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 ${srcdir}/snmpd.service 
${pkgdir}/usr/lib/systemd/system/snmpd.service
   install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
 }

Added: snmpd.service
===
--- snmpd.service   (rev 0)
+++ snmpd.service   2012-10-05 06:53:51 UTC (rev 168009)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Simple Network Management Protocol (SNMP) Daemon
+After=syslog.target network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/snmpd
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target



[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2012-05-26 Thread Evangelos Foutras
Date: Saturday, May 26, 2012 @ 16:11:39
  Author: foutrelis
Revision: 159780

upgpkg: net-snmp 5.7.1-3

Perl 5.16 rebuild.

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-05-26 19:57:17 UTC (rev 159779)
+++ PKGBUILD2012-05-26 20:11:39 UTC (rev 159780)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.7.1
-pkgrel=2
+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/;



[arch-commits] Commit in net-snmp/trunk (PKGBUILD libnl32.patch)

2012-02-09 Thread Jan Steffens
Date: Thursday, February 9, 2012 @ 14:20:25
  Author: heftig
Revision: 149722

libnl3

Added:
  net-snmp/trunk/libnl32.patch
Modified:
  net-snmp/trunk/PKGBUILD

---+
 PKGBUILD  |   15 +++---
 libnl32.patch |   80 
 2 files changed, 91 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-02-09 18:49:54 UTC (rev 149721)
+++ PKGBUILD2012-02-09 19:20:25 UTC (rev 149722)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.7.1
-pkgrel=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/;
@@ -18,14 +18,20 @@
 backup=('etc/conf.d/snmpd')
 options=('!libtool' '!makeflags' '!emptydirs')
 
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc}
-snmpd.confd snmpd.rc)
+snmpd.confd snmpd.rc libnl32.patch)
 sha1sums=('ddb82ce1112ef0642869d3c8d7c7e585f151849a'
   '2bdc2839ce09d7daa608cd54687fa8beb47ed907'
   'cf811da9e57bbca34d8e2a3c358bb3bfc0c2b33b'
-  '90600c0141eed10d6e3ca3ccc97ad8dda15c2112')
+  '90600c0141eed10d6e3ca3ccc97ad8dda15c2112'
+  '74a9848b95f63378eb1753fc309d2b74de5afb0f')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
+
+  # 
http://sourceforge.net/tracker/index.php?func=detailaid=3250304group_id=12694atid=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 \
@@ -38,7 +44,8 @@
 --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
+--with-persistent-directory=/var/net-snmp \
+--disable-static
   make NETSNMP_DONT_CHECK_VERSION=1
 }
 

Added: libnl32.patch
===
--- libnl32.patch   (rev 0)
+++ libnl32.patch   2012-02-09 19:20:25 UTC (rev 149722)
@@ -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)));
++  snmp_log(LOG_ERR, snmpd: Couldn't connect to netlink: %s\n, 
nl_geterror(err));
++  nl_socket_free(nl);
+   return -1;
+   }
+ 
+@@ -590,10 +591,10 @@
+   struct nl_msg *nm = nlmsg_alloc_simple(TCPDIAG_GETSOCK, 
NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST);
+   nlmsg_append(nm, req, sizeof(struct inet_diag_req), 0);
+ 
+-  if (nl_send_auto_complete(nl, nm)  0) {
+-  DEBUGMSGTL((mibII/tcpTable, nl_send_autocomplete(): %s\n, 
nl_geterror()));
+-  snmp_log(LOG_ERR, snmpd: nl_send_autocomplete(): %s\n, 
nl_geterror());
+-  nl_handle_destroy(nl);
++  if ((err = nl_send_auto_complete(nl, nm))  0) {
++  DEBUGMSGTL((mibII/tcpTable, nl_send_autocomplete(): %s\n, 
nl_geterror(err)));
++  snmp_log(LOG_ERR, snmpd: nl_send_autocomplete(): %s\n, 
nl_geterror(err));
++  nl_socket_free(nl);
+   return -1;
+   }
+   nlmsg_free(nm);
+@@ -604,9 +605,9 @@
+ 
+   while (running) {
+   if ((len = nl_recv(nl, peer, buf, NULL)) = 0) {
+-  DEBUGMSGTL((mibII/tcpTable, nl_recv(): %s\n, 
nl_geterror()));
+-  snmp_log(LOG_ERR, snmpd: nl_recv(): %s\n, 
nl_geterror());
+-  nl_handle_destroy(nl);
++  DEBUGMSGTL((mibII/tcpTable, nl_recv(): %s\n, 
nl_geterror(len)));
++  snmp_log(LOG_ERR, snmpd: nl_recv(): %s\n, 
nl_geterror(len));
++  nl_socket_free(nl);
+

[arch-commits] Commit in net-snmp/trunk (PKGBUILD libnl-2.patch)

2011-09-28 Thread Eric Bélanger
Date: Thursday, September 29, 2011 @ 00:44:14
  Author: eric
Revision: 139096

upgpkg: net-snmp 5.7.1-1

Upstream update, Fix license, Add pciutils depends, Add backup array, Removed 
old patch

Modified:
  net-snmp/trunk/PKGBUILD
Deleted:
  net-snmp/trunk/libnl-2.patch

---+
 PKGBUILD  |   18 ---
 libnl-2.patch |   67 
 2 files changed, 10 insertions(+), 75 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-09-29 03:14:06 UTC (rev 139095)
+++ PKGBUILD2011-09-29 04:44:14 UTC (rev 139096)
@@ -3,24 +3,26 @@
 # Contributor: Dale Blount d...@archlinux.org
 
 pkgname=net-snmp
-pkgver=5.6.1
-pkgrel=4
+pkgver=5.7.1
+pkgrel=1
 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=('custom')
-depends=('openssl' 'libnl')
+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
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc}
 snmpd.confd snmpd.rc)
-md5sums=('b4e30ead5783b0bb1d280172c6095ea4'
- '37bc5db8707004fe284c202437c6aa7d'
- 'edab44a12f76045e41340d433a79dcec')
+sha1sums=('ddb82ce1112ef0642869d3c8d7c7e585f151849a'
+  '2bdc2839ce09d7daa608cd54687fa8beb47ed907'
+  'cf811da9e57bbca34d8e2a3c358bb3bfc0c2b33b'
+  '90600c0141eed10d6e3ca3ccc97ad8dda15c2112')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}

Deleted: libnl-2.patch
===
--- libnl-2.patch   2011-09-29 03:14:06 UTC (rev 139095)
+++ libnl-2.patch   2011-09-29 04:44:14 UTC (rev 139096)
@@ -1,67 +0,0 @@
-diff -Nur net-snmp-5.5.orig//agent/mibgroup/mibII/tcpTable.c 
net-snmp-5.5//agent/mibgroup/mibII/tcpTable.c
 net-snmp-5.5.orig//agent/mibgroup/mibII/tcpTable.c 2009-06-13 
04:02:02.0 +0200
-+++ net-snmp-5.5//agent/mibgroup/mibII/tcpTable.c  2011-01-15 
10:31:03.579735957 +0100
-@@ -555,8 +555,10 @@
- static int
- tcpTable_load_netlink()
- {
-+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));
-@@ -564,10 +566,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)));
-+  snmp_log(LOG_ERR, snmpd: Couldn't connect to netlink: %s\n, 
nl_geterror(err));
-+  nl_socket_free(nl);
-   return -1;
-   }
- 
-@@ -579,10 +581,10 @@
-   struct nl_msg *nm = nlmsg_alloc_simple(TCPDIAG_GETSOCK, 
NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST);
-   nlmsg_append(nm, req, sizeof(struct inet_diag_req), 0);
- 
--  if (nl_send_auto_complete(nl, nm)  0) {
--  DEBUGMSGTL((mibII/tcpTable, nl_send_autocomplete(): %s\n, 
nl_geterror()));
--  snmp_log(LOG_ERR, snmpd: nl_send_autocomplete(): %s\n, 
nl_geterror());
--  nl_handle_destroy(nl);
-+  if ((err = nl_send_auto_complete(nl, nm))  0) {
-+  DEBUGMSGTL((mibII/tcpTable, nl_send_autocomplete(): %s\n, 
nl_geterror(err)));
-+  snmp_log(LOG_ERR, snmpd: nl_send_autocomplete(): %s\n, 
nl_geterror(err));
-+  nl_socket_free(nl);
-   return -1;
-   }
-   nlmsg_free(nm);
-@@ -593,9 +595,9 @@
- 
-   while (running) {
-   if ((len = nl_recv(nl, peer, buf, NULL)) = 0) {
--  DEBUGMSGTL((mibII/tcpTable, nl_recv(): %s\n, 
nl_geterror()));
--  snmp_log(LOG_ERR, snmpd: nl_recv(): %s\n, 
nl_geterror());
--  nl_handle_destroy(nl);
-+  DEBUGMSGTL((mibII/tcpTable, nl_recv(): %s\n, 
nl_geterror(len)));
-+  snmp_log(LOG_ERR, snmpd: nl_recv(): %s\n, 
nl_geterror(len));
-+  nl_socket_free(nl);
-   return -1;
-   }
- 
-@@ -644,7 +646,7 @@
-   free(buf);
-   }
- 
--  

[arch-commits] Commit in net-snmp/trunk (PKGBUILD snmpd.confd snmpd.rc)

2011-08-21 Thread Eric Bélanger
Date: Sunday, August 21, 2011 @ 08:33:57
  Author: eric
Revision: 136007

upgpkg: net-snmp 5.6.1-4

Add config file to specify options to daemon (close FS#23095), Update 
setuptools makedepends to python2-distribute

Added:
  net-snmp/trunk/snmpd.confd
Modified:
  net-snmp/trunk/PKGBUILD
  net-snmp/trunk/snmpd.rc

-+
 PKGBUILD|   21 +++--
 snmpd.confd |5 +
 snmpd.rc|3 ++-
 3 files changed, 18 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-08-21 12:22:50 UTC (rev 136006)
+++ PKGBUILD2011-08-21 12:33:57 UTC (rev 136007)
@@ -1,30 +1,31 @@
 # $Id$
-# Maintainer: Eric Belanger e...@archlinux.org
+# Maintainer: 
 # Contributor: Dale Blount d...@archlinux.org
 
 pkgname=net-snmp
 pkgver=5.6.1
-pkgrel=3
+pkgrel=4
 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=('custom')
 depends=('openssl' 'libnl')
-makedepends=('setuptools')
+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')
 options=('!libtool' '!makeflags' '!emptydirs')
-source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz;
-'snmpd.rc')
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
+snmpd.confd snmpd.rc)
 md5sums=('b4e30ead5783b0bb1d280172c6095ea4'
- '9f0d13676ba1fae1eb7eb178edd85b43')
+ '37bc5db8707004fe284c202437c6aa7d'
+ 'edab44a12f76045e41340d433a79dcec')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
   sed -i -e s:\(install --basedir=\$\$dir\):\1 --root='${pkgdir}': 
Makefile.in
-  ./configure --prefix=/usr \
+  PYTHONPROG=/usr/bin/python2 ./configure --prefix=/usr \
 --sysconfdir=/etc \
 --mandir=/usr/share/man \
 --enable-ucd-snmp-compatibility \
@@ -35,14 +36,14 @@
 --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 \
-PYTHONPROG=/usr/bin/python2
-  make NETSNMP_DONT_CHECK_VERSION=1 LDFLAGS+=-Wl,-rpath 
-Wl,/usr/lib/perl5/core_perl/CORE
+--with-persistent-directory=/var/net-snmp
+  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
 }

Added: snmpd.confd
===
--- snmpd.confd (rev 0)
+++ snmpd.confd 2011-08-21 12:33:57 UTC (rev 136007)
@@ -0,0 +1,5 @@
+#
+# Parameters to be passed to snmpd
+#
+SNMPD_ARGS=
+

Modified: snmpd.rc
===
--- snmpd.rc2011-08-21 12:22:50 UTC (rev 136006)
+++ snmpd.rc2011-08-21 12:33:57 UTC (rev 136007)
@@ -2,12 +2,13 @@
 
 . /etc/rc.conf
 . /etc/rc.d/functions
+. /etc/conf.d/snmpd
 
 PID=`pidof -o %PPID /usr/sbin/snmpd`
 case $1 in
   start)
 stat_busy Starting Net-SNMP
-[ -z $PID ]  /usr/sbin/snmpd
+[ -z $PID ]  /usr/sbin/snmpd $SNMPD_ARGS
 if [ $? -gt 0 ]; then
   stat_fail
 else



[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2011-07-13 Thread Andrea Scarpino
Date: Wednesday, July 13, 2011 @ 04:13:14
  Author: andrea
Revision: 131650

upgpkg: net-snmp 5.6.1-3
tcp_wrapper rebuild

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |   27 ---
 1 file changed, 16 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-07-13 08:02:01 UTC (rev 131649)
+++ PKGBUILD2011-07-13 08:13:14 UTC (rev 131650)
@@ -4,31 +4,36 @@
 
 pkgname=net-snmp
 pkgver=5.6.1
-pkgrel=2
+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=('custom')
-depends=('openssl' 'tcp_wrappers' 'libnl')
+depends=('openssl' 'libnl')
 makedepends=('setuptools')
 optdepends=('perl-term-readkey: for snmpcheck application' 
 'perl-tk: for snmpcheck and tkmib applications'
-   'python2: for the python modules')
+'python2: for the python modules')
 provides=('ucd-snmp')
 options=('!libtool' '!makeflags' '!emptydirs')
-source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz;
-   'snmpd.rc')
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz;
+'snmpd.rc')
 md5sums=('b4e30ead5783b0bb1d280172c6095ea4'
  '9f0d13676ba1fae1eb7eb178edd85b43')
-sha1sums=('45bbf1295253d5379a5d1efd918593160387fd00' 
'2c679b564a2c319d9ce2714a9776aa0e6d89c60a')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
   sed -i -e s:\(install --basedir=\$\$dir\):\1 --root='${pkgdir}': 
Makefile.in
-  ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \
---enable-ucd-snmp-compatibility --enable-ipv6 --with-libwrap 
--with-python-modules \
---with-default-snmp-version=3 --with-sys-contact=root@localhost \
---with-sys-location=Unknown --with-logfile=/var/log/snmpd.log \
+  ./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 \
 PYTHONPROG=/usr/bin/python2
@@ -39,5 +44,5 @@
   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 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
+  install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
 }



[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2011-05-25 Thread Evangelos Foutras
Date: Wednesday, May 25, 2011 @ 15:13:43
  Author: foutrelis
Revision: 125239

upgpkg: net-snmp 5.6.1-2
Perl 5.14.0 rebuild.

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-05-25 19:13:40 UTC (rev 125238)
+++ PKGBUILD2011-05-25 19:13:43 UTC (rev 125239)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.6.1
-pkgrel=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/;
@@ -18,7 +18,8 @@
 options=('!libtool' '!makeflags' '!emptydirs')
 
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz;
'snmpd.rc')
-md5sums=('b4e30ead5783b0bb1d280172c6095ea4' '9f0d13676ba1fae1eb7eb178edd85b43')
+md5sums=('b4e30ead5783b0bb1d280172c6095ea4'
+ '9f0d13676ba1fae1eb7eb178edd85b43')
 sha1sums=('45bbf1295253d5379a5d1efd918593160387fd00' 
'2c679b564a2c319d9ce2714a9776aa0e6d89c60a')
 
 build() {



[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2011-03-04 Thread Eric Bélanger
Date: Friday, March 4, 2011 @ 22:33:40
  Author: eric
Revision: 112465

upgpkg: net-snmp 5.6.1-1
Upstream update, Updated optdepends, Enabled IPv6 support (close FS#22892)

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |   37 +++--
 1 file changed, 15 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-03-05 02:03:52 UTC (rev 112464)
+++ PKGBUILD2011-03-05 03:33:40 UTC (rev 112465)
@@ -3,47 +3,40 @@
 # Contributor: Dale Blount d...@archlinux.org
 
 pkgname=net-snmp
-pkgver=5.5
-pkgrel=8
+pkgver=5.6.1
+pkgrel=1
 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=('custom')
 depends=('openssl' 'tcp_wrappers' 'libnl')
 makedepends=('setuptools')
-optdepends=('perl-term-readkey: for snmpcheck application' 'perl-tk: for 
snmpcheck application')
+optdepends=('perl-term-readkey: for snmpcheck application' 
+'perl-tk: for snmpcheck and tkmib applications'
+   'python2: for the python modules')
 provides=('ucd-snmp')
 options=('!libtool' '!makeflags' '!emptydirs')
 
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz;
-   'snmpd.rc'
-   'libnl-2.patch')
-md5sums=('5b2551e7bd024fbbee84dca22a5f13a1'
- '9f0d13676ba1fae1eb7eb178edd85b43'
- '63682a7ad84d1f46291404c5d6bca4f7')
+   'snmpd.rc')
+md5sums=('b4e30ead5783b0bb1d280172c6095ea4' '9f0d13676ba1fae1eb7eb178edd85b43')
+sha1sums=('45bbf1295253d5379a5d1efd918593160387fd00' 
'2c679b564a2c319d9ce2714a9776aa0e6d89c60a')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
-  patch -p1 -i ${srcdir}/libnl-2.patch
-  for _manpages in snmp_api_errstring.3 snmp_close.3 snmp_error.3 
snmp_free_pdu.3 \
-  snmp_open.3 snmp_perror.3 snmp_read.3 snmp_select_info.3 snmp_send.3 \
-  snmp_sess_perror.3 snmp_timeout.3 ; do
-sed -i 's/snmp_api/session_api/' man/${_manpages} || return 1
-  done
-  sed -i 's/snmp_api/pdu_api /' man/snmp_free_pdu.3 || return 1
-  sed -i -e s:\(install --basedir=\$\$dir\):\1 --root='${pkgdir}': 
Makefile.in || return 1
-   ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \
---enable-ucd-snmp-compatibility --with-libwrap --with-python-modules \
+  sed -i -e s:\(install --basedir=\$\$dir\):\1 --root='${pkgdir}': 
Makefile.in
+  ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \
+--enable-ucd-snmp-compatibility --enable-ipv6 --with-libwrap 
--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 \
 PYTHONPROG=/usr/bin/python2
-  make NETSNMP_DONT_CHECK_VERSION=1 LDFLAGS+=-Wl,-rpath 
-Wl,/usr/lib/perl5/core_perl/CORE || return 1
+  make NETSNMP_DONT_CHECK_VERSION=1 LDFLAGS+=-Wl,-rpath 
-Wl,/usr/lib/perl5/core_perl/CORE
 }
 
 package() {
   cd ${srcdir}/${pkgname}-${pkgver}
-  make DESTDIR=${pkgdir} INSTALL_PREFIX=${pkgdir} INSTALLDIRS=vendor 
install || return 1
-  install -D -m755 ${srcdir}/snmpd.rc ${pkgdir}/etc/rc.d/snmpd || return 1
-  install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING 
|| return 1
+  make DESTDIR=${pkgdir} INSTALL_PREFIX=${pkgdir} INSTALLDIRS=vendor 
install
+  install -D -m755 ${srcdir}/snmpd.rc ${pkgdir}/etc/rc.d/snmpd
+  install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
 }



[arch-commits] Commit in net-snmp/trunk (PKGBUILD libnl-2.patch)

2011-01-16 Thread Thomas Bächler
Date: Sunday, January 16, 2011 @ 09:22:46
  Author: thomas
Revision: 106295

Rebuild for libnl 2

Added:
  net-snmp/trunk/libnl-2.patch
Modified:
  net-snmp/trunk/PKGBUILD

---+
 PKGBUILD  |9 +--
 libnl-2.patch |   67 
 2 files changed, 73 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-01-16 14:20:04 UTC (rev 106294)
+++ PKGBUILD2011-01-16 14:22:46 UTC (rev 106295)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.5
-pkgrel=7
+pkgrel=8
 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/;
@@ -15,12 +15,15 @@
 provides=('ucd-snmp')
 options=('!libtool' '!makeflags' '!emptydirs')
 
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz;
-   'snmpd.rc')
+   'snmpd.rc'
+   'libnl-2.patch')
 md5sums=('5b2551e7bd024fbbee84dca22a5f13a1'
- '9f0d13676ba1fae1eb7eb178edd85b43')
+ '9f0d13676ba1fae1eb7eb178edd85b43'
+ '63682a7ad84d1f46291404c5d6bca4f7')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
+  patch -p1 -i ${srcdir}/libnl-2.patch
   for _manpages in snmp_api_errstring.3 snmp_close.3 snmp_error.3 
snmp_free_pdu.3 \
   snmp_open.3 snmp_perror.3 snmp_read.3 snmp_select_info.3 snmp_send.3 \
   snmp_sess_perror.3 snmp_timeout.3 ; do

Added: libnl-2.patch
===
--- libnl-2.patch   (rev 0)
+++ libnl-2.patch   2011-01-16 14:22:46 UTC (rev 106295)
@@ -0,0 +1,67 @@
+diff -Nur net-snmp-5.5.orig//agent/mibgroup/mibII/tcpTable.c 
net-snmp-5.5//agent/mibgroup/mibII/tcpTable.c
+--- net-snmp-5.5.orig//agent/mibgroup/mibII/tcpTable.c 2009-06-13 
04:02:02.0 +0200
 net-snmp-5.5//agent/mibgroup/mibII/tcpTable.c  2011-01-15 
10:31:03.579735957 +0100
+@@ -555,8 +555,10 @@
+ static int
+ tcpTable_load_netlink()
+ {
++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));
+@@ -564,10 +566,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)));
++  snmp_log(LOG_ERR, snmpd: Couldn't connect to netlink: %s\n, 
nl_geterror(err));
++  nl_socket_free(nl);
+   return -1;
+   }
+ 
+@@ -579,10 +581,10 @@
+   struct nl_msg *nm = nlmsg_alloc_simple(TCPDIAG_GETSOCK, 
NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST);
+   nlmsg_append(nm, req, sizeof(struct inet_diag_req), 0);
+ 
+-  if (nl_send_auto_complete(nl, nm)  0) {
+-  DEBUGMSGTL((mibII/tcpTable, nl_send_autocomplete(): %s\n, 
nl_geterror()));
+-  snmp_log(LOG_ERR, snmpd: nl_send_autocomplete(): %s\n, 
nl_geterror());
+-  nl_handle_destroy(nl);
++  if ((err = nl_send_auto_complete(nl, nm))  0) {
++  DEBUGMSGTL((mibII/tcpTable, nl_send_autocomplete(): %s\n, 
nl_geterror(err)));
++  snmp_log(LOG_ERR, snmpd: nl_send_autocomplete(): %s\n, 
nl_geterror(err));
++  nl_socket_free(nl);
+   return -1;
+   }
+   nlmsg_free(nm);
+@@ -593,9 +595,9 @@
+ 
+   while (running) {
+   if ((len = nl_recv(nl, peer, buf, NULL)) = 0) {
+-  DEBUGMSGTL((mibII/tcpTable, nl_recv(): %s\n, 
nl_geterror()));
+-  snmp_log(LOG_ERR, snmpd: nl_recv(): %s\n, 
nl_geterror());
+-  nl_handle_destroy(nl);
++  DEBUGMSGTL((mibII/tcpTable, nl_recv(): %s\n, 
nl_geterror(len)));
++  snmp_log(LOG_ERR, snmpd: nl_recv(): %s\n, 
nl_geterror(len));
++  nl_socket_free(nl);
+   return -1;
+   }
+ 
+@@ -644,7 +646,7 @@
+   free(buf);
+   }
+ 
+-  nl_handle_destroy(nl);
++  nl_socket_free(nl);
+ 
+   if (tcp_head) {
+   DEBUGMSGTL((mibII/tcpTable, Loaded TCP Table using 
netlink\n));



[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2011-01-05 Thread Angel Velásquez
Date: Wednesday, January 5, 2011 @ 13:44:07
  Author: angvp
Revision: 104986

upgpkg: net-snmp 5.5-7
Rebuild against perl 5.12.2

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-01-05 18:33:59 UTC (rev 104985)
+++ PKGBUILD2011-01-05 18:44:07 UTC (rev 104986)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.5
-pkgrel=6
+pkgrel=7
 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/;



[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2010-09-04 Thread Rémy Oudompheng
Date: Saturday, September 4, 2010 @ 02:38:51
  Author: remy
Revision: 89806

upgpkg: net-snmp 5.5-6
Rebuild for python2.

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-09-04 06:14:29 UTC (rev 89805)
+++ PKGBUILD2010-09-04 06:38:51 UTC (rev 89806)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.5
-pkgrel=5
+pkgrel=6
 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/;
@@ -33,7 +33,8 @@
 --with-default-snmp-version=3 --with-sys-contact=r...@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 || return 1
+--with-persistent-directory=/var/net-snmp \
+PYTHONPROG=/usr/bin/python2
   make NETSNMP_DONT_CHECK_VERSION=1 LDFLAGS+=-Wl,-rpath 
-Wl,/usr/lib/perl5/core_perl/CORE || return 1
 }
 



[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2010-05-20 Thread Pierre Schmitz
Date: Thursday, May 20, 2010 @ 17:29:16
  Author: pierre
Revision: 80723

upgpkg: net-snmp 5.5-5
disable broken ipv6 support again

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-05-20 21:14:44 UTC (rev 80722)
+++ PKGBUILD2010-05-20 21:29:16 UTC (rev 80723)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.5
-pkgrel=4
+pkgrel=5
 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/;
@@ -33,7 +33,7 @@
 --with-default-snmp-version=3 --with-sys-contact=r...@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 --enable-ipv6|| return 1
+--with-persistent-directory=/var/net-snmp || return 1
   make NETSNMP_DONT_CHECK_VERSION=1 LDFLAGS+=-Wl,-rpath 
-Wl,/usr/lib/perl5/core_perl/CORE || return 1
 }
 



[arch-commits] Commit in net-snmp/trunk (PKGBUILD)

2010-04-01 Thread Pierre Schmitz
Date: Thursday, April 1, 2010 @ 02:52:47
  Author: pierre
Revision: 75278

upgpkg: net-snmp 5.5-3
openssl/heimdal rebuild

Modified:
  net-snmp/trunk/PKGBUILD

--+
 PKGBUILD |6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-04-01 06:39:34 UTC (rev 75277)
+++ PKGBUILD2010-04-01 06:52:47 UTC (rev 75278)
@@ -4,7 +4,7 @@
 
 pkgname=net-snmp
 pkgver=5.5
-pkgrel=2
+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/;
@@ -35,6 +35,10 @@
 --with-mib-modules=host misc/ipfwacc ucd-snmp/diskio tunnel 
ucd-snmp/dlmod \
 --with-persistent-directory=/var/net-snmp || return 1
   make NETSNMP_DONT_CHECK_VERSION=1 LDFLAGS+=-Wl,-rpath 
-Wl,/usr/lib/perl5/core_perl/CORE || return 1
+}
+
+package() {
+  cd ${srcdir}/${pkgname}-${pkgver}
   make DESTDIR=${pkgdir} INSTALL_PREFIX=${pkgdir} INSTALLDIRS=vendor 
install || return 1
   install -D -m755 ${srcdir}/snmpd.rc ${pkgdir}/etc/rc.d/snmpd || return 1
   install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING 
|| return 1