summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/lsof/PKGBUILD28
1 files changed, 18 insertions, 10 deletions
diff --git a/abs/core/lsof/PKGBUILD b/abs/core/lsof/PKGBUILD
index 89c737b..2c7f384 100644
--- a/abs/core/lsof/PKGBUILD
+++ b/abs/core/lsof/PKGBUILD
@@ -1,10 +1,12 @@
-# $Id: PKGBUILD 94246 2010-10-05 21:44:43Z dgriffiths $
+# $Id: PKGBUILD 157359 2012-04-27 22:32:41Z tomegun $
+# Maintainer: Tom Gundersen <teg@jklm.no>
+# Contributor: Angel Velasquez <angvp@archlinux.org>
+# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor: Aaron Griffin <aaron@archlinux.org>
# Contributor: Jochem Kossen <j.kossen@home.nl>
-# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=lsof
-pkgver=4.84
+pkgver=4.86
pkgrel=1
pkgdesc="Lists open files for running Unix processes"
arch=('i686' 'x86_64')
@@ -12,25 +14,31 @@ url="http://people.freebsd.org/~abe/"
license=('custom')
depends=('glibc')
source=(ftp://sunsite.ualberta.ca/pub/Mirror/lsof/${pkgname}_${pkgver}.tar.bz2 license.txt)
-md5sums=('a09326df500ef7e4550af546868338d6'
- '1b63c76bd10437cabf890508c8e58d36')
build() {
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
+ make
}
package() {
cd ${srcdir}/${pkgname}_${pkgver}/${pkgname}_${pkgver}_src
- 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
+ FILES=("00CREDITS" "00DCACHE" "00DIALECTS" "00DIST" "00FAQ" "00LSOF-L" "00MANIFEST" "00PORTING" "00QUICKSTART" "00README" "00.README.FIRST" "00TEST" "00XCONFIG")
+ for file in "${FILES[@]}"
+ do
+ install -D -m0644 -o root -g root $file \
+ $pkgdir/usr/share/doc/$pkgname/$file
+ done
+
+ install -Dm0755 -o root -g root lsof ${pkgdir}/usr/sbin/lsof
+ install -Dm0644 -o root -g root lsof.8 ${pkgdir}/usr/share/man/man8/lsof.8
install -D -m0644 -o root -g root ${srcdir}/license.txt \
- ${pkgdir}/usr/share/licenses/lsof/LICENSE || return 1
+ ${pkgdir}/usr/share/licenses/lsof/LICENSE
}
+md5sums=('9f1cda41f35add068c7b81f873fa56b5'
+ '1b63c76bd10437cabf890508c8e58d36')