summaryrefslogtreecommitdiff
path: root/packaging/lsof.spec
diff options
context:
space:
mode:
authorPatrick McCarty <patrick.mccarty@linux.intel.com>2013-02-08 13:32:52 -0800
committerPatrick McCarty <patrick.mccarty@linux.intel.com>2013-02-08 15:40:00 -0800
commitd8c460bdf367bb3ee1a9013c05fe7a7b14aa54a3 (patch)
tree9d655dae90c64be0447c3496bd9245d468fe003b /packaging/lsof.spec
parent6cddf1212275558e9a7c021c91e5b71c1a56d70b (diff)
downloadlsof-d8c460bdf367bb3ee1a9013c05fe7a7b14aa54a3.tar.gz
lsof-d8c460bdf367bb3ee1a9013c05fe7a7b14aa54a3.tar.bz2
lsof-d8c460bdf367bb3ee1a9013c05fe7a7b14aa54a3.zip
Diffstat (limited to 'packaging/lsof.spec')
-rw-r--r--packaging/lsof.spec34
1 files changed, 34 insertions, 0 deletions
diff --git a/packaging/lsof.spec b/packaging/lsof.spec
new file mode 100644
index 0000000..2707419
--- /dev/null
+++ b/packaging/lsof.spec
@@ -0,0 +1,34 @@
+Name: lsof
+Version: 4.87
+Release: 0
+License: Zlib
+Summary: A utility which lists open files on a Linux/UNIX system
+URL: http://people.freebsd.org/~abe/
+Group: Base/Tools
+# lsof contains licensed code that we cannot ship. Therefore we use
+# upstream2downstream.sh script to remove the code before shipping it.
+Source0: %{name}_%{version}-linux-only.tar.xz
+Source1: upstream2downstream.sh
+
+%description
+Lsof stands for LiSt Open Files, and it does just that: it lists
+information about files that are open by the processes running on a
+UNIX system.
+
+%prep
+%setup -q -n %{name}_%{version}-linux-only
+
+%build
+LSOF_VSTR=2.6.16 LINUX_BASE=/proc ./Configure -n linux
+
+make DEBUG="%{optflags}" %{?_smp_mflags}
+
+%install
+install -Dm755 lsof %{buildroot}%{_sbindir}/lsof
+install -Dm644 lsof.8 %{buildroot}%{_mandir}/man8/lsof.8
+
+
+%docs_package
+
+%files
+%{_sbindir}/lsof