+# Description: list open files
+# URL: http://people.freebsd.org/~abe/
+# Packager: sten, nick dot steeves at shaw dot ca
+# Maintainer: Antti Nykanen, aon at iki dot fi
+# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
+
+name=lsof
+version=4.83
+release=1
+source=(ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/lsof_$version.tar.bz2 \
+ lsof-net.patch)
+
+build() {
+ cd lsof_${version}
+ tar -xf lsof_${version}_src.tar
+ cd lsof_${version}_src
+ yes "" | ./Configure linux
+ patch -p0 -i $SRC/lsof-net.patch
+ make CC="$CC" CFLAGS="$CFLAGS"
+ install -D -m 755 lsof $PKG/usr/sbin/lsof
+ install -D -m 644 lsof.8 $PKG/usr/man/man8/lsof.8
+}