cvsdist 389e2f0
%if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1}
cvsdist ab22a61
%define WITH_SELINUX 1
cvsdist 389e2f0
%endif
cvsdist 389e2f0
cvsdist 1d1e2d7
Summary: Displays the users logged into machines on the local network.
cvsdist 1d1e2d7
Name: rusers
cvsdist 1d1e2d7
Version: 0.17
b25dcdb
Release: 45
cvsdist 8ac8603
License: BSD
cvsdist 1d1e2d7
Group: System Environment/Daemons
cvsdist 0ba63fb
Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-rusers-%{version}.tar.gz
cvsdist 1d1e2d7
Source1: rusersd.init
cvsdist 1d1e2d7
Source2: rstatd.tar.gz
cvsdist 1d1e2d7
Source3: rstatd.init
cvsdist 1d1e2d7
Patch0: rstatd-jbj.patch
cvsdist 1d1e2d7
Patch1: netkit-rusers-0.15-numusers.patch
cvsdist 0ba63fb
Patch2: netkit-rusers-0.17-2.4.patch
cvsdist 834a29d
Patch3: netkit-rusers-0.17-includes.patch
cvsdist 530f2db
Patch4: netkit-rusers-0.17-truncate.patch
cvsdist 530f2db
Patch5: netkit-rusers-0.17-stats.patch
cvsdist 530f2db
Patch6: netkit-rusers-0.17-rstatd-no-static-buffer.patch
cvsdist 530f2db
Patch7: netkit-rusers-0.17-strip.patch
cvsdist 530f2db
Patch8: netkit-rusers-0.17-rup.patch
cvsdist 389e2f0
Patch9: netkit-rusers-0.17-rup-timeout.patch
cvsdist 9592a4a
Patch10: netkit-rusers-0.17-procps.patch
f0484c9
Patch11: netkit-rusers-0.17-rup-stack.patch
b25dcdb
Patch12: netkit-rusers-0.17-bigendian.patch
cvsdist 1d1e2d7
Buildroot: %{_tmppath}/%{name}-root
cvsdist a949906
BuildRequires: procps libselinux-devel
cvsdist 1d1e2d7
cvsdist 1d1e2d7
%description
cvsdist 1d1e2d7
The rusers program allows users to find out who is logged into various
cvsdist 1d1e2d7
machines on the local network.  The rusers command produces output
cvsdist 1d1e2d7
similar to who, but for the specified list of hosts or for all
cvsdist 1d1e2d7
machines on the local network.
cvsdist 1d1e2d7
cvsdist 1d1e2d7
Install rusers if you need to keep track of who is logged into your
cvsdist 1d1e2d7
local network.
cvsdist 1d1e2d7
cvsdist 1d1e2d7
%package server
cvsdist 1d1e2d7
Summary: Server for the rusers protocol.
cvsdist 1d1e2d7
Group: System Environment/Daemons
cvsdist 0ba63fb
Prereq: /sbin/chkconfig
cvsdist 1d1e2d7
Requires: portmap
cvsdist 1d1e2d7
cvsdist 1d1e2d7
%description server
cvsdist 1d1e2d7
The rusers program allows users to find out who is logged into various
cvsdist 1d1e2d7
machines on the local network.  The rusers command produces output
cvsdist 1d1e2d7
similar to who, but for the specified list of hosts or for all
cvsdist 1d1e2d7
machines on the local network. The rusers-server package contains the
cvsdist 1d1e2d7
server for responding to rusers requests.
cvsdist 1d1e2d7
cvsdist 1d1e2d7
Install rusers-server if you want remote users to be able to see
cvsdist 1d1e2d7
who is logged into your machine.
cvsdist 1d1e2d7
cvsdist 1d1e2d7
%prep
cvsdist 0ba63fb
%setup -q -n netkit-rusers-%{version} -a 2
cvsdist 1d1e2d7
%patch0 -p1 -b .jbj
cvsdist 1d1e2d7
%patch1 -p1 -b .numusers
cvsdist 0ba63fb
%patch2 -p1 -b .2.4
cvsdist 834a29d
%patch3 -p1 -b .includes
cvsdist 530f2db
%patch4 -p1 -b .truncate
cvsdist 530f2db
%patch5 -p1 -b .stats
cvsdist 530f2db
%patch6 -p1 -b .rstatd-no-static-buffer
cvsdist 530f2db
%patch7 -p1 -b .strip
cvsdist 530f2db
%patch8 -p1 -b .rup
cvsdist 9592a4a
%patch9 -p1 -b .rup-timeout
cvsdist 9592a4a
%patch10 -p1 -b .procps
f0484c9
%patch11 -p1 -b .rup-stack
b25dcdb
%patch12 -p1 -b .bigendian
cvsdist 1d1e2d7
cvsdist 1d1e2d7
%build
cvsdist 530f2db
cat > MCONFIG <
cvsdist 530f2db
# Generated by configure (confgen version 2) on Wed Jul 17 09:33:22 EDT 2002
cvsdist 530f2db
#
cvsdist 530f2db
cvsdist 530f2db
BINDIR=%{_bindir}
cvsdist 530f2db
SBINDIR=%{_sbindir}
cvsdist 530f2db
MANDIR=%{_mandir}
cvsdist 530f2db
BINMODE=755
cvsdist 530f2db
DAEMONMODE=755
cvsdist 530f2db
MANMODE=644
cvsdist 530f2db
PREFIX=/usr
cvsdist 530f2db
EXECPREFIX=/usr
cvsdist 530f2db
INSTALLROOT=
cvsdist 530f2db
CC=cc
cvsdist e953662
CFLAGS=${RPM_OPT_FLAGS} -fPIC -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline 
cvsdist e953662
LDFLAGS=-pie
cvsdist 530f2db
LIBS=
cvsdist 530f2db
USE_GLIBC=1
cvsdist 530f2db
cvsdist 530f2db
EOF
cvsdist 1d1e2d7
cvsdist 1d1e2d7
make
cvsdist 389e2f0
%if %{WITH_SELINUX}
cvsdist 9592a4a
make LIBS="-lselinux" -C rpc.rstatd
cvsdist 389e2f0
%else
cvsdist 9592a4a
make -C rpc.rstatd
cvsdist 389e2f0
%endif
cvsdist 389e2f0
cvsdist 1d1e2d7
cvsdist 1d1e2d7
%install
cvsdist 1d1e2d7
rm -rf ${RPM_BUILD_ROOT}
cvsdist 1d1e2d7
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
cvsdist 1d1e2d7
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
cvsdist 1d1e2d7
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,8}
cvsdist 1d1e2d7
mkdir -p ${RPM_BUILD_ROOT}/etc/rc.d/init.d
cvsdist 1d1e2d7
cvsdist 1d1e2d7
make INSTALLROOT=${RPM_BUILD_ROOT} install
cvsdist 1d1e2d7
make INSTALLROOT=${RPM_BUILD_ROOT} install -C rpc.rstatd
cvsdist 1d1e2d7
cvsdist 1d1e2d7
install -m 755 $RPM_SOURCE_DIR/rusersd.init ${RPM_BUILD_ROOT}/etc/rc.d/init.d/rusersd
cvsdist 1d1e2d7
install -m 755 $RPM_SOURCE_DIR/rstatd.init ${RPM_BUILD_ROOT}/etc/rc.d/init.d/rstatd
cvsdist 1d1e2d7
cvsdist 1d1e2d7
%clean
cvsdist 1d1e2d7
rm -rf ${RPM_BUILD_ROOT}
cvsdist 1d1e2d7
cvsdist 1d1e2d7
%post server
cvsdist 1d1e2d7
/sbin/chkconfig --add rusersd
cvsdist 1d1e2d7
/sbin/chkconfig --add rstatd
cvsdist 1d1e2d7
cvsdist 1d1e2d7
%preun server
cvsdist 1d1e2d7
if [ $1 = 0 ]; then
cvsdist 1d1e2d7
    /sbin/chkconfig --del rusersd
