2006-12-19 00:17:33 +01:00
|
|
|
#
|
2007-12-19 22:14:01 +01:00
|
|
|
# spec file for package psmisc (Version 22.6)
|
2006-12-19 00:17:33 +01:00
|
|
|
#
|
2008-05-22 04:14:34 +02:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:33 +01:00
|
|
|
#
|
2008-08-08 02:14:10 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:17:33 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-05-22 04:14:34 +02:00
|
|
|
|
2006-12-19 00:17:33 +01:00
|
|
|
Name: psmisc
|
2007-04-26 18:58:12 +02:00
|
|
|
BuildRequires: gcc-c++ glibc-devel ncurses-devel
|
2008-08-22 20:17:12 +02:00
|
|
|
BuildRequires: libselinux-devel
|
2007-10-05 00:38:28 +02:00
|
|
|
Url: http://switch.dl.sourceforge.net/sourceforge/psmisc/
|
|
|
|
License: GPL v2 or later
|
2006-12-19 00:17:33 +01:00
|
|
|
Group: System/Monitoring
|
|
|
|
PreReq: %fillup_prereq %insserv_prereq
|
2007-10-05 00:38:28 +02:00
|
|
|
AutoReqProv: on
|
2007-12-19 22:14:01 +01:00
|
|
|
Version: 22.6
|
2008-09-01 15:32:59 +02:00
|
|
|
Release: 52
|
2006-12-19 00:17:33 +01:00
|
|
|
Provides: ps:/usr/bin/killall
|
|
|
|
Summary: Utilities for managing processes on your system
|
|
|
|
Source: http://switch.dl.sourceforge.net/sourceforge/psmisc/psmisc-%{version}.tar.bz2
|
2007-04-26 15:51:55 +02:00
|
|
|
Patch0: %name-%version.dif
|
2007-12-19 22:14:01 +01:00
|
|
|
Patch1: %name-22.5-pstree.patch
|
|
|
|
Patch2: %name-22.6-nfs4fuser.patch
|
2008-05-22 04:14:34 +02:00
|
|
|
Patch3: %name-22.6-netunix.patch
|
2008-08-08 02:14:10 +02:00
|
|
|
Patch4: %name-22.6-writeonly.patch
|
2008-09-01 15:32:59 +02:00
|
|
|
Patch5: %name-22.6-fdleak.patch
|
2006-12-19 00:17:33 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-12-19 22:14:01 +01:00
|
|
|
%define nopeek s390 s390x ia64
|
2006-12-19 00:17:33 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Werner Almesberger
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2007-04-26 15:51:55 +02:00
|
|
|
%patch1 -p0 -b .pstree
|
|
|
|
%patch2 -p0 -b .nfs4fuser
|
2008-05-22 04:14:34 +02:00
|
|
|
%patch3 -p0 -b .netunix
|
2008-08-08 02:14:10 +02:00
|
|
|
%patch4 -p0 -b .wrtonly
|
2008-09-01 15:32:59 +02:00
|
|
|
%patch5 -p0 -b .fdleak
|
2007-04-26 15:51:55 +02:00
|
|
|
%patch0 -p0
|
2006-12-19 00:17:33 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
CFLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 ${RPM_OPT_FLAGS} -pipe"
|
2007-04-26 15:51:55 +02:00
|
|
|
CXXFLAGS="$CFLAGS"
|
2006-12-19 00:17:33 +01:00
|
|
|
CC=gcc
|
2007-04-26 15:51:55 +02:00
|
|
|
CXX=g++
|
|
|
|
export CFLAGS CXXFLAGS CC CXX
|
2008-08-22 20:17:12 +02:00
|
|
|
sh ./configure --prefix=%{_prefix} --mandir=%{_mandir} --enable-selinux
|
2007-04-26 15:51:55 +02:00
|
|
|
make CFLAGS="$CFLAGS" "CC=$CC"
|
2006-12-19 00:17:33 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/bin/
|
|
|
|
mv $RPM_BUILD_ROOT/usr/bin/fuser $RPM_BUILD_ROOT/bin/
|
2007-04-26 18:58:12 +02:00
|
|
|
%ifarch %nopeek
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/peekfd.1*
|
|
|
|
%endif
|
2006-12-19 00:17:33 +01:00
|
|
|
%find_lang psmisc
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f psmisc.lang
|
|
|
|
%defattr (-,root,root,755)
|
|
|
|
/bin/fuser
|
|
|
|
%{_bindir}/oldfuser
|
|
|
|
%{_bindir}/killall
|
2007-04-26 18:58:12 +02:00
|
|
|
%ifnarch %nopeek
|
2007-04-26 15:51:55 +02:00
|
|
|
%{_bindir}/peekfd
|
2007-04-26 18:58:12 +02:00
|
|
|
%endif
|
2006-12-19 00:17:33 +01:00
|
|
|
%{_bindir}/pstree
|
|
|
|
%{_bindir}/pstree.x11
|
|
|
|
%{_mandir}/man1/fuser.1*
|
|
|
|
%{_mandir}/man1/killall.1*
|
2007-04-26 18:58:12 +02:00
|
|
|
%ifnarch %nopeek
|
2007-04-26 15:51:55 +02:00
|
|
|
%{_mandir}/man1/peekfd.1*
|
2007-04-26 18:58:12 +02:00
|
|
|
%endif
|
2006-12-19 00:17:33 +01:00
|
|
|
%{_mandir}/man1/pstree.1*
|
2007-12-19 22:14:01 +01:00
|
|
|
|
2007-03-29 18:26:08 +02:00
|
|
|
%changelog
|
2008-09-01 15:32:59 +02:00
|
|
|
* Mon Sep 01 2008 werner@suse.de
|
|
|
|
- Do not leak on /proc/net/unix (bnc#417841)
|
|
|
|
- Read /proc/net/unix and /proc/mounts only once
|
2008-08-22 20:17:12 +02:00
|
|
|
* Fri Aug 22 2008 prusnak@suse.cz
|
|
|
|
- enabled SELinux support [Fate#303662]
|
2008-08-08 02:14:10 +02:00
|
|
|
* Thu Aug 07 2008 werner@suse.de
|
|
|
|
- Refine NFS patch
|
|
|
|
- Add option -w for killing only procs with write access
|
2008-05-22 04:14:34 +02:00
|
|
|
* Fri May 16 2008 werner@suse.de
|
|
|
|
- Add a warning about fusers option -m due NFS locks
|
|
|
|
- Strip @ symbol from file names read from /proc/net/unix
|
|
|
|
* Wed Dec 19 2007 werner@suse.de
|
2007-12-19 22:14:01 +01:00
|
|
|
- Enhance NFS patch for fuser (bug #346776)
|
2008-05-22 04:14:34 +02:00
|
|
|
* Fri Dec 14 2007 werner@suse.de
|
2007-12-19 22:14:01 +01:00
|
|
|
- Update to psmisc-22.6
|
|
|
|
* killall.1 mentions you can use -SIGxxx as well as just -XXX for
|
|
|
|
signal Debian #431082
|
|
|
|
* Added support for PPC architecture for peekfd
|
|
|
|
* Updated the Chinese simplified po file
|
|
|
|
* Added support for x86_64 architecture for peekfd
|
|
|
|
* Added Chinese simplified po file
|
|
|
|
* Updated Dutch, Vietnamese, Polish and Italian translations
|
|
|
|
* Patch for peekfd from Benno Schulenberg
|
|
|
|
* Fixed up NLS for fuser, patch from Benno Schulenberg
|
|
|
|
* killall asks for Signal (procname) if not SIGTERM
|
2008-05-22 04:14:34 +02:00
|
|
|
* Fri Oct 05 2007 bg@suse.de
|
2007-10-05 00:38:28 +02:00
|
|
|
- Disable peekfd on hppa
|
2008-05-22 04:14:34 +02:00
|
|
|
* Thu Apr 26 2007 werner@suse.de
|
2007-04-26 18:58:12 +02:00
|
|
|
- Args, peekfd is ix86 specific, disable on other architectures
|
2008-05-22 04:14:34 +02:00
|
|
|
* Thu Apr 26 2007 werner@suse.de
|
2007-04-26 15:51:55 +02:00
|
|
|
- Update to psmisc-22.5
|
|
|
|
* fuser tcp works on 64bit
|
|
|
|
* Added new tool peekfd
|
|
|
|
* killall uses /proc/<pid>/exe if inode comparision fails
|
|
|
|
* fuser correctly parses remote tcp ports
|
|
|
|
- Patched fuser to avoid to be locked on stalled NFS (bug #166912)
|
2008-05-22 04:14:34 +02:00
|
|
|
* Thu Mar 29 2007 rguenther@suse.de
|
2007-03-29 18:26:08 +02:00
|
|
|
- Add ncurses-devel BuildRequires
|
2008-05-22 04:14:34 +02:00
|
|
|
* Fri Sep 15 2006 werner@suse.de
|
2006-12-19 00:17:33 +01:00
|
|
|
- Update to psmisc version 22.3 which includes the previous fixes
|
2008-05-22 04:14:34 +02:00
|
|
|
* Wed Feb 08 2006 max@suse.de
|
2006-12-19 00:17:33 +01:00
|
|
|
- Fix exit code of fuser in silent mode [#148563].
|
2008-05-22 04:14:34 +02:00
|
|
|
* Fri Jan 27 2006 mmj@suse.de
|
2006-12-19 00:17:33 +01:00
|
|
|
- Fix finding AF_UNIX sockets [#142342]
|
|
|
|
- Fix minor nits with net_*
|
2008-05-22 04:14:34 +02:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2006-12-19 00:17:33 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-05-22 04:14:34 +02:00
|
|
|
* Thu Jan 12 2006 mmj@suse.de
|
2006-12-19 00:17:33 +01:00
|
|
|
- Update to psmisc-22.1 including:
|
|
|
|
* Updated PO files
|
|
|
|
* fuser signals eg -INT work better
|
|
|
|
* removed space out of fuser man page for -signal
|
|
|
|
* fuser -s flag works
|
|
|
|
* fix grep lines in Makefile for i386 arches
|
2008-05-22 04:14:34 +02:00
|
|
|
* Fri Dec 16 2005 mmj@suse.de
|
2006-12-19 00:17:33 +01:00
|
|
|
- update to psmisc-21.9 including:
|
|
|
|
* Fixed install-exec-hook so only symlink pstree.x11 if file does
|
|
|
|
not exist already.
|
|
|
|
* buffer overflow in killall scanf removed
|
|
|
|
* Fixed segfault in pstree -a
|
|
|
|
* fuser can not use IPv6, for things like uClibc
|
|
|
|
* configure has --disable-ipv6 for above
|
|
|
|
* fuser finds unix sockets
|
|
|
|
* fixed print_matches to only print unmatched objects if -a is
|
|
|
|
specified and to output the header for -v
|
|
|
|
* fixed argument parsing to handle groups like -av again
|
2008-05-22 04:14:34 +02:00
|
|
|
* Fri Dec 09 2005 ro@suse.de
|
2006-12-19 00:17:33 +01:00
|
|
|
- disable selinux
|
2008-05-22 04:14:34 +02:00
|
|
|
* Tue Nov 08 2005 mmj@suse.de
|
2006-12-19 00:17:33 +01:00
|
|
|
- add patch to fix print_matches and commandline arguments parsing
|
2008-05-22 04:14:34 +02:00
|
|
|
* Sun Nov 06 2005 mmj@suse.de
|
2006-12-19 00:17:33 +01:00
|
|
|
- fuser returns 1 if no match found like before [#132180]
|
2008-05-22 04:14:34 +02:00
|
|
|
* Tue Nov 01 2005 mmj@suse.de
|
2006-12-19 00:17:33 +01:00
|
|
|
- Update to psmisc-21.7
|
2008-05-22 04:14:34 +02:00
|
|
|
* Mon Aug 08 2005 meissner@suse.de
|
2006-12-19 00:17:33 +01:00
|
|
|
- fixed buffer overflow in -k failure case with pids >= 10000
|
2008-05-22 04:14:34 +02:00
|
|
|
* Mon Aug 16 2004 garloff@suse.de
|
2006-12-19 00:17:33 +01:00
|
|
|
- Update to psmisc-21.5:
|
|
|
|
* bugs fixed: UTF-8 line truncation (SF#757164), ss_family
|
|
|
|
(SF#845292), docu (fuser, ...)
|
|
|
|
* POSIX compat: -m option, ignore -f, fuser output, case
|
|
|
|
insensitive options for -I.
|
|
|
|
* Cleanups: dev_t and ino_t usage, automake update
|
|
|
|
* pstree -A(SCII) flag
|
|
|
|
- Rediff patches.
|
2008-05-22 04:14:34 +02:00
|
|
|
* Tue Jul 20 2004 schwab@suse.de
|
2006-12-19 00:17:33 +01:00
|
|
|
- Use autoreconf.
|
2008-05-22 04:14:34 +02:00
|
|
|
* Sun Apr 04 2004 kukuk@suse.de
|
2006-12-19 00:17:33 +01:00
|
|
|
- Add split alias [Bug #38279]
|
2008-05-22 04:14:34 +02:00
|
|
|
* Sun Feb 15 2004 stepan@suse.de
|
2006-12-19 00:17:33 +01:00
|
|
|
- update to v21.4
|
2008-05-22 04:14:34 +02:00
|
|
|
* Sat Feb 14 2004 kukuk@suse.de
|
2006-12-19 00:17:33 +01:00
|
|
|
- Split from ps package
|