summaryrefslogtreecommitdiffstats
path: root/abs/core/lsof/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/lsof/PKGBUILD')
-rw-r--r--abs/core/lsof/PKGBUILD49
1 files changed, 27 insertions, 22 deletions
diff --git a/abs/core/lsof/PKGBUILD b/abs/core/lsof/PKGBUILD
index 4cfc24f..7d25f4c 100644
--- a/abs/core/lsof/PKGBUILD
+++ b/abs/core/lsof/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 187064 2013-06-03 11:16:43Z allan $
+# $Id$
# Maintainer: Tom Gundersen <teg@jklm.no>
# Contributor: Angel Velasquez <angvp@archlinux.org>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
@@ -6,39 +6,44 @@
# Contributor: Jochem Kossen <j.kossen@home.nl>
pkgname=lsof
-pkgver=4.87
-pkgrel=2
+pkgver=4.89
+pkgrel=1
pkgdesc="Lists open files for running Unix processes"
arch=('i686' 'x86_64')
url="http://people.freebsd.org/~abe/"
license=('custom')
depends=('glibc')
-source=(ftp://sunsite.ualberta.ca/pub/Mirror/lsof/${pkgname}_${pkgver}.tar.bz2 license.txt)
+source=(ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/lsof_$pkgver.tar.bz2
+ license.txt)
+sha1sums=('ea8fb2588c9732f1b22d73ffab17dd055590df2c'
+ 'db6b6d90ce895e4053f91ad25c7761fbf9a37dd6')
+#validpgpkeys=(9AFD62A840BD3D55) It is PGP-2 key
-build() {
- cd ${srcdir}/${pkgname}_${pkgver}
- tar xf ${pkgname}_${pkgver}_src.tar
- cd ${pkgname}_${pkgver}_src
+prepare() {
+ cd lsof_$pkgver
+ tar xf lsof_${pkgver}_src.tar
+ cd lsof_${pkgver}_src
sed -i 's|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|' dialects/linux/machine.h
+}
+
+build() {
+ cd lsof_$pkgver/lsof_${pkgver}_src
./Configure -n linux
make
}
-package() {
- cd ${srcdir}/${pkgname}_${pkgver}/${pkgname}_${pkgver}_src
+check() {
+ cd lsof_$pkgver/lsof_${pkgver}_src/tests
+ sed 's/END=0/exit 0/' -i CkTestDB
+ make all
+}
- 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
+package() {
+ cd lsof_$pkgver/lsof_${pkgver}_src
- install -Dm0755 -o root -g root lsof ${pkgdir}/usr/bin/lsof
- install -Dm0644 -o root -g root lsof.8 ${pkgdir}/usr/share/man/man8/lsof.8
+ install -Dm0755 lsof "$pkgdir"/usr/bin/lsof
+ install -Dm0644 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
+ install -D -m0644 "$srcdir"/license.txt \
+ "$pkgdir"/usr/share/licenses/lsof/LICENSE
}
-md5sums=('80e2a76d0e05826db910ec88e631296c'
- '1b63c76bd10437cabf890508c8e58d36')