2006-12-19 00:17:32 +01:00
|
|
|
#
|
2011-03-23 09:19:34 +01:00
|
|
|
# spec file for package procps
|
2006-12-19 00:17:32 +01:00
|
|
|
#
|
2012-06-04 16:22:08 +02:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:32 +01:00
|
|
|
#
|
2008-08-26 02:20:31 +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:32 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-02-15 01:39:06 +01:00
|
|
|
|
2006-12-19 00:17:32 +01:00
|
|
|
Name: procps
|
2012-06-04 16:22:08 +02:00
|
|
|
BuildRequires: automake
|
2008-08-26 02:20:31 +02:00
|
|
|
BuildRequires: libselinux-devel
|
2012-06-04 16:22:08 +02:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
Url: https://gitorious.org/procps
|
|
|
|
PreReq: %fillup_prereq %insserv_prereq
|
|
|
|
Version: 3.3.3
|
|
|
|
Release: 0
|
|
|
|
Summary: The ps utilities for /proc
|
2011-12-06 18:53:15 +01:00
|
|
|
License: GPL-2.0+ ; LGPL-2.1+
|
2006-12-19 00:17:32 +01:00
|
|
|
Group: System/Monitoring
|
|
|
|
Provides: ps
|
|
|
|
Obsoletes: ps
|
2012-06-04 16:22:08 +02:00
|
|
|
Source: procps-v%version.tar.bz2
|
2012-06-05 14:47:25 +02:00
|
|
|
Source1: procps-pmap-legacy.tar.bz2
|
|
|
|
Source2: boot.sysctl
|
|
|
|
Source3: systat.xinetd
|
|
|
|
Source4: sysctl.conf
|
|
|
|
Source5: sysctl.conf.s390
|
2012-06-04 16:22:08 +02:00
|
|
|
Patch0: procps-v3.3.3-watch.patch
|
|
|
|
Patch1: procps-v3.3.3-ia64.diff
|
|
|
|
Patch2: procps-v3.3.3-stealtime.patch
|
|
|
|
Patch3: procps-v3.3.3-w-notruncate.diff
|
|
|
|
Patch4: procps-v3.3.3-w-simply-work.diff
|
|
|
|
Patch5: procps-v3.3.3-top.1.diff
|
|
|
|
Patch6: procps-v3.3.3-buffersize.diff
|
|
|
|
Patch7: procps-v3.3.3-readeof.patch
|
|
|
|
Patch8: procps-v3.3.3-slab.patch
|
|
|
|
Patch9: procps-v3.3.3-selinux.patch
|
|
|
|
Patch10: procps-v3.3.3-accuracy.dif
|
|
|
|
Patch11: procps-v3.3.3-xen.dif
|
|
|
|
Patch12: procps-v3.3.3-fdleak.dif
|
|
|
|
Patch13: procps-v3.3.3-columns.dif
|
|
|
|
Patch14: procps-v3.3.3-integer-overflow.patch
|
|
|
|
Patch15: procps-v3.3.3-bnc634071_procstat2.diff
|
|
|
|
Patch16: procps-v3.3.3-bnc634840.patch
|
|
|
|
Patch17: procps-v3.3.3-read-sysctls-also-from-boot-sysctl.conf-kernelversion.diff
|
|
|
|
Patch18: procps-v3.3.3-petabytes.patch
|
|
|
|
Patch19: procps-v3.3.3-large_pcpu.patch
|
|
|
|
Patch20: procps-v3.3.3-tinfo.dif
|
2006-12-19 00:17:32 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
The procps package contains a set of system utilities that provide
|
|
|
|
system information. Procps includes ps, free, skill, snice, tload, top,
|
|
|
|
uptime, vmstat, w, and watch. The ps command displays a snapshot of
|
|
|
|
running processes. The top command provides a repetitive update of the
|
|
|
|
statuses of running processes. The free command displays the amounts of
|
|
|
|
free and used memory on your system. The skill command sends a
|
|
|
|
terminate command (or another specified signal) to a specified set of
|
|
|
|
processes. The snice command is used to change the scheduling priority
|
|
|
|
of specified processes. The tload command prints a graph of the current
|
|
|
|
system load average to a specified tty. The uptime command displays the
|
|
|
|
current time, how long the system has been running, how many users are
|
|
|
|
logged on, and system load averages for the past one, five, and fifteen
|
|
|
|
minutes. The w command displays a list of the users who are currently
|
|
|
|
logged on and what they are running. The watch program watches a
|
|
|
|
running program. The vmstat command displays virtual memory statistics
|
|
|
|
about processes, memory, paging, block I/O, traps, and CPU activity.
|
|
|
|
|
2012-06-04 16:22:08 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
|
|
|
License: GPL-2.0+ ; LGPL-2.1+
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
2006-12-19 00:17:32 +01:00
|
|
|
|
2012-06-04 16:22:08 +02:00
|
|
|
%package -n libprocps0
|
|
|
|
Summary: The props library
|
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: System/Libraries
|
2006-12-19 00:17:32 +01:00
|
|
|
|
2012-06-04 16:22:08 +02:00
|
|
|
%description -n libprocps0
|
|
|
|
The props library can be used to read informations out from /proc
|
|
|
|
the process information pseudo-file system,
|
2006-12-19 00:17:32 +01:00
|
|
|
|
|
|
|
%prep
|
2012-06-04 16:22:08 +02:00
|
|
|
%setup -q -n %{name}-v%{version}
|
2012-06-05 14:47:25 +02:00
|
|
|
%__tar --strip-components=1 -xjf %{S:1}
|
2012-06-04 16:22:08 +02:00
|
|
|
%patch0
|
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
|
|
|
%patch4
|
|
|
|
%patch5
|
|
|
|
%patch6
|
|
|
|
%patch7
|
|
|
|
%patch8
|
|
|
|
%patch9
|
|
|
|
%patch10
|
|
|
|
%patch11
|
|
|
|
%patch12
|
|
|
|
%patch13
|
|
|
|
%patch14
|
|
|
|
%patch15
|
|
|
|
%patch16
|
2006-12-19 00:17:32 +01:00
|
|
|
%patch17
|
|
|
|
%patch18
|
2012-06-04 16:22:08 +02:00
|
|
|
%patch19
|
2007-12-12 18:18:44 +01:00
|
|
|
%patch20
|
2006-12-19 00:17:32 +01:00
|
|
|
|
|
|
|
%build
|
2012-06-04 16:22:08 +02:00
|
|
|
sh po/update-potfiles
|
|
|
|
autoreconf -fi
|
|
|
|
export NCURSESW_CFLAGS="$(ncursesw5-config --cflags)"
|
|
|
|
export NCURSESW_LIBS="$(ncursesw5-config --libs)"
|
|
|
|
%global optflags %{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -pipe
|
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-rpath \
|
|
|
|
--disable-kill \
|
|
|
|
--enable-watch8bit \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-skill \
|
|
|
|
--enable-oomem \
|
|
|
|
--enable-w-from \
|
|
|
|
--with-pic=yes \
|
|
|
|
--with-gnu-ld
|
|
|
|
make %{?_smp_mflags}
|
2010-10-29 10:16:15 +02:00
|
|
|
hz="$(ps/ps aux 2>&1 | grep -E '^Unknown HZ value')" || true
|
|
|
|
test -z "$hz" || exit 1
|
2012-06-05 14:47:25 +02:00
|
|
|
./pmap -d $$ || exit 1
|
2006-12-19 00:17:32 +01:00
|
|
|
|
|
|
|
%install
|
2012-06-04 16:22:08 +02:00
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
install -d %{buildroot}/etc/init.d
|
|
|
|
install -d %{buildroot}/etc/xinetd.d
|
|
|
|
install -d %{buildroot}/lib/sysctl.d
|
|
|
|
install -d %{buildroot}/etc/sysctl.d
|
|
|
|
install -d %{buildroot}/bin
|
|
|
|
install -d %{buildroot}/sbin
|
2012-06-05 14:47:25 +02:00
|
|
|
install -m 755 %{S:2} %{buildroot}/etc/init.d
|
|
|
|
install -m 644 %{S:3} %{buildroot}/etc/xinetd.d/systat
|
|
|
|
install -m 644 %{S:4} %{buildroot}/lib/sysctl.d/sysctl.conf
|
2010-06-25 17:53:12 +02:00
|
|
|
case "$RPM_ARCH" in
|
2012-06-04 16:22:08 +02:00
|
|
|
s390*) install -m 644 %{S:4} %{buildroot}/lib/sysctl.d/sysctl-s390.conf ;;
|
2010-06-25 17:53:12 +02:00
|
|
|
esac
|
2011-05-28 22:50:18 +02:00
|
|
|
|
2012-06-04 16:22:08 +02:00
|
|
|
# clean unwanted files (e.g. coreutils)
|
|
|
|
rm -f %{buildroot}/usr/bin/kill
|
|
|
|
rm -f %{buildroot}/usr/bin/uptime
|
|
|
|
rm -f %{buildroot}%{_mandir}/man1/kill.1
|
|
|
|
rm -f %{buildroot}%{_mandir}/man1/uptime.1
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/procps-ng
|
|
|
|
|
|
|
|
mv %{buildroot}%{_bindir}/{ps,pgrep,pkill} %{buildroot}/bin/
|
|
|
|
mv %{buildroot}%{_sbindir}/sysctl %{buildroot}/sbin/
|
|
|
|
ln -s /bin/ps %{buildroot}%{_bindir}/ps
|
|
|
|
ln -s /bin/pgrep %{buildroot}%{_bindir}/pgrep
|
|
|
|
ln -s /bin/pkill %{buildroot}%{_bindir}/pkill
|
|
|
|
ln -s /sbin/sysctl %{buildroot}%{_sbindir}/sysctl
|
2006-12-19 00:17:32 +01:00
|
|
|
|
|
|
|
%clean
|
2012-06-04 16:22:08 +02:00
|
|
|
rm -rf %{buildroot}
|
2006-12-19 00:17:32 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%{fillup_and_insserv -ny boot.sysctl boot.sysctl}
|
2011-05-28 22:50:18 +02:00
|
|
|
#
|
2011-08-26 14:44:08 +02:00
|
|
|
test -e /etc/sysctl.conf || cat <<EOF >/etc/sysctl.conf
|
|
|
|
####
|
|
|
|
#
|
|
|
|
# /etc/sysctl.conf is meant for local sysctl settings
|
|
|
|
#
|
|
|
|
# sysctl reads settings from the following locations:
|
|
|
|
# /boot/sysctl.conf-<kernelversion>
|
|
|
|
# /lib/sysctl.d/*.conf
|
|
|
|
# /usr/lib/sysctl.conf.d/*.conf
|
|
|
|
# /usr/local/lib/sysctl.d/*.conf
|
|
|
|
# /etc/sysctl.d/*.conf
|
|
|
|
# /run/sysctl.d/*.conf
|
|
|
|
# /etc/sysctl.conf
|
|
|
|
#
|
|
|
|
# To disable or override a distribution provided file just place a
|
|
|
|
# file with the same name in /etc/sysctl.d/
|
|
|
|
#
|
|
|
|
# See sysctl.conf(5) and sysctl(8) for more information
|
|
|
|
#
|
|
|
|
####
|
|
|
|
EOF
|
2006-12-19 00:17:32 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%insserv_cleanup
|
|
|
|
|
2012-06-04 16:22:08 +02:00
|
|
|
%post -n libprocps0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libprocps0 -p /sbin/ldconfig
|
|
|
|
|
2006-12-19 00:17:32 +01:00
|
|
|
%files
|
|
|
|
%defattr (-,root,root,755)
|
2012-06-04 16:22:08 +02:00
|
|
|
%doc NEWS README COPYING Documentation/BUGS Documentation/FAQ top/README.top
|
2006-12-19 00:17:32 +01:00
|
|
|
%config /etc/init.d/boot.sysctl
|
2011-05-28 22:50:18 +02:00
|
|
|
%config(noreplace) %ghost %attr(0644,root,root) /etc/sysctl.conf
|
2006-12-19 00:17:32 +01:00
|
|
|
%config(noreplace) /etc/xinetd.d/systat
|
|
|
|
/bin/ps
|
2009-08-14 15:07:13 +02:00
|
|
|
/bin/pgrep
|
|
|
|
/bin/pkill
|
2006-12-19 00:17:32 +01:00
|
|
|
/sbin/sysctl
|
|
|
|
/usr/bin/free
|
|
|
|
/usr/bin/pgrep
|
|
|
|
/usr/bin/pkill
|
2012-06-04 16:22:08 +02:00
|
|
|
/usr/bin/ps
|
2006-12-19 00:17:32 +01:00
|
|
|
/usr/bin/pmap
|
|
|
|
/usr/bin/pwdx
|
|
|
|
/usr/bin/skill
|
|
|
|
/usr/bin/slabtop
|
|
|
|
/usr/bin/snice
|
|
|
|
/usr/bin/tload
|
|
|
|
/usr/bin/top
|
|
|
|
/usr/bin/vmstat
|
|
|
|
/usr/bin/w
|
|
|
|
/usr/bin/watch
|
2012-06-04 16:22:08 +02:00
|
|
|
/usr/sbin/sysctl
|
2011-05-28 22:50:18 +02:00
|
|
|
%dir /etc/sysctl.d
|
|
|
|
%dir /lib/sysctl.d
|
|
|
|
/lib/sysctl.d/*.conf
|
2006-12-19 00:17:32 +01:00
|
|
|
%_mandir/man1/free.1.gz
|
|
|
|
%_mandir/man1/pgrep.1.gz
|
|
|
|
%_mandir/man1/pkill.1.gz
|
|
|
|
%_mandir/man1/pmap.1.gz
|
|
|
|
%_mandir/man1/ps.1.gz
|
|
|
|
%_mandir/man1/pwdx.1.gz
|
|
|
|
%_mandir/man1/skill.1.gz
|
|
|
|
%_mandir/man1/slabtop.1.gz
|
|
|
|
%_mandir/man1/snice.1.gz
|
|
|
|
%_mandir/man1/tload.1.gz
|
|
|
|
%_mandir/man1/top.1.gz
|
|
|
|
%_mandir/man1/w.1.gz
|
|
|
|
%_mandir/man1/watch.1.gz
|
|
|
|
%_mandir/man5/sysctl.conf.5.gz
|
|
|
|
%_mandir/man8/vmstat.8.gz
|
|
|
|
%_mandir/man8/sysctl.8.gz
|
2007-12-12 18:18:44 +01:00
|
|
|
|
2012-06-04 16:22:08 +02:00
|
|
|
%files devel
|
|
|
|
%defattr (-,root,root,755)
|
|
|
|
%dir %{_includedir}/proc
|
|
|
|
%{_includedir}/proc/alloc.h
|
|
|
|
%{_includedir}/proc/devname.h
|
|
|
|
%{_includedir}/proc/escape.h
|
|
|
|
%{_includedir}/proc/procps.h
|
|
|
|
%{_includedir}/proc/pwcache.h
|
|
|
|
%{_includedir}/proc/readproc.h
|
|
|
|
%{_includedir}/proc/sig.h
|
|
|
|
%{_includedir}/proc/slab.h
|
|
|
|
%{_includedir}/proc/sysinfo.h
|
|
|
|
%{_includedir}/proc/version.h
|
|
|
|
%{_includedir}/proc/wchan.h
|
|
|
|
%{_includedir}/proc/whattime.h
|
|
|
|
%{_libdir}/libprocps.so
|
2012-06-05 14:47:25 +02:00
|
|
|
%{_libdir}/pkgconfig/libprocps.pc
|
2012-06-04 16:22:08 +02:00
|
|
|
|
|
|
|
%files -n libprocps0
|
|
|
|
%defattr (-,root,root,755)
|
|
|
|
%{_libdir}/libprocps.so.0
|
|
|
|
%{_libdir}/libprocps.so.0.0.1
|
|
|
|
|
2007-03-29 18:25:58 +02:00
|
|
|
%changelog
|