Bump to lsof 4.91 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_unified tizen tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/7.0/unified/20221110.063010 accepted/tizen/7.0/unified/hotfix/20221116.111114 accepted/tizen/8.0/unified/20231005.095203 accepted/tizen/unified/20220104.123223 submit/tizen/20220103.021450 tizen_7.0_m2_release tizen_8.0_m2_release
authorJinWang An <jinwang.an@samsung.com>
Tue, 28 Dec 2021 02:09:54 +0000 (11:09 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 3 Jan 2022 02:14:08 +0000 (11:14 +0900)
Change-Id: I399caeaeba7c806adc81aed75bed45998d203c98
Signed-off-by: JinWang An <jinwang.an@samsung.com>
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/lsof.manifest [new file with mode: 0644]
packaging/lsof.spec [new file with mode: 0644]

diff --git a/packaging/lsof.manifest b/packaging/lsof.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/lsof.spec b/packaging/lsof.spec
new file mode 100644 (file)
index 0000000..e35b13e
--- /dev/null
@@ -0,0 +1,37 @@
+Name:           lsof
+Version:        4.91
+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
+Source1001:    lsof.manifest
+
+%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
+cp %{SOURCE1001} .
+
+%build
+LSOF_VSTR=2.6.16 LINUX_BASE=/proc ./Configure -n linux
+
+make DEBUG="%{optflags} -fPIC" CFGL="-pie " %{?_smp_mflags}
+
+%install
+install -Dm755 lsof %{buildroot}%{_sbindir}/lsof
+install -Dm644 lsof.8 %{buildroot}%{_mandir}/man8/lsof.8
+
+
+%docs_package
+
+%files
+%manifest %{name}.manifest
+%{_sbindir}/lsof