# $Id: PKGBUILD 38454 2009-05-08 09:24:31Z douglas $ # Maintainer: Aaron Griffin # Contributor: Jochem Kossen pkgname=lsof pkgver=4.82 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) 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 } md5sums=('5518a0c16fc937523b3d1a946cf59e5b' '1b63c76bd10437cabf890508c8e58d36')