[arch-commits] CVS update of arch/build/network/net-snmp (PKGBUILD)

Eric Belanger eric at archlinux.org
Mon Sep 10 04:49:37 UTC 2007


    Date: Monday, September 10, 2007 @ 00:49:37
  Author: eric
    Path: /home/cvs-arch/arch/build/network/net-snmp

Modified: PKGBUILD (1.3 -> 1.4)

upgpkg: net-snmp 5.4.1-1
added license, fixed installation of perl modules


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


Index: arch/build/network/net-snmp/PKGBUILD
diff -u arch/build/network/net-snmp/PKGBUILD:1.3 arch/build/network/net-snmp/PKGBUILD:1.4
--- arch/build/network/net-snmp/PKGBUILD:1.3	Fri Jun  1 00:22:59 2007
+++ arch/build/network/net-snmp/PKGBUILD	Mon Sep 10 00:49:37 2007
@@ -1,27 +1,35 @@
-# $Id: PKGBUILD,v 1.3 2007/06/01 04:22:59 eric Exp $
+# $Id: PKGBUILD,v 1.4 2007/09/10 04:49:37 eric Exp $
 # Maintainer: Dale Blount <dale at archlinux.org>
 
 pkgname=net-snmp
-pkgver=5.4
+pkgver=5.4.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')
 provides=('ucd-snmp')
-options=('!libtool')
-source=(http://heanet.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz\
+options=('!libtool' '!makeflags' '!emptydirs')
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz \
 	snmpd.rc)
-md5sums=('46d893281056ff476e597659cb91574d' '7b31f2f3b363a78c7659ece209c0ebf8')
+md5sums=('6c974df7a5a5b1579f72115e6b045bda' '7b31f2f3b363a78c7659ece209c0ebf8')
 
 build() {
-  export MAKEFLAGS="-j1"
   cd $startdir/src/$pkgname-$pkgver
+  eval `perl -V:archname`
   ./configure --prefix=/usr --sysconfdir=/etc --enable-ucd-snmp-compatibility \
 	--with-default-snmp-version="3" --with-sys-contact="root at localhost" \
 	--with-sys-location="Unknown" --with-logfile="/var/log/snmpd.log" \
 	--with-persistent-directory="/var/net-snmp" 
-  make || return 1
-  make INSTALL_PREFIX=$startdir/pkg install
+  make INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
+       INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
+       INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname} || return 1
+  make DESTDIR=$startdir/pkg INSTALL_PREFIX=$startdir/pkg install
   install -D -m755 $startdir/src/snmpd.rc $startdir/pkg/etc/rc.d/snmpd || return 1
+  install -D -m644 COPYING $startdir/pkg/usr/share/licenses/$pkgname/COPYING
+
+  # remove perllocal.pod and .packlist
+  find ${startdir}/pkg -name perllocal.pod -delete
+  find ${startdir}/pkg -name .packlist -delete
 }




More information about the arch-commits mailing list