CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
lsof: Initial import (verified compilation).
authorVictor Martinez <pitillo@ono.com>
Sat, 23 Jan 2010 14:05:48 +0000 (14:05 +0000)
committerVictor Martinez <pitillo@ono.com>
Sat, 23 Jan 2010 14:05:48 +0000 (14:05 +0000)
lsof/.footprint [new file with mode: 0644]
lsof/.md5sum [new file with mode: 0644]
lsof/Pkgfile [new file with mode: 0644]
lsof/lsof-net.patch [new file with mode: 0644]

diff --git a/lsof/.footprint b/lsof/.footprint
new file mode 100644 (file)
index 0000000..8d387b8
--- /dev/null
@@ -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 (file)
index 0000000..3547a92
--- /dev/null
@@ -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 (file)
index 0000000..73b1cdd
--- /dev/null
@@ -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 (file)
index 0000000..1120be3
--- /dev/null
@@ -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