Add packaging accepted/tizen/20130503.230150 accepted/tizen/20130520.100146 accepted/trunk/20130209.021540 submit/tizen/20130503.225440 submit/tizen/20130509.181945 submit/tizen/20130517.023316 submit/trunk/20130208.234134
authorPatrick McCarty <patrick.mccarty@linux.intel.com>
Fri, 8 Feb 2013 21:32:52 +0000 (13:32 -0800)
committerPatrick McCarty <patrick.mccarty@linux.intel.com>
Fri, 8 Feb 2013 23:40:00 +0000 (15:40 -0800)
packaging/lsof.changes [new file with mode: 0644]
packaging/lsof.spec [new file with mode: 0644]

diff --git a/packaging/lsof.changes b/packaging/lsof.changes
new file mode 100644 (file)
index 0000000..18c763d
--- /dev/null
@@ -0,0 +1,4 @@
+* Fri Feb 08 2013 Patrick McCarty <patrick.mccarty@linux.intel.com> upstream/4.87@e3ed030
+- Add packaging
+- Add the upstream2downstream.sh script
+- Imported Upstream version 4.87
diff --git a/packaging/lsof.spec b/packaging/lsof.spec
new file mode 100644 (file)
index 0000000..2707419
--- /dev/null
@@ -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