Summary: Displays who is logged in to local network machines. Summary(ja): ローカルネットワーク機に誰がログインしているか表示する Name: rwho Version: 0.17 Release: 55%{?_dist_release} # part of rwhod is under GPL+, other parts are under BSD License: BSD and GPL+ Group: System Environment/Daemons Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit-devel/netkit-rwho-%{version}.tar.gz Source1: rwhod.init Patch0: netkit-rwho-0.15-alpha.patch Patch1: netkit-rwho-0.17-bug22014.patch Patch2: rwho-0.17-fixbcast.patch Patch3: rwho-0.17-fixhostname.patch Patch4: netkit-rwho-0.17-strip.patch Patch5: netkit-rwho-0.17-include.patch Patch6: netkit-rwho-0.17-wd_we.patch Patch7: netkit-rwho-0.17-time.patch Patch8: netkit-rwho-0.17-gcc4.patch Patch9: rwho-0.17-waitchild.patch Patch10: rwho-0.17-neighbours.patch Patch11: rwho-0.17-hostnamelen.patch Patch12: rwho-0.17-stderr.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root #Requires: /sbin/chkconfig /etc/init.d Requires: /sbin/chkconfig %description The rwho command displays output similar to the output of the who command (it shows who is logged in) for all machines on the local network running the rwho daemon. Install the rwho command if you need to keep track of the users who are logged in to your local network. %description -l ja rwho コマンドは who コマンド (誰がログインしているかを表示します) の 出力に似た表示をするプログラムで,rwho デーモンが動作しているローカル ネットワーク上の全マシンの情報を出力します. あなたのローカルネットワーク上のマシンに誰がログインしているかを 知りたい場合は rwho コマンドをインストールして下さい. %prep %setup -q -n netkit-rwho-%{version} %patch0 -p1 -b .alpha %patch1 -p1 -b .bug22014 %patch2 -p1 -b .fixbcast %patch3 -p1 -b .fixhostname %patch4 -p1 -b .strip %patch5 -p1 -b .include %patch6 -p1 -b .wd_we %patch7 -p1 -b .time %patch8 -p1 -b .gcc4 %patch9 -p1 -b .waitchild %patch10 -p1 -b .neighbours %patch11 -p1 -b .hostnamelen %patch12 -p1 -b .stderr %{__perl} -pi -e ' s|^LDFLAGS=|LDFLAGS="-pie -Wl,-z,relro,-z,now"|; s,^BINDIR=.*$,BINDIR=%{_bindir},; s,^MANDIR=.*$,MANDIR=%{_mandir},; s,^SBINDIR=.*$,SBINDIR=%{_sbindir},; ' configure %build CFLAGS="$RPM_OPT_FLAGS -I../include -fPIC" \ sh configure --with-c-compiler=gcc make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_bindir} mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{1,8} mkdir -p $RPM_BUILD_ROOT%{_sbindir} mkdir -p $RPM_BUILD_ROOT%{_initdir} mkdir -p $RPM_BUILD_ROOT/var/spool/rwho make INSTALLROOT=$RPM_BUILD_ROOT install make INSTALLROOT=$RPM_BUILD_ROOT install -C ruptime install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initdir}/rwhod %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add rwhod %preun if [ $1 = 0 ]; then /sbin/chkconfig --del rwhod fi %files %defattr(-,root,root) %doc README %{_bindir}/ruptime %{_mandir}/man1/ruptime.1* %{_bindir}/rwho %{_mandir}/man1/rwho.1* %{_sbindir}/rwhod %{_mandir}/man8/rwhod.8* /var/spool/rwho %config %{_initdir}/rwhod %changelog * Sun Jan 25 2015 Ryoichi INAGAKI 0.17-55 - added Patch9, 10, 11 and 12 from Fedora 0.17-54 * Wed Nov 07 2012 Honza Horak - 0.17-47 - Remove linkage against systemd-daemon - Print errors into stderr * Wed Dec 07 2011 Honza Horak - 0.17-37 - allow longer hostnames (bug #212076) - add -n option to ruptime manpage * Thu Jun 02 2011 Honza Horak - 0.17-35 - applied patch from Ian Donaldson to transmit status reliably (bug #708385) * Tue Aug 15 2006 Harald Hoyer - 0.17-26 - exit daemon, if child process dies (bug #202493) - moved to System Environment/Daemons * Sun May 1 2011 Shu KONNO 0.17-27 - rebuilt with current VineSeed * Fri Oct 10 2008 Shu KONNO 0.17-26vl5 - added netkit-rwho-0.17-getloadavg.patch - applied new versioning policy, spec in utf-8 * Mon Jul 16 2003 Ryoichi INAGAKI 0.17-19vl1 - added Patch5, 6, 7 and 8 from Fedora 0.17-25.2.1 * Thu Mar 17 2005 Phil Knirsch 0.17-25 - gcc4 rebuild fixes * Fri Oct 22 2004 Phil Knirsch 0.17-23 - Fixed long standig bug with only 42 entries per host showing up (#27643) - Fixed some warnings of missing prototypes. * Wed May 12 2004 Phil Knirsch 0.17-21 - Enabled PIE for server and application. - changed Group to Applications/Internet * Mon Jul 16 2003 Ryoichi INAGAKI 0.17-19vl1 - based on Redhat Rawhide 0.17-19 - added Patch2, 3 and 4 - rebuild with new toolchains * Wed Jan 10 2001 MATSUBAYASHI 'Shaolin' Kohji - 0.17-7vl1 - based on 0.17-7 from Rawhide - use better macros (%%{_initdir}) - added Japanese summary and description * Wed Dec 27 2000 Jeff Johnson - use glibc's , internal version broken on alpha (#22014). * Thu Aug 10 2000 Bill Nottingham - fix broken init script * Sat Aug 05 2000 Bill Nottingham - condrestart fixes * Thu Jul 20 2000 Bill Nottingham - move initscript back * Wed Jul 12 2000 Prospector - automatic rebuild * Mon Jul 10 2000 Preston Brown - move initscript * Sun Jun 18 2000 Jeff Johnson - FHS packaging. - update to 0.17. * Mon Feb 7 2000 Jeff Johnson - compress man pages. * Tue Dec 21 1999 Jeff Johnson - update to 0.16. * Thu Sep 09 1999 Preston Brown - postun should have been preun. * Thu Aug 26 1999 Jeff Johnson - fix unaligned trap on alpha. - update to 0.15. * Mon Aug 16 1999 Bill Nottingham - initscript munging * Fri Apr 9 1999 Jeff Johnson - add ruptime (#2023) * 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 Prospector System - translations modified for de, fr, tr * Sat May 02 1998 Cristian Gafton - enhanced initscripts * Mon Nov 03 1997 Donnie Barnes - added /var/spool/rwho * Fri Oct 31 1997 Donnie Barnes - fixed init script * Tue Oct 21 1997 Erik Troan - added an init script - uses chkconfig - uses %attr tags * Tue Jul 15 1997 Erik Troan - initial build