From f957d534bb56a3c9edf7fe2e987c655abe33c8fe Mon Sep 17 00:00:00 2001
From: Michael Hanson <hansonorders@verizon.net>
Date: Tue, 30 Nov 2010 01:49:13 +0000
Subject: lsof: upgrade

---
 abs/core/lsof/PKGBUILD | 44 +++++++++++++++++++++++++-------------------
 1 file changed, 25 insertions(+), 19 deletions(-)

diff --git a/abs/core/lsof/PKGBUILD b/abs/core/lsof/PKGBUILD
index 1fdedc0..89c737b 100644
--- a/abs/core/lsof/PKGBUILD
+++ b/abs/core/lsof/PKGBUILD
@@ -1,30 +1,36 @@
-# $Id: PKGBUILD 2105 2008-05-25 02:46:46Z eric $
-# Maintainer: Aaron Griffin <aaron@archlinux.org>
+# $Id: PKGBUILD 94246 2010-10-05 21:44:43Z dgriffiths $
+# Contributor: Aaron Griffin <aaron@archlinux.org>
 # Contributor: Jochem Kossen <j.kossen@home.nl>
+# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
 
 pkgname=lsof
-pkgver=4.80
+pkgver=4.84
 pkgrel=1
-pkgdesc="lsof (LiSt Open Files) lists information about files that are open by the running processes"
-arch=(i686 x86_64)
-license=(custom)
-depends=('glibc')
+pkgdesc="Lists open files for running Unix processes"
+arch=('i686' 'x86_64')
 url="http://people.freebsd.org/~abe/"
-#source=(ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/${pkgname}_${pkgver}.tar.bz2 license.txt)
+license=('custom')
+depends=('glibc')
 source=(ftp://sunsite.ualberta.ca/pub/Mirror/lsof/${pkgname}_${pkgver}.tar.bz2 license.txt)
-md5sums=('18d124d063619eeee147a8d638e2b8fd' '1b63c76bd10437cabf890508c8e58d36')
+md5sums=('a09326df500ef7e4550af546868338d6'
+         '1b63c76bd10437cabf890508c8e58d36')
 
 build() {
-   cd $startdir/src/${pkgname}_${pkgver}
-   tar xf ${pkgname}_${pkgver}_src.tar
-   cd ${pkgname}_${pkgver}_src
-   sed "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" -i dialects/linux/machine.h
+	cd ${srcdir}/${pkgname}_${pkgver}
+	tar xf ${pkgname}_${pkgver}_src.tar
+	cd ${pkgname}_${pkgver}_src
+	sed -i 's|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|' dialects/linux/machine.h
+
+	./Configure -n linux
+	make || return 1
+}
+
+package() {
+	cd ${srcdir}/${pkgname}_${pkgver}/${pkgname}_${pkgver}_src
 
-   ./Configure -n linux
-   make || return 1
-   install -D -m0755 -o root -g root lsof $startdir/pkg/usr/sbin/lsof
-   install -D -m0644 -o root -g root lsof.8 $startdir/pkg/usr/share/man/man8/lsof.8
+	install -Dm0755 -o root -g root lsof ${pkgdir}/usr/sbin/lsof || return 1
+	install -Dm0644 -o root -g root lsof.8 ${pkgdir}/usr/share/man/man8/lsof.8 || return 1
    
-   install -D -m0644 -o root -g root $startdir/src/license.txt \
-        $startdir/pkg/usr/share/licenses/lsof/license.txt
+	install -D -m0644 -o root -g root ${srcdir}/license.txt \
+	     ${pkgdir}/usr/share/licenses/lsof/LICENSE || return 1
 }
-- 
cgit v0.12

