dd0f574
Summary: Displays who is logged in to local network machines
cvsdist 0e40a6a
Name: rwho
cvsdist 0e40a6a
Version: 0.17
ecf812f
Release: 36%{?dist}
cvsdist 0e40a6a
License: BSD
cvsdist 0e40a6a
Group: System Environment/Daemons
cvsdist dd92e7c
Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-rwho-%{version}.tar.gz
ecf812f
Source1: rwhod.service
cvsdist 0e40a6a
Patch0: netkit-rwho-0.15-alpha.patch
cvsdist dd92e7c
Patch1: netkit-rwho-0.17-bug22014.patch
cvsdist dd92e7c
Patch2: rwho-0.17-fixbcast.patch
cvsdist dd92e7c
Patch3: rwho-0.17-fixhostname.patch
cvsdist c0478d0
Patch4: netkit-rwho-0.17-strip.patch
a737d7c
Patch5: netkit-rwho-0.17-include.patch
a737d7c
Patch6: netkit-rwho-0.17-wd_we.patch
a737d7c
Patch7: netkit-rwho-0.17-time.patch
5766545
Patch8: netkit-rwho-0.17-gcc4.patch
f2cf306
Patch9: netkit-rwho-0.17-waitchild.patch
b8f0f74
Patch10: netkit-rwho-0.17-neighbours.patch
cvsdist 0e40a6a
Requires: /sbin/chkconfig /etc/init.d
ecf812f
Requires(post): systemd-units
ecf812f
Requires(preun): systemd-units
ecf812f
Requires(postun): systemd-units
ecf812f
Requires(post): systemd-sysv
ecf812f
BuildRequires: systemd-units
cvsdist 0e40a6a
BuildRoot: %{_tmppath}/%{name}-root
cvsdist 0e40a6a
cvsdist 0e40a6a
%description
cvsdist 0e40a6a
The rwho command displays output similar to the output of the who
cvsdist 0e40a6a
command (it shows who is logged in) for all machines on the local
cvsdist 0e40a6a
network running the rwho daemon.
cvsdist 0e40a6a
cvsdist 0e40a6a
Install the rwho command if you need to keep track of the users who
cvsdist 0e40a6a
are logged in to your local network.
cvsdist 0e40a6a
cvsdist 0e40a6a
%prep
cvsdist dd92e7c
%setup -q -n netkit-rwho-%{version}
cvsdist 0e40a6a
%patch0 -p1 -b .alpha
cvsdist dd92e7c
%patch1 -p1 -b .bug22014
cvsdist dd92e7c
%patch2 -p1 -b .fixbcast
cvsdist dd92e7c
%patch3 -p1 -b .fixhostname
cvsdist c0478d0
%patch4 -p1 -b .strip
a737d7c
%patch5 -p1 -b .include
a737d7c
%patch6 -p1 -b .wd_we
a737d7c
%patch7 -p1 -b .time
5766545
%patch8 -p1 -b .gcc4
f2cf306
%patch9 -p1 -b .waitchild
b8f0f74
%patch10 -p1 -b .neighbours
cvsdist 0e40a6a
cvsdist 0e40a6a
%build
cvsdist 4b951ad
sh configure --with-c-compiler=gcc
cvsdist 8e2661e
%ifarch s390 s390x
cvsdist 8e2661e
%{__perl} -pi -e '
cvsdist 0e40a6a
    s,^CC=.*$,CC=cc,;
a737d7c
    s,-O2,\$(RPM_OPT_FLAGS) -I../include -fPIC,;
cvsdist 8e2661e
    s,^LDFLAGS=,LDFLAGS=-pie,;
cvsdist 0e40a6a
    s,^BINDIR=.*$,BINDIR=%{_bindir},;
cvsdist 0e40a6a
    s,^MANDIR=.*$,MANDIR=%{_mandir},;
cvsdist 0e40a6a
    s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
cvsdist 0e40a6a
    ' MCONFIG
cvsdist 8e2661e
%else
cvsdist 8e2661e
%{__perl} -pi -e '
cvsdist 8e2661e
    s,^CC=.*$,CC=cc,;
a737d7c
    s,-O2,\$(RPM_OPT_FLAGS) -I../include -fpic,;
