2024-01-06 06:30:26 +01:00
|
|
|
Name: lsof
|
2024-01-06 06:30:27 +01:00
|
|
|
Version: 4.96.5
|
2024-01-06 06:30:26 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Lists open files for running UNIX processes
|
|
|
|
Group: System/Tools
|
2024-01-06 06:30:25 +01:00
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 06:30:26 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://people.freebsd.org/~abe/
|
|
|
|
Source: https://github.com/lsof-org/lsof.git/%{version}/lsof-%{version}.tar.bz2
|
|
|
|
Patch: %{name}-4.77-linux.patch
|
|
|
|
License: no OSI Approved
|
2024-01-06 06:30:26 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: libtirpc-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 06:30:25 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Lsof is a Unix-specific diagnostic tool.
|
|
|
|
Its name stands for LiSt Open Files, and it does just that.
|
|
|
|
It lists information about any files that are open by processes currently running on the system.
|
|
|
|
It can also list communications open by each process.
|
|
|
|
|
2024-01-06 06:30:26 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 06:30:25 +01:00
|
|
|
%prep
|
2024-01-06 06:30:26 +01:00
|
|
|
%setup -q
|
2024-01-06 06:30:26 +01:00
|
|
|
#cd %{name}_%{version}_src/dialects/linux
|
2024-01-06 06:30:25 +01:00
|
|
|
#% patch -p2
|
|
|
|
|
|
|
|
%build
|
|
|
|
chmod 644 dialects/linux/machine.h &&
|
|
|
|
echo "
|
|
|
|
#undef HASSECURITY
|
|
|
|
#undef HASNOSOCKSECURITY
|
|
|
|
#define HASSECURITY 1
|
|
|
|
#define HASNOSOCKSECURITY 1
|
|
|
|
#undef WARNINGSTATE
|
|
|
|
#undef HASDCACHE
|
|
|
|
#undef HASENVDC
|
|
|
|
#undef HASPERSDC
|
|
|
|
#undef HASPERSDCPATH
|
|
|
|
#undef HASSYSDC
|
|
|
|
#undef HASKERNIDCK" >> dialects/linux/machine.h
|
|
|
|
|
|
|
|
LSOF_VSTR="2.6.22" \
|
|
|
|
LINUX_BASE=/proc \
|
|
|
|
./Configure -n linux
|
|
|
|
|
|
|
|
make DEBUG="" CDEF="%{optflags}" CFGL="-L./lib -llsof -lselinux -ltirpc"
|
|
|
|
#make -C tests test opt
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
install -D -m755 %{name} %{buildroot}%{_bindir}/%{name}
|
2024-01-06 06:30:26 +01:00
|
|
|
#install -D -m644 %{name}.8 %{buildroot}%{_mandir}/man8/%{name}.8
|
2024-01-06 06:30:25 +01:00
|
|
|
|
|
|
|
rm -fr %{name}_docs
|
|
|
|
install -d %{name}_docs
|
|
|
|
for f in 00{CREDITS,DIST,FAQ,LSOF-L,PORTING,QUICKSTART,README,TEST,XCONFIG}; do
|
|
|
|
install $f %{name}_docs/${f/00/}
|
|
|
|
done
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/%{name}
|
2024-01-06 06:30:26 +01:00
|
|
|
#%{_mandir}/man8/%{name}.*
|
2024-01-06 06:30:26 +01:00
|
|
|
%doc %{name}_docs/*
|
2024-01-06 06:30:25 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 06:30:27 +01:00
|
|
|
* Tue Dec 27 2022 Automatic Build System <autodist@mambasoft.it> 4.96.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:30:26 +01:00
|
|
|
* Thu Oct 20 2022 Automatic Build System <autodist@mambasoft.it> 4.96.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:30:26 +01:00
|
|
|
* Mon Sep 19 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.96.3-1mamba
|
|
|
|
- update to 4.96.3
|
|
|
|
|
2024-01-06 06:30:26 +01:00
|
|
|
* Thu Apr 28 2022 Automatic Build System <autodist@mambasoft.it> 4.95.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:30:26 +01:00
|
|
|
* Thu Nov 19 2020 Automatic Build System <autodist@mambasoft.it> 4.94.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:30:26 +01:00
|
|
|
* Thu Mar 26 2020 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 4.93.2-1mamba
|
|
|
|
- update to 4.93.2
|
|
|
|
|
2024-01-06 06:30:26 +01:00
|
|
|
* Thu Apr 05 2018 Automatic Build System <autodist@mambasoft.it> 4.91-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:30:26 +01:00
|
|
|
* Wed Mar 21 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 4.90-1mamba
|
|
|
|
- update to 4.90
|
|
|
|
|
2024-01-06 06:30:25 +01:00
|
|
|
* Sat Jul 18 2015 Automatic Build System <autodist@mambasoft.it> 4.89-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:30:25 +01:00
|
|
|
* Mon Oct 27 2014 Automatic Build System <autodist@mambasoft.it> 4.88-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 06:30:25 +01:00
|
|
|
* Mon Jan 14 2013 Automatic Build System <autodist@mambasoft.it> 4.87-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Jun 15 2012 Automatic Build System <autodist@mambasoft.it> 4.86-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Oct 03 2011 Automatic Build System <autodist@mambasoft.it> 4.85-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Jul 31 2010 Automatic Build System <autodist@mambasoft.it> 4.84-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Jan 23 2010 Automatic Build System <autodist@mambasoft.it> 4.83-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Apr 08 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.82-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Nov 02 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.81-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Nov 13 2007 Aleph0 <aleph0@openmamba.org> 4.77-2mamba
|
|
|
|
- force LINUX_BASE environment
|
|
|
|
|
|
|
|
* Wed Jun 28 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 4.77-1qilnx
|
|
|
|
- update to version 4.77 by autospec
|
|
|
|
|
|
|
|
* Wed May 11 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.74-1qilnx
|
|
|
|
- package created by autospec
|