summaryrefslogtreecommitdiffstats
path: root/abs/extra/net-snmp/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-03-03 20:33:06 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-03-03 20:33:06 (GMT)
commit2dde30d5adda7c72f54e7d61dedd7b330c01fa66 (patch)
tree08fbf9f44567c5382a82b356adbb8d47e7310a34 /abs/extra/net-snmp/PKGBUILD
parentfd8405efa6e0c17c9e666f5ea8584039f31a5168 (diff)
downloadlinhes_pkgbuild-2dde30d5adda7c72f54e7d61dedd7b330c01fa66.zip
linhes_pkgbuild-2dde30d5adda7c72f54e7d61dedd7b330c01fa66.tar.gz
linhes_pkgbuild-2dde30d5adda7c72f54e7d61dedd7b330c01fa66.tar.bz2
net-snmp: update to 5.7.3
Diffstat (limited to 'abs/extra/net-snmp/PKGBUILD')
-rw-r--r--abs/extra/net-snmp/PKGBUILD39
1 files changed, 24 insertions, 15 deletions
diff --git a/abs/extra/net-snmp/PKGBUILD b/abs/extra/net-snmp/PKGBUILD
index 4e003ed..a17ce4d 100644
--- a/abs/extra/net-snmp/PKGBUILD
+++ b/abs/extra/net-snmp/PKGBUILD
@@ -1,12 +1,12 @@
-# $Id: PKGBUILD 198340 2013-10-30 14:16:21Z allan $
-# Maintainer:
+# $Id$
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Dale Blount <dale@archlinux.org>
pkgname=net-snmp
-pkgver=5.7.2
-pkgrel=8
+pkgver=5.7.3
+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')
+arch=('x86_64')
url="http://www.net-snmp.org/"
license=('BSD')
depends=('openssl' 'libnl' 'pciutils')
@@ -15,19 +15,21 @@ 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 libnl32.patch)
-sha1sums=('c493027907f32400648244d81117a126aecd27ee'
- 'SKIP'
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
+ snmpd.service snmptrapd.service net-snmp-5.7.3-perl-5.24.patch fix-openssl-build-errors.patch)
+sha1sums=('97dc25077257680815de44e34128d365c76bd839'
'84e32c54d32e6b608747054e04a3ddfe6d6638cc'
'0244e91c7baa0abebfb5c0560e8ce04c966c5992'
- '74a9848b95f63378eb1753fc309d2b74de5afb0f')
+ '31beef2cb5ad9b4ac655f8ced53058ebf6e99ca9'
+ 'b329ff700a3e20cdfcab4643a573ef976f9182c0')
+validpgpkeys=('8AAA779B597B405BBC329B6376CF47B8A77C5329'
+ '27CAA4A32E371383A33ED0587D5F9576E0F81533') # Net-SNMP Administrators
prepare() {
cd ${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
+ patch -p1 -i ../net-snmp-5.7.3-perl-5.24.patch
+ patch -p1 -i ../fix-openssl-build-errors.patch
+ autoreconf -i
}
build() {
@@ -43,8 +45,7 @@ build() {
--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
}
@@ -55,4 +56,12 @@ package() {
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;
}