cvsdist 8e2661e
    s,^LDFLAGS=,LDFLAGS=-pie,;
cvsdist 8e2661e
    s,^BINDIR=.*$,BINDIR=%{_bindir},;
cvsdist 8e2661e
    s,^MANDIR=.*$,MANDIR=%{_mandir},;
cvsdist 8e2661e
    s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
cvsdist 8e2661e
    ' MCONFIG
cvsdist 8e2661e
%endif
cvsdist 0e40a6a
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
cvsdist 0e40a6a
cvsdist 0e40a6a
%install
cvsdist 0e40a6a
rm -rf ${RPM_BUILD_ROOT}
cvsdist 0e40a6a
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
cvsdist 0e40a6a
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,8}
cvsdist 0e40a6a
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
ecf812f
mkdir -p ${RPM_BUILD_ROOT}%{_unitdir}
cvsdist 0e40a6a
mkdir -p ${RPM_BUILD_ROOT}/var/spool/rwho
cvsdist 0e40a6a
cvsdist 0e40a6a
make INSTALLROOT=${RPM_BUILD_ROOT} install
cvsdist 0e40a6a
make INSTALLROOT=${RPM_BUILD_ROOT} install -C ruptime
cvsdist 0e40a6a
ecf812f
install -m 755 %SOURCE1 ${RPM_BUILD_ROOT}%{_unitdir}/rwhod.service
cvsdist 0e40a6a
cvsdist 0e40a6a
%clean
cvsdist 0e40a6a
rm -rf ${RPM_BUILD_ROOT}
cvsdist 0e40a6a
cvsdist 0e40a6a
%post
ecf812f
if [ $1 = 1 ]; then
ecf812f
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
ecf812f
fi
ecf812f
ecf812f
# Package with native systemd unit file is installed for the first time
ecf812f
%triggerun -- rwho < 0.17-36
ecf812f
%{_bindir}/systemd-sysv-convert --save rwhod >/dev/null 2>&1 ||:
ecf812f
ecf812f
# Run these because the SysV package being removed won't do them
ecf812f
/sbin/chkconfig --del rwhod >/dev/null 2>&1 || :
ecf812f
/bin/systemctl try-restart rwhod.service >/dev/null 2>&1 || :
cvsdist 0e40a6a
cvsdist 0e40a6a
%preun
cvsdist 0e40a6a
if [ $1 = 0 ]; then
ecf812f
    /bin/systemctl --no-reload disable rwhod.service >/dev/null 2>&1 || :
ecf812f
    /bin/systemctl stop rwhod.service >/dev/null 2>&1 || :
ecf812f
fi
ecf812f
ecf812f
%postun
ecf812f
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
ecf812f
if [ $1 -ge 1 ]; then
ecf812f
    /bin/systemctl try-restart rwhod.service >/dev/null 2>&1 || :
