summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/lsof/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/lsof/PKGBUILD')
-rw-r--r--abs/core-testing/lsof/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/abs/core-testing/lsof/PKGBUILD b/abs/core-testing/lsof/PKGBUILD
new file mode 100644
index 0000000..1fdedc0
--- /dev/null
+++ b/abs/core-testing/lsof/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 2105 2008-05-25 02:46:46Z eric $
+# Maintainer: Aaron Griffin <aaron@archlinux.org>
+# Contributor: Jochem Kossen <j.kossen@home.nl>
+
+pkgname=lsof
+pkgver=4.80
+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')
+url="http://people.freebsd.org/~abe/"
+#source=(ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/${pkgname}_${pkgver}.tar.bz2 license.txt)
+source=(ftp://sunsite.ualberta.ca/pub/Mirror/lsof/${pkgname}_${pkgver}.tar.bz2 license.txt)
+md5sums=('18d124d063619eeee147a8d638e2b8fd' '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
+
+ ./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 -D -m0644 -o root -g root $startdir/src/license.txt \
+ $startdir/pkg/usr/share/licenses/lsof/license.txt
+}