Summary: Utilities for managing processes on your system Name: psmisc Version: 22.20 Release: 17%{?dist} License: GPLv2+ Group: Applications/System URL: http://sourceforge.net/projects/psmisc Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz #The following has been reworked by upstream in a different way ... we'll see #Patch1: psmisc-22.13-fuser-silent.patch # Patch sent upstream 2012-10-08. Patch2: psmisc-22.20-fix-selinux-in-pstree.patch Patch3: psmisc-22.20-RH-man-page-scan.patch Patch4: pstree-introduce-support-for-namespaces.patch Patch5: pstree-introduce-namespace-transition-information.patch Patch6: psmisc-22.20-null-ptr-dereference.patch Patch7: psmisc-22.20-insufficient-path-len-in-mntinfo.patch Patch8: psmisc-22.20-prtstat-man-duplicate-options.patch Patch9: psmisc-22.20-fuser-finds-btrfs-procs.patch Patch10: psmisc-22.20-fuser-manpage-other-pids-restrict.patch Patch11: psmisc-22.20-peekfd-usage-extend-and-fix.patch Patch12: psmisc-22-20-no-nullptr-sanity-stalls-nfs.patch Patch13: psmisc-22.20-pstree-consecutive-NULs.patch BuildRequires: libselinux-devel BuildRequires: gettext BuildRequires: ncurses-devel BuildRequires: autoconf automake %description The psmisc package contains utilities for managing processes on your system: pstree, killall and fuser. The pstree command displays a tree structure of all of the running processes on your system. The killall command sends a specified signal (SIGTERM if nothing is specified) to processes identified by name. The fuser command identifies the PIDs of processes that are using specified files or filesystems. %prep %setup -q %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %build %configure --prefix=%{_prefix} --enable-selinux make %{?_smp_mflags} %install make install DESTDIR="$RPM_BUILD_ROOT" mkdir -p $RPM_BUILD_ROOT%{_sbindir} mv $RPM_BUILD_ROOT%{_bindir}/fuser $RPM_BUILD_ROOT%{_sbindir} %find_lang %name %files -f %{name}.lang %{_sbindir}/fuser %{_bindir}/killall %{_bindir}/pstree %{_bindir}/pstree.x11 %{_bindir}/prtstat %{_mandir}/man1/fuser.1* %{_mandir}/man1/killall.1* %{_mandir}/man1/pstree.1* %{_mandir}/man1/prtstat.1* %ifarch %{ix86} x86_64 ppc %{power64} %{arm} mipsel %{_bindir}/peekfd %{_mandir}/man1/peekfd.1* %else %exclude %{_mandir}/man1/peekfd.1* %endif %doc AUTHORS ChangeLog COPYING README %changelog * Tue May 12 2020 Jan Rybar 22.20-17 - pstree - fixed consecutive NULs breaking tree - Resolves: rhbz#1715510 * Mon Mar 18 2019 Jan Rybar 22.20-16 - Added nullptr sanity to scan fns to avoid useless work stalling NFS - Resolves: rhbz#1509245 * Wed Mar 29 2017 Jan Rybar 22.20-15 - peekfd: manpage and usage screen correction - long options - Resolves: rhbz#1413632 * Mon Mar 20 2017 Jan Rybar 22.20-14 - peekfd: manpage now not present on unsupported architectures - Resolves: rhbz#1363651 * Tue Mar 14 2017 Jan Rybar 22.20-13 - fuser manpage: note about invisible other PIDs moved to RESTRICTIONS section - Resolves: rhbz#1400126 * Tue Jan 31 2017 Jan Rybar 22.20-12 - fuser: processes binding btrfs directories can be found now - Resolves: rhbz#1340056 * Tue May 24 2016 Jan Rybar 22.20-11 - Fixing duplication of text in prtstat man page - Resolves: rhbz#1265243 * Mon May 16 2016 Jan Rybar 22.20-10 - Fixing segfault caused by insufficient length for mounting point path - Resolves: rhbz#1078887 * Sat Aug 2 2014 Peter Robinson 22.20-9 - Update ppc64 to power64 macro - Resolves: rhbz#1125653 * Fri Jan 24 2014 Daniel Mach - 22.20-8 - Mass rebuild 2014-01-24 * Fri Dec 27 2013 Daniel Mach - 22.20-7 - Mass rebuild 2013-12-27 * Mon Oct 21 2013 Jaromir Capik - 22.20-6 - Fixing null pointer dereference introduced with namespaces - Fixing bogus dates in the changelog - Related: rhbz#980514 * Fri Oct 18 2013 Jaromir Capik - 22.20-5 - Moving fuser from /sbin to /usr/sbin - Related: rhbz#980514 * Tue Sep 17 2013 Aristeu Rozanski - 22.20-4 - Introducing namespaces support (#980514) * Tue Jul 30 2013 Jaromir Capik - 22.20-3 - RH man page scan (#948524) * Thu Feb 14 2013 Fedora Release Engineering - 22.20-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Oct 08 2012 Richard W.M. Jones 22.20-1 - Update to 22.20. Contains a fix for: http://sourceforge.net/p/psmisc/bugs/53/ - Fix src/pstree.c when SELinux is available. * Sat Jul 21 2012 Fedora Release Engineering - 22.19-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jun 28 2012 Jaromir Capik 22.19-1 - Update to 22.19 (#828244) * Mon Mar 12 2012 Jaromir Capik 22.16-1 - Update to 22.16 * Fri Jan 27 2012 Jaromir Capik 22.15-1 - Update to 22.15 * Sat Jan 14 2012 Fedora Release Engineering - 22.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Jul 19 2011 Jaromir Capik 22.14-1 - Update to 22.14 * Wed Feb 09 2011 Fedora Release Engineering - 22.13-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Jan 27 2011 Jan Görig 22.13-7 - fix #671135 - peekfd utility doesn't work on ppc64 architecture * Fri Jan 7 2011 Jan Görig 22.13-6 - fix #666213 - uninitialized memory leading to `killall -g name` failure * Tue Nov 16 2010 Jan Görig 22.13-5 - fix #651794 - incorrect exit code of fuser -m -s * Tue Oct 19 2010 Dan Horák 22.13-4 - peekfd still exists only on selected architectures * Thu Oct 14 2010 Jan Görig 22.13-3 - fix #642800 - peekfd regression * Wed Sep 29 2010 jkeating - 22.13-2 - Rebuilt for gcc bug 634757 * Thu Sep 16 2010 Jan Görig 22.13-1 - updated to new upstream version - removed unused patch - peekfd should work on all architectures now - spec cleanups * Tue May 25 2010 Jan Görig 22.10-1 - update to new upstream version - remove unused patches - docs are now in package * Tue May 18 2010 Daniel Novotny 22.6-14 - fix #588322 - fuser'ing a non-existent file yields two error messages * Wed Aug 05 2009 Lubomir Rintel - 22.6-13 - Fix a buffer overflow * Sun Jul 26 2009 Fedora Release Engineering - 22.6-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon May 11 2009 Daniel Novotny 22.6-11 - merge review (#226322): a few .spec changes * Thu Apr 23 2009 Daniel Novotny - 22.6-10 - fix #497303 - fuser -m doesn't work after lazy unmount * Thu Feb 26 2009 Fedora Release Engineering - 22.6-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Aug 29 2008 Tom "spot" Callaway 22.6-8 - fix package so it builds again * Fri Aug 29 2008 Tom "spot" Callaway 22.6-7 - fix license tag * Mon Apr 14 2008 Tomas Smetana 22.6-6 - fix #441871 - pstree fails to show most processes; patch by Emil Jerabek * Mon Apr 07 2008 Tomas Smetana 22.6-5 - fix configure.ac to include all the required headers for peekfd - remove kernel-headers again -- not needed in rawhide * Mon Apr 07 2008 Tomas Smetana 22.6-4 - fix #440762 - add kernel-headers to build reuqirements * Tue Feb 12 2008 Tomas Smetana 22.6-3 - rebuild (gcc-4.3) * Mon Dec 10 2007 Tomas Smetana 22.6-2 - fix #417801 - exclude peekfd on secondary architectures * Mon Dec 03 2007 Tomas Smetana 22.6-1 - update to new upstream version * Wed Aug 29 2007 Tomas Smetana 22.5-2 - rebuild (because of BuildID) * Thu Jun 07 2007 Tomas Smetana 22.5-1.2 - exclude peekfd manpage on non-x86 archs * Thu Jun 07 2007 Tomas Smetana 22.5-1.1 - rebuild * Wed Jun 06 2007 Tomas Smetana 22.5-1 - update to new upstream version * Thu Mar 1 2007 Karel Zak 22.3-2 - fix #214214 - killall misbehavior (prelink, etc) * Thu Mar 1 2007 Karel Zak 22.3-1 - update to upstream 22.3 - backport ipv6 bugfix from upstream CVS - clean up spec file * Wed Jul 19 2006 Karel Zak - 22.2-5 - spec file cleanup & rebuild * Mon Jul 17 2006 Jesse Keating - 22.2-4 - rebuild * Wed May 17 2006 Karel Zak 22.2-2 - add BuildRequires: gettext-devel - sync with upstream * Wed Mar 22 2006 Karel Zak 22.1.03072006cvs-1.1 - rebuild * Tue Mar 7 2006 Karel Zak 22.1.03072006cvs-1 - update to new upstream CVS version - enable new fuser version - fix fuser return code - fix #183897 - "pstree -a" call results in segmentation fault * Fri Feb 10 2006 Jesse Keating - 21.8-1.2.1 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 21.8-1.2 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Dec 09 2005 Jesse Keating - rebuilt * Wed Nov 30 2005 Karel Zak 21.8-1 - fix #174585 - killall crashes on long variable name - spec file cleanup * Wed Oct 5 2005 Karel Zak 21.7-1.cvs20051005 - sync with upstream CVS - use old version of fuser * Thu Sep 8 2005 Karel Zak 21.6-1 - sync with upstream release 21.6 - cleanup selinux patch - fix #165167 - buffer overflow detected in fuser * Sat Mar 5 2005 Karel Zak 21.5-4 - fixed problem with perl expression in the build .spec section * Sat Mar 5 2005 Karel Zak 21.5-3 - rebuilt * Tue Dec 14 2004 Karel Zak 21.5-2 - use other way for psmisc-21.5-term.patch * Mon Dec 13 2004 Karel Zak 21.5-1 - Updated to new upstream version 21.5 - Ported SELinux patch forward as psmisc-21.5-selinux.patch - Added psmisc-21.5-term.patch that fix termcap.h and term.h conflicts * Fri Sep 24 2004 Mike A. Harris 21.4-4 - Added "BuildRequires: libselinux-devel" for WITH_SELINUX builds (#123754) * Tue Jun 15 2004 Elliot Lee 21.4-3 - rebuilt * Mon Mar 15 2004 Mike A. Harris 21.4-2 - Re-enabled SELINUX support - Removed gcc33 patch, no longer needed it seems. * Mon Mar 15 2004 Mike A. Harris 21.4-1 - Updated to new upstream version 21.4 - Ported SELinux patch forward as psmisc-21.4-redhat-selinux-psmisc.patch, but disabled SELINUX support temporarily until other build problems are resolved - Remove MKINSTALLDIRS-./mkinstalldirs from "make install" as that causes the build to fail when "./" changes. If this option is ever added back, make it relative to $RPM_BUILD_DIR instead of ./ so that things do not break - Added pstree.x11 to file list after rpm reported it present in buildroot but not packaged * Fri Feb 13 2004 Elliot Lee 21.3-8 - rebuilt * Mon Jan 26 2004 Dan Walsh 21.3-7 - fix is_selinux_enabled call * Fri Sep 5 2003 Dan Walsh 21.3-6.sel - turn on selinux - Hack to fix build problem on Fedora core * Fri Sep 5 2003 Dan Walsh 21.3-6 - turn off selinux * Thu Aug 28 2003 Dan Walsh 21.3-5.sel - change flags to -Z and build for selinux * Mon Jul 28 2003 Dan Walsh 21.3-4 - Remove -lsecure check from configure. * Mon Jul 28 2003 Dan Walsh 21.3-2 - Added SELinux patches * Wed Jun 04 2003 Elliot Lee - rebuilt * Thu May 29 2003 Mike A. Harris 21.3-1.RHEL.0 - Bump to 21.3-1.RHEL.0 and rebuild for Red Hat Enterprise Linux * Thu May 29 2003 Mike A. Harris 21.3-1 - Updated to new upstream version 21.3 - Removed dead script gensig.sh - Disabled psmisc-21.2-gcc33.patch as it is included in 21.3 * Thu May 22 2003 Jeremy Katz 21.2-5 - fix build with gcc 3.3 * Wed Jan 22 2003 Tim Powers - rebuilt * Wed Nov 13 2002 Mike A. Harris 21.2-3 - Remove pidof manpage from buildroot by adding with_pidof conditional - _bindir cleanup * Wed Nov 13 2002 Mike A. Harris 21.2-2 - Updated to new upstream version 21.2 - Updated Source: URL to sourceforge's current ftp area - Fixes fuser largefile bug (#66340) - Disable prep time sh %%{SOURCE1} >src/signames.h as the 21.2 release fixes this already now. * Tue Oct 8 2002 Mike A. Harris 20.2-7 - All-arch rebuild - Updated spec file with _bindir et al. fixes. * Fri Jun 21 2002 Tim Powers 20.2-6 - automated rebuild * Sun May 26 2002 Tim Powers 20.2-5 - automated rebuild * Thu May 16 2002 Bernhard Rosenkraenzer 20.2-4 - Autogenerate the signal list from _includedir/bits/signum.h to make sure it works on all arches and doesn't break again. * Wed May 8 2002 Trond Eivind Glomsrod 20.2-3 - Fix the signal list - Don't strip when linking - Use a %%{_tmppath} * Wed Jan 09 2002 Tim Powers - automated rebuild * Tue Nov 20 2001 Bernhard Rosenkraenzer 20.2-1 - 20.2 - Add patch from bug report #56186; the problem is not reproducable, but the patch can't hurt. * Sat Jul 21 2001 Bernhard Rosenkraenzer 20.1-2 - Add BuildRequires (#49562) - s/Copyright/License/ - Fix license (it's actually dual-licensed BSD/GPL, not just "distributable") * Wed Apr 25 2001 Bernhard Rosenkraenzer 20.1-1 - 20.1 * Wed Jul 12 2000 Prospector - automatic rebuild * Sun Jun 18 2000 Matt Wilson - FHS man paths - patch makefile to enable non-root builds * Sat Feb 5 2000 Bernhard Rosenkraenzer - Deal with compressed man pages * Sun Nov 21 1999 Bernhard Rosenkraenzer - update to v19 - handle RPM_OPT_FLAGS * Mon Sep 27 1999 Bill Nottingham - move fuser to /sbin * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 2) * Sat Mar 13 1999 Michael Maher - updated package * Fri May 01 1998 Prospector System - translations modified for de, fr, tr * Thu Apr 30 1998 Cristian Gafton - renamed the patch file .patch instead of .spec * Thu Apr 09 1998 Erik Troan - updated to psmisc version 17 - buildrooted * Thu Oct 23 1997 Donnie Barnes - updated from version 11 to version 16 - spec file cleanups * Tue Jun 17 1997 Erik Troan - built against glibc