cvsdist 1d1e2d7
    /sbin/chkconfig --del rstatd
cvsdist 1d1e2d7
fi
cvsdist 1d1e2d7
cvsdist 1d1e2d7
%files
cvsdist 1d1e2d7
%defattr(-,root,root)
cvsdist 1d1e2d7
%{_bindir}/rup
cvsdist 1d1e2d7
%{_bindir}/rusers
cvsdist 1d1e2d7
%{_mandir}/man1/*
cvsdist 1d1e2d7
cvsdist 1d1e2d7
%files server
cvsdist 1d1e2d7
%defattr(-,root,root)
cvsdist 1d1e2d7
%{_mandir}/man8/*
cvsdist 1d1e2d7
%{_sbindir}/rpc.rstatd
cvsdist 1d1e2d7
%{_sbindir}/rpc.rusersd
cvsdist 1d1e2d7
%config /etc/rc.d/init.d/rusersd
cvsdist 1d1e2d7
%config /etc/rc.d/init.d/rstatd
cvsdist 1d1e2d7
cvsdist 1d1e2d7
%changelog
b25dcdb
* Wed Sep 07 2005 Phil Knirsch <pknirsch@redhat.com> 0.17-45
b25dcdb
- Fixed 64bit bigendian problem in rpc.rstatd (#130286)
b25dcdb
f0484c9
* Wed May 04 2005 Phil Knirsch <pknirsch@redhat.com> 0.17-44
f0484c9
- Fixed rup stack problem (#154396)
f0484c9
45f9227
* Wed Mar 02 2005 Phil Knirsch <pknirsch@redhat.com> 0.17-43
45f9227
- bump release and rebuild with gcc 4
45f9227
4028ae7
* Fri Feb 18 2005 Phil Knirsch <pknirsch@redhat.com> 0.17-42
4028ae7
- rebuilt
4028ae7
cvsdist 9592a4a
* Mon Jul 12 2004 Phil Knirsch <pknirsch@redhat.com> 0.17-41
cvsdist 9592a4a
- Bump release.
cvsdist 9592a4a
cvsdist 9592a4a
* Mon Jul 12 2004 Phil Knirsch <pknirsch@redhat.com> 0.17-40
cvsdist 9592a4a
- Made patch to make rpc.rstatd independant of procps (#127512)
cvsdist 9592a4a
cvsdist a949906
* Tue Jun 29 2004 Phil Knirsch <pknirsch@redhat.com> 0.17-39
cvsdist a949906
- Added libselinux-devel BuildPreqreq (#124283).
cvsdist a949906
cvsdist f911a83
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist f911a83
- rebuilt
cvsdist f911a83
cvsdist e953662
* Wed Feb 25 2004 Phil Knirsch <pknirsch@redhat.com> 0.17-37
cvsdist e953662
- rebuilt against latest procps lib.
cvsdist e953662
- built stuff with PIE enabled.
cvsdist e953662
cvsdist e953662
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist e953662
- rebuilt
cvsdist e953662
cvsdist ab22a61
* Fri Jan 23 2004 Bill Nottingham <notting@redhat.com> 0.17-35
cvsdist ab22a61
- rebuild against new libproc
cvsdist ab22a61
- selinux is the default, remove the release suffix
cvsdist ab22a61
cvsdist ab22a61
* Tue Oct 21 2003 Dan Walsh <dwalsh@redhat.com> 0.17-34.sel
cvsdist ab22a61
- remove -lattr
cvsdist ab22a61
cvsdist ab22a61
* Thu Oct 09 2003 Dan Walsh <dwalsh@redhat.com> 0.17-33.sel
cvsdist ab22a61
- turn selinux on
cvsdist ab22a61
cvsdist 389e2f0
* Fri Oct 03 2003 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 389e2f0
- rebuild
cvsdist 389e2f0
cvsdist 389e2f0
* Mon Sep 08 2003 Dan Walsh <dwalsh@redhat.com> 0.17-31.4
cvsdist 389e2f0
- turn selinux off
cvsdist 389e2f0
cvsdist 389e2f0
* Fri Sep 05 2003 Dan Walsh <dwalsh@redhat.com> 0.17-31.3.sel
cvsdist 389e2f0
- turn selinux on
cvsdist 389e2f0
cvsdist 389e2f0
* Mon Jul 28 2003 Dan Walsh <dwalsh@redhat.com> 0.17-31.2
cvsdist 389e2f0
- Add SELinux library support
cvsdist 389e2f0
cvsdist 389e2f0
* Mon Jul 14 2003 Tim Powers <timp@redhat.com> 0.17-31.1
cvsdist 389e2f0
- rebuilt for RHEL
cvsdist 389e2f0
cvsdist 389e2f0
* Mon Jul 07 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 389e2f0
- Rebuild
cvsdist 389e2f0
cvsdist 389e2f0
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 389e2f0
- rebuilt
cvsdist 389e2f0
cvsdist 389e2f0
* Fri May 23 2003 Tim Powers <timp@redhat.com> 0.17-29
cvsdist 389e2f0
- rebuilt
cvsdist 389e2f0
cvsdist 389e2f0
* Wed May 21 2003 Matt Wilson <msw@redhat.com> 0.17-28
cvsdist 389e2f0
- rebuilt
cvsdist 389e2f0
cvsdist 389e2f0
* Wed May 21 2003 Matt Wilson <msw@redhat.com> 0.17-27
cvsdist 389e2f0
- added netkit-rusers-0.17-rup-timeout.patch to fix immediate timeout
cvsdist 389e2f0
  problem in rup (#91322)
cvsdist 389e2f0
cvsdist 8ac8603
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist 8ac8603
- rebuilt
cvsdist 8ac8603
cvsdist 8ac8603
* Tue Jan 21 2003 Phil Knirsch <pknirsch@redhat.com> 0.17-24
cvsdist 8ac8603
- Bumped release and rebuilt due to new procps.
cvsdist 8ac8603
cvsdist 8ac8603
* Mon Dec 02 2002 Elliot Lee <sopwith@redhat.com> 0.17-23
cvsdist 8ac8603
- Fix multilib
cvsdist 8ac8603
cvsdist 8ac8603
* Tue Nov  5 2002 Nalin Dahyabhai <nalin@redhat.com> 0.17-22
cvsdist 8ac8603
- Bumped release and rebuilt due to procps update.
cvsdist 8ac8603
- s/Copyright/License/g
cvsdist 8ac8603
cvsdist 4617fa6
* Thu Aug 08 2002 Phil Knirsch <pknirsch@redhat.com> 0.17-21
cvsdist 4617fa6
- Bumped release and rebuilt due to procps update.
cvsdist 4617fa6
cvsdist 530f2db
* Wed Jul 17 2002 Phil Knirsch <pknirsch@redhat.com> 0.17-20
cvsdist 530f2db
- Fixed the sort ordering for rup -l host1 host2 host3 (#67551)
cvsdist 530f2db
- Don't use configure anymore, doesn't work in build environment correctly.
cvsdist 530f2db
cvsdist 530f2db
* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 0.17-19
cvsdist 530f2db
- automated rebuild
cvsdist 530f2db
cvsdist 530f2db
* Wed Jun 19 2002 Phil Knirsch <pknirsch@redhat.com> 0.17-18
cvsdist 530f2db
- Actually applied Matt's patch ;-)
cvsdist 530f2db
- Don't forcibly strip binaries
cvsdist 530f2db
cvsdist 530f2db
* Mon Jun 10 2002 Matt Wilson <msw@redhat.com>
cvsdist 530f2db
- fixed static buffer size which truncated /proc/stat when it was more
cvsdist 530f2db
  than 1024 bytes (#64935)
cvsdist 530f2db
cvsdist 530f2db
* Tue Jun 04 2002 Phil Knirsch <pknirsch@redhat.com>
cvsdist 530f2db
- bumped release number and rebuild
cvsdist 530f2db
cvsdist 530f2db
* Thu May 23 2002 Tim Powers <timp@redhat.com>
cvsdist 530f2db
- automated rebuild
cvsdist 530f2db
cvsdist 530f2db
* Wed Jan 23 2002 Phil Knirsch <pknirsch@redhat.com>
cvsdist 530f2db
- Fixed the wrong uptime problem introduced by fixing bug #53244.
cvsdist 530f2db
- Fixed segfault problem on alpha (and other archs) (bug #53309).
cvsdist 530f2db
cvsdist 530f2db
* Thu Jan 17 2002 Phil Knirsch <pknirsch@redhat.com>
cvsdist 530f2db
- Fixed bug #17065 where rusersd wrongly terminated each string with a '\0'.
cvsdist 530f2db
- Fixed bug #53244. Now stats for the different protocols are stored separately.
cvsdist 530f2db
cvsdist 530f2db
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
cvsdist 530f2db
- automated rebuild
cvsdist 530f2db
cvsdist 834a29d
* Wed Jul 25 2001 Phil Knirsch <pknirsch@redhat.de>
cvsdist 834a29d
- Fixed missing includes for time.h and several others (#49887)
cvsdist 834a29d
cvsdist 834a29d
* Wed Jun 27 2001 Philipp Knirsch <pknirsch@redhat.de>
cvsdist 834a29d
- Fixed rstatd.init script to use $0 in usage string (#26553)
cvsdist 834a29d
cvsdist 561e823
* Wed Apr  4 2001 Jakub Jelinek <jakub@redhat.com>
cvsdist 561e823
- don't let configure to guess compiler, it can pick up egcs
cvsdist 561e823
cvsdist 0ba63fb
* Wed Feb 14 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 0ba63fb
- merge in Bob Matthews' patch, which solves other parts on 2.4 (#26447)
cvsdist 0ba63fb
cvsdist 0ba63fb
* Tue Feb  6 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 0ba63fb
- don't die if /proc/stat looks a little odd (#25519)
cvsdist 0ba63fb
cvsdist 0ba63fb
* Mon Feb  5 2001 Bernhard Rosenkraenzer <bero@redhat.com>
cvsdist 0ba63fb
- i18nize rstatd init script
cvsdist 0ba63fb
cvsdist 0ba63fb
* Tue Jan 24 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 0ba63fb
- gettextize init script
cvsdist 0ba63fb
cvsdist 1d1e2d7
* Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
cvsdist 1d1e2d7
- condrestart fixes
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Thu Jul 20 2000 Bill Nottingham <notting@redhat.com>
cvsdist 1d1e2d7
- move initscript back
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Sun Jul 16 2000 Matt Wilson <msw@redhat.com>
cvsdist 1d1e2d7
- rebuilt against new procps
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist 1d1e2d7
- automatic rebuild
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Mon Jul 10 2000 Preston Brown <pbrown@redhat.com>
cvsdist 1d1e2d7
- move initscripts
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 1d1e2d7
- FHS packaging.
cvsdist 1d1e2d7
- update to 0.17.
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Wed Feb  9 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 1d1e2d7
- compress man pages (again).
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
cvsdist 1d1e2d7
- fix description and summary
cvsdist 1d1e2d7
- man pages are compressed
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Tue Jan  4 2000 Bill Nottingham <notting@redhat.com>
cvsdist 1d1e2d7
- split client and server
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com>
cvsdist 1d1e2d7
- update to 0.16.
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Wed Nov 10 1999 Bill Nottingham <notting@redhat.com>
cvsdist 1d1e2d7
- rebuild against new procps
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Wed Sep 22 1999 Jeff Johnson <jbj@redhat.com>
cvsdist 1d1e2d7
- rusers init script started rstatd.
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Mon Sep 20 1999 Jeff Johnson <jbj@redhat.com>
cvsdist 1d1e2d7
- (re-)initialize number of users (#5244).
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Fri Aug 27 1999 Preston Brown <pbrown@redhat.com>
cvsdist 1d1e2d7
- initscripts check for portmapper running before starting (#2615)
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Fri Aug 27 1999 Jeff Johnson <jbj@redhat.com>
cvsdist 1d1e2d7
- return monitoring statistics like solaris does (#4237).
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Thu Aug 26 1999 Jeff Johnson <jbj@redhat.com>
cvsdist 1d1e2d7
- update to netkit-0.15.
cvsdist 1d1e2d7
- on startup, rpc.rstatd needs to read information twice (#3994).
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
cvsdist 1d1e2d7
- initscript munging
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Tue Apr  6 1999 Jeff Johnson <jbj@redhat.com>
cvsdist 1d1e2d7
- add rpc.rstatd (#2000)
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist 1d1e2d7
- auto rebuild in the new build environment (release 22)
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
cvsdist 1d1e2d7
- compile for 6.0.
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Tue May 05 1998 Cristian Gafton <gafton@redhat.com>
cvsdist 1d1e2d7
- added /etc/rc.d/init.d/functions to the init script
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Tue May 05 1998 Prospector System <bugs@redhat.com>
cvsdist 1d1e2d7
- translations modified for de, fr, tr
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Sat May 02 1998 Cristian Gafton <gafton@redhat.com>
cvsdist 1d1e2d7
- enhanced initscript
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
cvsdist 1d1e2d7
- added init script
cvsdist 1d1e2d7
- users %attr
cvsdist 1d1e2d7
- supports chkconfig
cvsdist 1d1e2d7
cvsdist 1d1e2d7
* Tue Jul 15 1997 Erik Troan <ewt@redhat.com>
cvsdist 1d1e2d7
- initial build