cvsdist 0e40a6a
fi
cvsdist 0e40a6a
cvsdist 0e40a6a
%files
cvsdist 0e40a6a
%defattr(-,root,root)
31f0503
%doc README
cvsdist 0e40a6a
%{_bindir}/ruptime
cvsdist 0e40a6a
%{_mandir}/man1/ruptime.1*
cvsdist 0e40a6a
%{_bindir}/rwho
cvsdist 0e40a6a
%{_mandir}/man1/rwho.1*
cvsdist 0e40a6a
cvsdist 0e40a6a
%{_sbindir}/rwhod
cvsdist 0e40a6a
%{_mandir}/man8/rwhod.8*
cvsdist 0e40a6a
/var/spool/rwho
ecf812f
%{_unitdir}/*
cvsdist 0e40a6a
cvsdist 0e40a6a
%changelog
ecf812f
* Wed Aug 01 2011 Honza Horak <hhorak@redhat.com> - 0.17-36
ecf812f
- added systemd native unit file
ecf812f
b8f0f74
* Thu Jun 02 2011 Honza Horak <hhorak@redhat.com> - 0.17-35
b8f0f74
- applied patch from Ian Donaldson to transmit status reliably
b8f0f74
  (bug #708385)
b8f0f74
fee3d95
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-34
fee3d95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fee3d95
31f0503
* Fri Feb  26 2010 Jiri Moskovcak <jmoskovc@redhat.com> - 0.17-33
31f0503
- added README
31f0503
dd0f574
* Fri Jan  8 2010 Jiri Moskovcak <jmoskovc@redhat.com> - 0.17-32
dd0f574
- fixed rpmlint warnings
dd0f574
7105652
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-31
7105652
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7105652
81966eb
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-30
81966eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
81966eb
cebeb0a
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.17-29
cebeb0a
- Autorebuild for GCC 4.3
cebeb0a
c3e4a90
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.17-28
c3e4a90
- Rebuild for selinux ppc32 issue.
c3e4a90
60e0c86
* Mon Jul 23 2007 Jiri Moskovcak <jmoskovc@redhat.com> - 0.17-27
60e0c86
- Fixed init script to comply with the LSB standard
60e0c86
- Resolves: #247049
60e0c86
f2cf306
* Tue Aug 15 2006 Harald Hoyer <harald@redhat.com> - 0.17-26
f2cf306
- exit daemon, if child process dies (bug #202493)
f2cf306
96f6692
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.17-25.2.2
96f6692
- rebuild
96f6692
a34d766
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.17-25.2.1
a34d766
- bump again for double-long bug on ppc(64)
a34d766
e62a310
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.17-25.2
e62a310
- rebuilt for new gcc4.1 snapshot and glibc changes
e62a310
5a001ed
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
5a001ed
- rebuilt
5a001ed
5766545
* Thu Mar 17 2005 Phil Knirsch <pknirsch@redhat.com> 0.17-25
5766545
- gcc4 rebuild fixes
5766545
0e98e97
* Wed Mar 02 2005 Phil Knirsch <pknirsch@redhat.com> 0.17-24
0e98e97
- bump release and rebuild with gcc 4
0e98e97
a737d7c
* Fri Oct 22 2004 Phil Knirsch <pknirsch@redhat.com> 0.17-23
a737d7c
- Fixed long standig bug with only 42 entries per host showing up (#27643)
a737d7c
- Fixed some warnings of missing prototypes.
a737d7c
cvsdist 136f37c
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 136f37c
- rebuilt
cvsdist 136f37c
cvsdist 8e2661e
* Wed May 12 2004 Phil Knirsch <pknirsch@redhat.com> 0.17-21
cvsdist 8e2661e
- Enabled PIE for server and application.
cvsdist 8e2661e
cvsdist 7f71af8
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 7f71af8
- rebuilt
cvsdist 7f71af8
cvsdist c8bc497
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist c8bc497
- rebuilt
cvsdist c8bc497
cvsdist dc30173
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist dc30173
- rebuilt
cvsdist dc30173
cvsdist dc30173
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 0.17-17
cvsdist dc30173
- rebuild on all arches
cvsdist dc30173
cvsdist d87dc9d
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist d87dc9d
- automated rebuild
cvsdist d87dc9d
cvsdist c0478d0
* Wed Jun 19 2002 Phil Knirsch <pknirsch@redhat.com> 0.17-15
cvsdist c0478d0
- Don't forcibly strip binaries
cvsdist c0478d0
cvsdist c0478d0
* Tue Jun 04 2002 Phil Knirsch <pknirsch@redhat.com>
cvsdist c0478d0
- bumped release number and rebuild
cvsdist c0478d0
cvsdist c0478d0
* Thu May 23 2002 Tim Powers <timp@redhat.com>
cvsdist c0478d0
- automated rebuild
cvsdist c0478d0
cvsdist c0478d0
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
cvsdist c0478d0
- automated rebuild
cvsdist c0478d0
cvsdist 4b951ad
* Wed Apr  4 2001 Jakub Jelinek <jakub@redhat.com>
cvsdist 4b951ad
- don't let configure to guess compiler, it can pick up egcs
cvsdist 4b951ad
cvsdist dd92e7c
* Tue Feb 13 2001 Preston Brown <pbrown@redhat.com>
cvsdist dd92e7c
- hostname was getting null terminated incorrectly.  fixed. (#27419)
cvsdist dd92e7c
cvsdist dd92e7c
* Mon Feb  5 2001 Bernhard Rosenkraenzer <bero@redhat.com>
cvsdist dd92e7c
- i18nize init script (#26083)
cvsdist dd92e7c
cvsdist dd92e7c
* Fri Feb  2 2001 Preston Brown <pbrown@redhat.com>
cvsdist dd92e7c
- don't bcast on virtual interfaces (#20435).  Patch from dwagoner@interTrust.com; thanks.
cvsdist dd92e7c
cvsdist dd92e7c
* Wed Dec 27 2000 Jeff Johnson <jhbj@redhat.com>
cvsdist dd92e7c
- use glibc's <protocols/rwhod.h>, internal version broken on alpha (#22014).
cvsdist dd92e7c
cvsdist 0e40a6a
* Thu Aug 10 2000 Bill Nottingham <notting@redhat.com>
cvsdist 0e40a6a
- fix broken init script
cvsdist 0e40a6a
cvsdist 0e40a6a
* Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
cvsdist 0e40a6a
- condrestart fixes
cvsdist 0e40a6a
cvsdist 0e40a6a
* Thu Jul 20 2000 Bill Nottingham <notting@redhat.com>
cvsdist 0e40a6a
- move initscript back
cvsdist 0e40a6a
cvsdist 0e40a6a
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist 0e40a6a
- automatic rebuild
cvsdist 0e40a6a
cvsdist 0e40a6a
* Mon Jul 10 2000 Preston Brown <pbrown@redhat.com>
cvsdist 0e40a6a
- move initscript
cvsdist 0e40a6a
cvsdist 0e40a6a
* Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 0e40a6a
- FHS packaging.
cvsdist 0e40a6a
- update to 0.17.
cvsdist 0e40a6a
cvsdist 0e40a6a
* Mon Feb  7 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 0e40a6a
- compress man pages.
cvsdist 0e40a6a
cvsdist 0e40a6a
* Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com>
cvsdist 0e40a6a
- update to 0.16.
cvsdist 0e40a6a
cvsdist 0e40a6a
* Thu Sep 09 1999 Preston Brown <pbrown@redhat.com>
cvsdist 0e40a6a
- postun should have been preun.
cvsdist 0e40a6a
cvsdist 0e40a6a
* Thu Aug 26 1999 Jeff Johnson <jbj@redhat.com>
cvsdist 0e40a6a
- fix unaligned trap on alpha.
cvsdist 0e40a6a
- update to 0.15.
cvsdist 0e40a6a
cvsdist 0e40a6a
* Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
cvsdist 0e40a6a
- initscript munging
cvsdist 0e40a6a
cvsdist 0e40a6a
* Fri Apr  9 1999 Jeff Johnson <jbj@redhat.com>
cvsdist 0e40a6a
- add ruptime (#2023)
cvsdist 0e40a6a
cvsdist 0e40a6a
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist 0e40a6a
- auto rebuild in the new build environment (release 22)
cvsdist 0e40a6a
cvsdist 0e40a6a
* Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
cvsdist 0e40a6a
- compile for 6.0.
cvsdist 0e40a6a
cvsdist 0e40a6a
* Tue May 05 1998 Prospector System <bugs@redhat.com>
cvsdist 0e40a6a
- translations modified for de, fr, tr
cvsdist 0e40a6a
cvsdist 0e40a6a
* Sat May 02 1998 Cristian Gafton <gafton@redhat.com>
cvsdist 0e40a6a
- enhanced initscripts
cvsdist 0e40a6a
cvsdist 0e40a6a
* Mon Nov 03 1997 Donnie Barnes <djb@redhat.com>
cvsdist 0e40a6a
- added /var/spool/rwho
cvsdist 0e40a6a
cvsdist 0e40a6a
* Fri Oct 31 1997 Donnie Barnes <djb@redhat.com>
cvsdist 0e40a6a
- fixed init script
cvsdist 0e40a6a
cvsdist 0e40a6a
* Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
cvsdist 0e40a6a
- added an init script
cvsdist 0e40a6a
- uses chkconfig
dd0f574
- uses attr tags
cvsdist 0e40a6a
cvsdist 0e40a6a
* Tue Jul 15 1997 Erik Troan <ewt@redhat.com>
cvsdist 0e40a6a
- initial build