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

Eric Bélanger eric at archlinux.org
Thu Oct 22 05:26:42 UTC 2009


    Date: Thursday, October 22, 2009 @ 01:26:42
  Author: eric
Revision: 56503

upgpkg: net-snmp 5.4.2.1-2
    Added python bindings (close FS#15614), Added setuptools makedepends

Modified:
  net-snmp/trunk/ChangeLog
  net-snmp/trunk/PKGBUILD

-----------+
 ChangeLog |    8 +++++++-
 PKGBUILD  |   22 +++++++++-------------
 2 files changed, 16 insertions(+), 14 deletions(-)

Modified: ChangeLog
===================================================================
--- ChangeLog	2009-10-22 04:55:10 UTC (rev 56502)
+++ ChangeLog	2009-10-22 05:26:42 UTC (rev 56503)
@@ -1,3 +1,9 @@
+2009-10-21  Eric Belanger  <eric at archlinux.org>
+
+	* net-snmp 5.4.2.1-2
+	* Added python bindings (close FS#15614)
+	* Added setuptools makedepends
+
 2008-11-01  Eric Belanger  <eric at archlinux.org>
 
 	* net-snmp 5.4.2.1-1
@@ -18,7 +24,7 @@
 	* net-snmp 5.4.1.1-1
 	* Upstream update (Security update)
 	* Added perl-term-readkey and perl-tk optional dependencies for snmpcheck
-	
+
 2008-04-14  Eric Belanger  <eric at archlinux.org>
 
 	* net-snmp 5.4.1-4

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-10-22 04:55:10 UTC (rev 56502)
+++ PKGBUILD	2009-10-22 05:26:42 UTC (rev 56503)
@@ -4,12 +4,13 @@
 
 pkgname=net-snmp
 pkgver=5.4.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/"
 license=('custom')
 depends=('openssl' 'tcp_wrappers')
+makedepends=('setuptools')
 optdepends=('perl-term-readkey: for snmpcheck application' 'perl-tk: for snmpcheck application')
 provides=('ucd-snmp')
 options=('!libtool' '!makeflags' '!emptydirs')
@@ -19,21 +20,16 @@
 sha1sums=('4f2df9ea62344fe840f493d0e08abe5de3697862' '2c679b564a2c319d9ce2714a9776aa0e6d89c60a')
 
 build() {
-  cd ${srcdir}/${pkgname}-${pkgver}
- 
-  ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \
-    --enable-ucd-snmp-compatibility --with-libwrap \
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  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 \
     --with-default-snmp-version="3" --with-sys-contact="root at 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
-
   make NETSNMP_DONT_CHECK_VERSION=1 || return 1
-  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
-
-  # remove perllocal.pod and .packlist
-  find ${pkgdir} -name perllocal.pod -delete
-  find ${pkgdir} -name .packlist -delete
+  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
 }




More information about the arch-commits mailing list