Moved lsof to /usr/bin, it's not sysadmin only utility
- resolves #1260300
This commit is contained in:
parent
4265063cb7
commit
7c7dbdede5
10
lsof-man-page-section.patch
Normal file
10
lsof-man-page-section.patch
Normal file
@ -0,0 +1,10 @@
|
||||
diff -upr lsof_4.89-rh.orig/lsof.8 lsof_4.89-rh/lsof.8
|
||||
--- lsof_4.89-rh.orig/lsof.8 2015-11-30 13:09:37.785075681 +0100
|
||||
+++ lsof_4.89-rh/lsof.8 2015-11-30 13:10:11.663029129 +0100
|
||||
@@ -1,5 +1,5 @@
|
||||
.ds VN 4.89
|
||||
-.TH LSOF 8 Revision-\*(VN
|
||||
+.TH LSOF 1 Revision-\*(VN
|
||||
\" Register )P is used neither by this file nor any groff macro. However,
|
||||
\" some versions of nroff require it.
|
||||
.if !\n(.g \{\
|
20
lsof.spec
20
lsof.spec
@ -1,7 +1,7 @@
|
||||
Summary: A utility which lists open files on a Linux/UNIX system
|
||||
Name: lsof
|
||||
Version: 4.89
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
# Sendmail .. lib/snpf.c
|
||||
# LGPLv2+ .. lib/regex.c, regex.h
|
||||
License: zlib and Sendmail and LGPLv2+
|
||||
@ -18,6 +18,9 @@ URL: http://people.freebsd.org/~abe/
|
||||
Source0: %{lsofrh}.tar.xz
|
||||
Source1: upstream2downstream.sh
|
||||
|
||||
# BZ#1260300 - move lsof man page to section 1
|
||||
Patch0: lsof-man-page-section.patch
|
||||
|
||||
BuildRequires: libselinux-devel
|
||||
|
||||
%description
|
||||
@ -26,23 +29,28 @@ about files that are open by the processes running on a UNIX system.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{lsofrh}
|
||||
%patch0 -p1 -b .man-page-section
|
||||
|
||||
%build
|
||||
./Configure -n linux
|
||||
make DEBUG="$RPM_OPT_FLAGS" %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
|
||||
install -p -m 0755 lsof ${RPM_BUILD_ROOT}%{_sbindir}
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
|
||||
install -p -m 0644 lsof.8 ${RPM_BUILD_ROOT}%{_mandir}/man8
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
|
||||
install -p -m 0755 lsof ${RPM_BUILD_ROOT}%{_bindir}
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
|
||||
install -p -m 0644 lsof.8 ${RPM_BUILD_ROOT}%{_mandir}/man1/lsof.1
|
||||
|
||||
%files
|
||||
%doc 00* README* RELEASE*
|
||||
%{_sbindir}/lsof
|
||||
%{_bindir}/lsof
|
||||
%{_mandir}/man*/*
|
||||
|
||||
%changelog
|
||||
* Mon Nov 30 2015 Peter Schiffer <pschiffe@redhat.com> - 4.89-2
|
||||
- resolves #1260300
|
||||
moved lsof to /usr/bin, it's not sysadmin only utility
|
||||
|
||||
* Wed Jul 29 2015 Peter Schiffer <pschiffe@redhat.com> - 4.89-1
|
||||
- updated to 4.89
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user