%if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1} %global WITH_SELINUX 1 %endif Summary: Displays the users logged into machines on the local network Name: rusers Version: 0.17 Release: 107%{?dist} # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD Url: http://rstatd.sourceforge.net/ Source: http://ftp.linux.org.uk/pub/linux/Networking/netkit/netkit-rusers-%{version}.tar.gz Source1: rusersd.service Source2: rstatd.tar.gz Source3: rstatd.service Patch0: rstatd-jbj.patch Patch1: netkit-rusers-0.15-numusers.patch Patch2: rusers-0.17-2.4.patch Patch3: rusers-0.17-includes.patch Patch4: rusers-0.17-truncate.patch Patch5: rusers-0.17-stats.patch Patch6: rusers-0.17-rstatd-no-static-buffer.patch Patch7: rusers-0.17-strip.patch Patch8: rusers-0.17-rup.patch Patch9: rusers-0.17-rup-timeout.patch Patch10: rusers-0.17-procps.patch Patch11: rusers-0.17-rup-stack.patch Patch12: rusers-0.17-bigendian.patch Patch13: rusers-0.17-return.patch Patch14: rusers-0.17-procdiskstats.patch Patch15: rusers-0.17-rusersd-droppriv.patch # Oracle explicitly gave permission for this relicensing on August 18, 2010. Patch16: rusers-0.17-new-rpc-license.patch Patch17: rusers-0.17-manhelp.patch Patch18: rusers-0.17-freerpc.patch Patch19: rstatd-man.patch # Provide the BSD 3-clause license text as COPYING file Patch20: rusers-0.17-license.patch Patch21: rusers-0.17-incompatible-pointer-types.patch BuildRequires: make BuildRequires: gcc BuildRequires: procps libselinux-devel BuildRequires: rpcsvc-proto-devel BuildRequires: rpcgen BuildRequires: libtirpc-devel %description The rusers program allows users to find out who is logged into various machines on the local network. The rusers command produces output similar to who, but for the specified list of hosts or for all machines on the local network. Install rusers if you need to keep track of who is logged into your local network. %package server Summary: Server for the rusers protocol Requires(post): systemd Requires(preun): systemd Requires(postun): systemd Requires(post): systemd-sysv Requires: portmap BuildRequires: systemd BuildRequires: systemd-devel %description server The rusers program allows users to find out who is logged into various machines on the local network. The rusers command produces output similar to who, but for the specified list of hosts or for all machines on the local network. The rusers-server package contains the server for responding to rusers requests. Install rusers-server if you want remote users to be able to see who is logged into your machine. %prep %setup -q -n netkit-rusers-%{version} -a 2 %patch 0 -p1 -b .jbj %patch 1 -p1 -b .numusers %patch 2 -p1 -b .2.4 %patch 3 -p1 -b .includes %patch 4 -p1 -b .truncate %patch 5 -p1 -b .stats %patch 6 -p1 -b .rstatd-no-static-buffer %patch 7 -p1 -b .strip %patch 8 -p1 -b .rup %patch 9 -p1 -b .rup-timeout %patch 10 -p1 -b .procps %patch 11 -p1 -b .rup-stack %patch 12 -p1 -b .bigendian %patch 13 -p1 -b .return %patch 14 -p1 -b .procdiskstats %patch 15 -p1 -b .dropprivs %patch 16 -p1 -b .licensefix %patch 17 -p1 -b .manhelp %patch 18 -p1 -b .freerpc %patch 19 -p1 -b .rstatd-man %patch 20 -p1 -b .license %patch 21 -p1 -b .incompatible-pointer-types %build cat > MCONFIG < - 0.17-107 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 0.17-106 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Feb 12 2024 Petr Kubat - 0.17-105 - fix incompatible-pointer-types (#2261669) - move to new patch apply notation * Fri Jan 26 2024 Fedora Release Engineering - 0.17-104 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.17-103 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 0.17-102 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 0.17-101 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.17-100 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.17-99 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 0.17-98 - Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583. * Wed Jan 27 2021 Fedora Release Engineering - 0.17-97 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.17-96 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.17-95 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.17-94 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.17-93 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jul 24 2018 Petr Kubat - 0.17-92 - Add BuildRequires for gcc (#1606282) * Sat Jul 14 2018 Fedora Release Engineering - 0.17-91 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Mar 29 2018 Petr Kubat - 0.17-90 - Remove explicit requires * Thu Mar 15 2018 Petr Kubat - 0.17-89 - Add dependencies on libtirpc, rpcsvc-proto-devel and rpcgen (#1556423) Related to: https://fedoraproject.org/wiki/Changes/SunRPCRemoval * Fri Feb 09 2018 Fedora Release Engineering - 0.17-88 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.17-87 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.17-86 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Feb 21 2017 Petr Kubat - 0.17-85 - Remove execute permissions from *.service files (#1422022) - Add BSD license text (#1418686) * Sat Feb 11 2017 Fedora Release Engineering - 0.17-84 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Dec 14 2016 Petr Kubat - 0.17-83 - Remove mention of 'rpc.statd' from rstatd man page (#1374436) - Update upstream source URL * Thu Feb 04 2016 Fedora Release Engineering - 0.17-82 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jun 19 2015 Fedora Release Engineering - 0.17-81 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Aug 18 2014 Fedora Release Engineering - 0.17-80 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Mon Aug 11 2014 Jakub Dorňák - 0.17-79 - use libsystemd.so instead of the old libsystemd-daemon.so Resolves: #1125090 * Sun Jun 08 2014 Fedora Release Engineering - 0.17-78 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Jul 26 2013 Honza Horak - 0.17-77 - Free already alocated memory when parsing of RPC request failed - Require systemd instead of systemd-units - Remove SysV init converting * Fri May 24 2013 Honza Horak - 0.17-76 - Remove syslog.target from unit requires Resolves: #966009 * Mon May 20 2013 Honza Horak - 0.17-75 - Fix man page vs. help differences * Thu Feb 14 2013 Fedora Release Engineering - 0.17-74 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Nov 30 2012 Honza Horak - 0.17-73 - Build daemons with full relro * Fri Oct 05 2012 Honza Horak - 0.17-72 - Remove sdnotify message, while it doesn't work with forking service * Thu Oct 04 2012 Honza Horak - 0.17-71 - Run %%triggerun regardless of systemd_post variable definition * Tue Sep 11 2012 Honza Horak - 0.17-70 - Minor spec file changes - Use new systemd macros (Resolves: #850302) - Use systemd notify messages * Sat Jul 21 2012 Fedora Release Engineering - 0.17-69 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Mar 22 2012 Honza Horak - 0.17-68 - removed PIDFile in both service files Resolves: #804891 * Sat Jan 14 2012 Fedora Release Engineering - 0.17-67 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Aug 02 2011 Honza Horak - 0.17-66 - added rpcbind ordering dependencies in service files - fixed systemd related mistakes in spec file * Tue Aug 02 2011 Honza Horak - 0.17-65 - added rpcbind requirments to service files * Tue Aug 02 2011 Honza Horak - 0.17-64 - provide systemd native unit files Resolves: #722632 * Tue Aug 02 2011 Honza Horak - 0.17-63 - added rpcbind into LSB header Resolves: #697862 * Thu Feb 24 2011 Honza Horak - 0.17-62 - fixed rpmlint errors - Resolves: #634922 * Wed Feb 09 2011 Fedora Release Engineering - 0.17-61 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Aug 26 2010 Tom "spot" Callaway - 0.17-60 - replace SunRPC license with BSD (thanks to Oracle) * Fri Feb 26 2010 Jiri Moskovcak - 0.17-59 - added README * Wed Feb 24 2010 Jiri Moskovcak - 0.17-58 - fixed rusersd initscript - fixed rstatd initscript - Resolves: #523368, #523366 * Fri Jan 8 2010 Jiri Moskovcak - 0.17-57 - fixed rpmlint warnings * Sun Jul 26 2009 Fedora Release Engineering - 0.17-56 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 0.17-55 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Sep 4 2008 Jiri Moskovcak - 0.17-54 - modified truncate patch to work with fuzz=0 * Tue Feb 19 2008 Fedora Release Engineering - 0.17-53 - Autorebuild for GCC 4.3 * Tue Sep 18 2007 Jiri Moskovcak 0.17-52 - Fixed init script to work properly with rpcbind * Sat Sep 15 2007 Steve Dickson 0.17-51 - Removed portmap dependency and re-worked when the user privilege are drop; allowing port registration with rpcbind. (#247985) * Wed Aug 29 2007 Fedora Release Engineering - 0.17-50 - Rebuild for selinux ppc32 issue. * Wed Jul 25 2007 Jeremy Katz - 0.17-49 - rebuild for toolchain bug * Mon Jul 23 2007 Jiri Moskovcak 0.17-48 - Fixed init scripts to comply with LSB standard - Resolves: #247047 * Wed Aug 09 2006 Phil Knirsch 0.17-47 - Modified the RHEL3 procpartitions patch to work on recent 2.6 kernels (#201839) * Wed Jul 12 2006 Jesse Keating - 0.17-46.1 - rebuild * Tue Mar 21 2006 Phil Knirsch - 0.17-46 - Included fix for correct return values for rup (#177419) * Fri Feb 10 2006 Jesse Keating - 0.17-45.2.1 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 0.17-45.2 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Dec 09 2005 Jesse Keating - rebuilt * Wed Sep 07 2005 Phil Knirsch 0.17-45 - Fixed 64bit bigendian problem in rpc.rstatd (#130286) * Wed May 04 2005 Phil Knirsch 0.17-44 - Fixed rup stack problem (#154396) * Wed Mar 02 2005 Phil Knirsch 0.17-43 - bump release and rebuild with gcc 4 * Fri Feb 18 2005 Phil Knirsch 0.17-42 - rebuilt * Mon Jul 12 2004 Phil Knirsch 0.17-41 - Bump release. * Mon Jul 12 2004 Phil Knirsch 0.17-40 - Made patch to make rpc.rstatd independant of procps (#127512) * Tue Jun 29 2004 Phil Knirsch 0.17-39 - Added libselinux-devel BuildPreqreq (#124283). * Tue Jun 15 2004 Elliot Lee - rebuilt * Wed Feb 25 2004 Phil Knirsch 0.17-37 - rebuilt against latest procps lib. - built stuff with PIE enabled. * Fri Feb 13 2004 Elliot Lee - rebuilt * Fri Jan 23 2004 Bill Nottingham 0.17-35 - rebuild against new libproc - selinux is the default, remove the release suffix * Tue Oct 21 2003 Dan Walsh 0.17-34.sel - remove -lattr * Thu Oct 09 2003 Dan Walsh 0.17-33.sel - turn selinux on * Fri Oct 03 2003 Florian La Roche - rebuild * Mon Sep 08 2003 Dan Walsh 0.17-31.4 - turn selinux off * Fri Sep 05 2003 Dan Walsh 0.17-31.3.sel - turn selinux on * Mon Jul 28 2003 Dan Walsh 0.17-31.2 - Add SELinux library support * Mon Jul 14 2003 Tim Powers 0.17-31.1 - rebuilt for RHEL * Mon Jul 07 2003 Elliot Lee - Rebuild * Wed Jun 04 2003 Elliot Lee - rebuilt * Fri May 23 2003 Tim Powers 0.17-29 - rebuilt * Wed May 21 2003 Matt Wilson 0.17-28 - rebuilt * Wed May 21 2003 Matt Wilson 0.17-27 - added netkit-rusers-0.17-rup-timeout.patch to fix immediate timeout problem in rup (#91322) * Wed Jan 22 2003 Tim Powers - rebuilt * Tue Jan 21 2003 Phil Knirsch 0.17-24 - Bumped release and rebuilt due to new procps. * Mon Dec 02 2002 Elliot Lee 0.17-23 - Fix multilib * Tue Nov 5 2002 Nalin Dahyabhai 0.17-22 - Bumped release and rebuilt due to procps update. - s/Copyright/License/g * Thu Aug 08 2002 Phil Knirsch 0.17-21 - Bumped release and rebuilt due to procps update. * Wed Jul 17 2002 Phil Knirsch 0.17-20 - Fixed the sort ordering for rup -l host1 host2 host3 (#67551) - Don't use configure anymore, doesn't work in build environment correctly. * Fri Jun 21 2002 Tim Powers 0.17-19 - automated rebuild * Wed Jun 19 2002 Phil Knirsch 0.17-18 - Actually applied Matt's patch ;-) - Don't forcibly strip binaries * Mon Jun 10 2002 Matt Wilson - fixed static buffer size which truncated /proc/stat when it was more than 1024 bytes (#64935) * Tue Jun 04 2002 Phil Knirsch - bumped release number and rebuild * Thu May 23 2002 Tim Powers - automated rebuild * Wed Jan 23 2002 Phil Knirsch - Fixed the wrong uptime problem introduced by fixing bug #53244. - Fixed segfault problem on alpha (and other archs) (bug #53309). * Thu Jan 17 2002 Phil Knirsch - Fixed bug #17065 where rusersd wrongly terminated each string with a '\0'. - Fixed bug #53244. Now stats for the different protocols are stored separately. * Wed Jan 09 2002 Tim Powers - automated rebuild * Wed Jul 25 2001 Phil Knirsch - Fixed missing includes for time.h and several others (#49887) * Wed Jun 27 2001 Philipp Knirsch - Fixed rstatd.init script to use $0 in usage string (#26553) * Wed Apr 4 2001 Jakub Jelinek - don't let configure to guess compiler, it can pick up egcs * Wed Feb 14 2001 Nalin Dahyabhai - merge in Bob Matthews' patch, which solves other parts on 2.4 (#26447) * Tue Feb 6 2001 Nalin Dahyabhai - don't die if /proc/stat looks a little odd (#25519) * Mon Feb 5 2001 Bernhard Rosenkraenzer - i18nize rstatd init script * Wed Jan 24 2001 Nalin Dahyabhai - gettextize init script * Sat Aug 05 2000 Bill Nottingham - condrestart fixes * Thu Jul 20 2000 Bill Nottingham - move initscript back * Sun Jul 16 2000 Matt Wilson - rebuilt against new procps * Wed Jul 12 2000 Prospector - automatic rebuild * Mon Jul 10 2000 Preston Brown - move initscripts * Sun Jun 18 2000 Jeff Johnson - FHS packaging. - update to 0.17. * Wed Feb 9 2000 Jeff Johnson - compress man pages (again). * Wed Feb 02 2000 Cristian Gafton - fix description and summary - man pages are compressed * Tue Jan 4 2000 Bill Nottingham - split client and server * Tue Dec 21 1999 Jeff Johnson - update to 0.16. * Wed Nov 10 1999 Bill Nottingham - rebuild against new procps * Wed Sep 22 1999 Jeff Johnson - rusers init script started rstatd. * Mon Sep 20 1999 Jeff Johnson - (re-)initialize number of users (#5244). * Fri Aug 27 1999 Preston Brown - initscripts check for portmapper running before starting (#2615) * Fri Aug 27 1999 Jeff Johnson - return monitoring statistics like solaris does (#4237). * Thu Aug 26 1999 Jeff Johnson - update to netkit-0.15. - on startup, rpc.rstatd needs to read information twice (#3994). * Mon Aug 16 1999 Bill Nottingham - initscript munging * Tue Apr 6 1999 Jeff Johnson - add rpc.rstatd (#2000) * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 22) * Mon Mar 15 1999 Jeff Johnson - compile for 6.0. * Tue May 05 1998 Cristian Gafton - added /etc/rc.d/init.d/functions to the init script * Tue May 05 1998 Prospector System - translations modified for de, fr, tr * Sat May 02 1998 Cristian Gafton - enhanced initscript * Tue Oct 21 1997 Erik Troan - added init script - users attr - supports chkconfig * Tue Jul 15 1997 Erik Troan - initial build