rwho-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. Summary: Displays who is logged in to local network machines.
  2. Summary(ja): ローカルネットワーク機に誰がログインしているか表示する
  3. Name: rwho
  4. Version: 0.17
  5. Release: 26%{?_dist_release}
  6. License: BSD
  7. Group: Applications/Internet
  8. Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit-devel/netkit-rwho-%{version}.tar.gz
  9. Source1: rwhod.init
  10. Patch0: netkit-rwho-0.15-alpha.patch
  11. Patch1: netkit-rwho-0.17-bug22014.patch
  12. Patch2: rwho-0.17-fixbcast.patch
  13. Patch3: rwho-0.17-fixhostname.patch
  14. Patch4: netkit-rwho-0.17-strip.patch
  15. Patch5: netkit-rwho-0.17-include.patch
  16. Patch6: netkit-rwho-0.17-wd_we.patch
  17. Patch7: netkit-rwho-0.17-time.patch
  18. Patch8: netkit-rwho-0.17-gcc4.patch
  19. Patch9: netkit-rwho-0.17-getloadavg.patch
  20. #Requires: /sbin/chkconfig /etc/init.d
  21. Requires: /sbin/chkconfig
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. %description
  24. The rwho command displays output similar to the output of the who
  25. command (it shows who is logged in) for all machines on the local
  26. network running the rwho daemon.
  27. Install the rwho command if you need to keep track of the users who
  28. are logged in to your local network.
  29. %description -l ja
  30. rwho コマンドは who コマンド (誰がログインしているかを表示します) の
  31. 出力に似た表示をするプログラムで,rwho デーモンが動作しているローカル
  32. ネットワーク上の全マシンの情報を出力します.
  33. あなたのローカルネットワーク上のマシンに誰がログインしているかを
  34. 知りたい場合は rwho コマンドをインストールして下さい.
  35. %prep
  36. %setup -q -n netkit-rwho-%{version}
  37. %patch0 -p1 -b .alpha
  38. %patch1 -p1 -b .bug22014
  39. %patch2 -p1 -b .fixbcast
  40. %patch3 -p1 -b .fixhostname
  41. %patch4 -p1 -b .strip
  42. %patch9 -p0 -b .getloadavg
  43. %build
  44. sh configure
  45. perl -pi -e '
  46. s,^CC=.*$,CC=cc,;
  47. s,-O2,\$(RPM_OPT_FLAGS),;
  48. s,^BINDIR=.*$,BINDIR=%{_bindir},;
  49. s,^MANDIR=.*$,MANDIR=%{_mandir},;
  50. s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
  51. ' MCONFIG
  52. make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
  53. %install
  54. rm -rf ${RPM_BUILD_ROOT}
  55. mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
  56. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,8}
  57. mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
  58. mkdir -p ${RPM_BUILD_ROOT}%{_initdir}
  59. mkdir -p ${RPM_BUILD_ROOT}/var/spool/rwho
  60. make INSTALLROOT=${RPM_BUILD_ROOT} install
  61. make INSTALLROOT=${RPM_BUILD_ROOT} install -C ruptime
  62. install -m 755 $RPM_SOURCE_DIR/rwhod.init ${RPM_BUILD_ROOT}%{_initdir}/rwhod
  63. %clean
  64. rm -rf ${RPM_BUILD_ROOT}
  65. %post
  66. /sbin/chkconfig --add rwhod
  67. %preun
  68. if [ $1 = 0 ]; then
  69. /sbin/chkconfig --del rwhod
  70. fi
  71. %files
  72. %defattr(-,root,root)
  73. %{_bindir}/ruptime
  74. %{_mandir}/man1/ruptime.1*
  75. %{_bindir}/rwho
  76. %{_mandir}/man1/rwho.1*
  77. %{_sbindir}/rwhod
  78. %{_mandir}/man8/rwhod.8*
  79. /var/spool/rwho
  80. %config %{_initdir}/rwhod
  81. %changelog
  82. * Fri Oct 10 2008 Shu KONNO <owa@bg.wakwak.com> 0.17-26vl5
  83. - added netkit-rwho-0.17-getloadavg.patch
  84. - applied new versioning policy, spec in utf-8
  85. * Mon Jul 16 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-19vl1
  86. - added Patch5, 6, 7 and 8 from Fedora 0.17-25.2.1
  87. * Thu Mar 17 2005 Phil Knirsch <pknirsch@redhat.com> 0.17-25
  88. - gcc4 rebuild fixes
  89. * Fri Oct 22 2004 Phil Knirsch <pknirsch@redhat.com> 0.17-23
  90. - Fixed long standig bug with only 42 entries per host showing up (#27643)
  91. - Fixed some warnings of missing prototypes.
  92. * Wed May 12 2004 Phil Knirsch <pknirsch@redhat.com> 0.17-21
  93. - Enabled PIE for server and application.
  94. - changed Group to Applications/Internet
  95. * Mon Jul 16 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-19vl1
  96. - based on Redhat Rawhide 0.17-19
  97. - added Patch2, 3 and 4
  98. - rebuild with new toolchains
  99. * Wed Jan 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  100. - 0.17-7vl1
  101. - based on 0.17-7 from Rawhide
  102. - use better macros (%%{_initdir})
  103. - added Japanese summary and description
  104. * Wed Dec 27 2000 Jeff Johnson <jhbj@redhat.com>
  105. - use glibc's <protocols/rwhod.h>, internal version broken on alpha (#22014).
  106. * Thu Aug 10 2000 Bill Nottingham <notting@redhat.com>
  107. - fix broken init script
  108. * Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
  109. - condrestart fixes
  110. * Thu Jul 20 2000 Bill Nottingham <notting@redhat.com>
  111. - move initscript back
  112. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  113. - automatic rebuild
  114. * Mon Jul 10 2000 Preston Brown <pbrown@redhat.com>
  115. - move initscript
  116. * Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
  117. - FHS packaging.
  118. - update to 0.17.
  119. * Mon Feb 7 2000 Jeff Johnson <jbj@redhat.com>
  120. - compress man pages.
  121. * Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com>
  122. - update to 0.16.
  123. * Thu Sep 09 1999 Preston Brown <pbrown@redhat.com>
  124. - postun should have been preun.
  125. * Thu Aug 26 1999 Jeff Johnson <jbj@redhat.com>
  126. - fix unaligned trap on alpha.
  127. - update to 0.15.
  128. * Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
  129. - initscript munging
  130. * Fri Apr 9 1999 Jeff Johnson <jbj@redhat.com>
  131. - add ruptime (#2023)
  132. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  133. - auto rebuild in the new build environment (release 22)
  134. * Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
  135. - compile for 6.0.
  136. * Tue May 05 1998 Prospector System <bugs@redhat.com>
  137. - translations modified for de, fr, tr
  138. * Sat May 02 1998 Cristian Gafton <gafton@redhat.com>
  139. - enhanced initscripts
  140. * Mon Nov 03 1997 Donnie Barnes <djb@redhat.com>
  141. - added /var/spool/rwho
  142. * Fri Oct 31 1997 Donnie Barnes <djb@redhat.com>
  143. - fixed init script
  144. * Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
  145. - added an init script
  146. - uses chkconfig
  147. - uses %attr tags
  148. * Tue Jul 15 1997 Erik Troan <ewt@redhat.com>
  149. - initial build