rwho-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. Summary: Displays who is logged in to local network machines.
  2. Summary(ja): ローカルネットワーク機に誰がログインしているか表示する
  3. Name: rwho
  4. Version: 0.17
  5. Release: 27%{?_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. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. #Requires: /sbin/chkconfig /etc/init.d
  22. Requires: /sbin/chkconfig
  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. %doc README
  74. %{_bindir}/ruptime
  75. %{_mandir}/man1/ruptime.1*
  76. %{_bindir}/rwho
  77. %{_mandir}/man1/rwho.1*
  78. %{_sbindir}/rwhod
  79. %{_mandir}/man8/rwhod.8*
  80. /var/spool/rwho
  81. %config %{_initdir}/rwhod
  82. %changelog
  83. * Sun May 1 2011 Shu KONNO <owa@bg.wakwak.com> 0.17-27
  84. - rebuilt with current VineSeed
  85. * Fri Oct 10 2008 Shu KONNO <owa@bg.wakwak.com> 0.17-26vl5
  86. - added netkit-rwho-0.17-getloadavg.patch
  87. - applied new versioning policy, spec in utf-8
  88. * Mon Jul 16 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-19vl1
  89. - added Patch5, 6, 7 and 8 from Fedora 0.17-25.2.1
  90. * Thu Mar 17 2005 Phil Knirsch <pknirsch@redhat.com> 0.17-25
  91. - gcc4 rebuild fixes
  92. * Fri Oct 22 2004 Phil Knirsch <pknirsch@redhat.com> 0.17-23
  93. - Fixed long standig bug with only 42 entries per host showing up (#27643)
  94. - Fixed some warnings of missing prototypes.
  95. * Wed May 12 2004 Phil Knirsch <pknirsch@redhat.com> 0.17-21
  96. - Enabled PIE for server and application.
  97. - changed Group to Applications/Internet
  98. * Mon Jul 16 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-19vl1
  99. - based on Redhat Rawhide 0.17-19
  100. - added Patch2, 3 and 4
  101. - rebuild with new toolchains
  102. * Wed Jan 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  103. - 0.17-7vl1
  104. - based on 0.17-7 from Rawhide
  105. - use better macros (%%{_initdir})
  106. - added Japanese summary and description
  107. * Wed Dec 27 2000 Jeff Johnson <jhbj@redhat.com>
  108. - use glibc's <protocols/rwhod.h>, internal version broken on alpha (#22014).
  109. * Thu Aug 10 2000 Bill Nottingham <notting@redhat.com>
  110. - fix broken init script
  111. * Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
  112. - condrestart fixes
  113. * Thu Jul 20 2000 Bill Nottingham <notting@redhat.com>
  114. - move initscript back
  115. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  116. - automatic rebuild
  117. * Mon Jul 10 2000 Preston Brown <pbrown@redhat.com>
  118. - move initscript
  119. * Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
  120. - FHS packaging.
  121. - update to 0.17.
  122. * Mon Feb 7 2000 Jeff Johnson <jbj@redhat.com>
  123. - compress man pages.
  124. * Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com>
  125. - update to 0.16.
  126. * Thu Sep 09 1999 Preston Brown <pbrown@redhat.com>
  127. - postun should have been preun.
  128. * Thu Aug 26 1999 Jeff Johnson <jbj@redhat.com>
  129. - fix unaligned trap on alpha.
  130. - update to 0.15.
  131. * Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
  132. - initscript munging
  133. * Fri Apr 9 1999 Jeff Johnson <jbj@redhat.com>
  134. - add ruptime (#2023)
  135. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  136. - auto rebuild in the new build environment (release 22)
  137. * Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
  138. - compile for 6.0.
  139. * Tue May 05 1998 Prospector System <bugs@redhat.com>
  140. - translations modified for de, fr, tr
  141. * Sat May 02 1998 Cristian Gafton <gafton@redhat.com>
  142. - enhanced initscripts
  143. * Mon Nov 03 1997 Donnie Barnes <djb@redhat.com>
  144. - added /var/spool/rwho
  145. * Fri Oct 31 1997 Donnie Barnes <djb@redhat.com>
  146. - fixed init script
  147. * Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
  148. - added an init script
  149. - uses chkconfig
  150. - uses %attr tags
  151. * Tue Jul 15 1997 Erik Troan <ewt@redhat.com>
  152. - initial build