--- /dev/null
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man8/
+-rw-r--r-- root/root usr/man/man8/lsof.8.gz
+drwxr-xr-x root/root usr/sbin/
+-rwxr-xr-x root/root usr/sbin/lsof
--- /dev/null
+# 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
+}
--- /dev/null
+--- dsock.c.orig 2009-10-20 10:49:12.000000000 +0000
++++ dsock.c 2009-10-20 10:51:01.000000000 +0000
+@@ -38,6 +38,22 @@
+
+ #include "lsof.h"
+
++enum
++{
++ TCP_ESTABLISHED = 1,
++ TCP_SYN_SENT,
++ TCP_SYN_RECV,
++ TCP_FIN_WAIT1,
++ TCP_FIN_WAIT2,
++ TCP_TIME_WAIT,
++ TCP_CLOSE,
++ TCP_CLOSE_WAIT,
++ TCP_LAST_ACK,
++ TCP_LISTEN,
++ TCP_CLOSING /* now a valid state */
++};
++
++
+
+ /*
+ * Local definitions