From: Victor Martinez Date: Sat, 23 Jan 2010 14:05:48 +0000 (+0000) Subject: lsof: Initial import (verified compilation). X-Git-Url: http://gitweb/?a=commitdiff_plain;h=5722ed3816cf48e14a930139b6038bc113c3cafd;p=attic%2Fports%2Fopt-cross.git lsof: Initial import (verified compilation). --- diff --git a/lsof/.footprint b/lsof/.footprint new file mode 100644 index 0000000..8d387b8 --- /dev/null +++ b/lsof/.footprint @@ -0,0 +1,6 @@ +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 diff --git a/lsof/.md5sum b/lsof/.md5sum new file mode 100644 index 0000000..3547a92 --- /dev/null +++ b/lsof/.md5sum @@ -0,0 +1,2 @@ +a2dd8d051bcd332f9a611667f7349988 lsof-net.patch +8f731a6251b8c0143d585df0d5ca779e lsof_4.83.tar.bz2 diff --git a/lsof/Pkgfile b/lsof/Pkgfile new file mode 100644 index 0000000..73b1cdd --- /dev/null +++ b/lsof/Pkgfile @@ -0,0 +1,22 @@ +# 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 +} diff --git a/lsof/lsof-net.patch b/lsof/lsof-net.patch new file mode 100644 index 0000000..1120be3 --- /dev/null +++ b/lsof/lsof-net.patch @@ -0,0 +1,25 @@ +--- 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