rusers-vl.spec 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. Summary: Displays the users logged into machines on the local network.
  2. Summary(ja): ローカルネットワーク上のマシンにログインしたユーザを表示する
  3. Name: rusers
  4. Version: 0.17
  5. Release: 47%{?_dist_release}
  6. License: BSD
  7. Group: Applications/Internet
  8. Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit-devel/netkit-rusers-%{version}.tar.gz
  9. Source1: rusersd.init
  10. Source2: rstatd.tar.gz
  11. Source3: rstatd.init
  12. Patch0: rstatd-jbj.patch
  13. Patch1: netkit-rusers-0.15-numusers.patch
  14. Patch2: netkit-rusers-0.17-2.4.patch
  15. Patch3: netkit-rusers-0.17-includes.patch
  16. Patch4: netkit-rusers-0.17-truncate.patch
  17. Patch5: netkit-rusers-0.17-stats.patch
  18. Patch6: netkit-rusers-0.17-rstatd-no-static-buffer.patch
  19. Patch7: netkit-rusers-0.17-strip.patch
  20. Patch8: netkit-rusers-0.17-rup.patch
  21. Patch9: netkit-rusers-0.17-rup-timeout.patch
  22. Patch10: netkit-rusers-0.17-procps.patch
  23. Patch11: netkit-rusers-0.17-rup-stack.patch
  24. Patch12: netkit-rusers-0.17-bigendian.patch
  25. Patch13: netkit-rusers-0.17-return.patch
  26. Buildroot: %{_tmppath}/%{name}-%{version}-root
  27. BuildRequires: procps
  28. %description
  29. The rusers program allows users to find out who is logged into various
  30. machines on the local network. The rusers command produces output
  31. similar to who, but for the specified list of hosts or for all
  32. machines on the local network.
  33. Install rusers if you need to keep track of who is logged into your
  34. local network.
  35. %description -l ja
  36. rusers プログラムを使うとローカルネットワーク上の様々なマシンに
  37. 誰がログインしているかを調べることが出来ます.rusers コマンドは
  38. who に似た出力をしますが,引数で指定したホストあるいはローカル
  39. ネットワーク上の全ホストの情報を出力するところが異なります.
  40. ローカルネットワークで誰がログインしているかを調べるには
  41. rusers パッケージをインストールして下さい.
  42. %package server
  43. Summary: Server for the rusers protocol.
  44. Summary(ja): rusers プロトコルのサーバ
  45. Group: System Environment/Daemons
  46. #Prereq: /sbin/chkconfig /etc/init.d
  47. Prereq: /sbin/chkconfig
  48. Requires: portmap
  49. %description server
  50. The rusers program allows users to find out who is logged into various
  51. machines on the local network. The rusers command produces output
  52. similar to who, but for the specified list of hosts or for all
  53. machines on the local network. The rusers-server package contains the
  54. server for responding to rusers requests.
  55. Install rusers-server if you want remote users to be able to see
  56. who is logged into your machine.
  57. %description server -l ja
  58. rusers プログラムを使うとローカルネットワーク上の様々なマシンに
  59. 誰がログインしているかを調べることが出来ます.rusers コマンドは
  60. who に似た出力をしますが,引数で指定したホストあるいはローカル
  61. ネットワーク上の全ホストの情報を出力するところが異なります.
  62. この rusers-server パッケージには rusers のリクエストに答える
  63. サーバが含まれています.
  64. 遠隔ユーザがあなたのマシンに誰がログインしているかを調べることが
  65. 出来る様にするには,rusers-server パッケージをインストールして下さい.
  66. %prep
  67. %setup -q -n netkit-rusers-%{version} -a 2
  68. %patch0 -p1 -b .jbj
  69. %patch1 -p1 -b .numusers
  70. %patch2 -p1 -b .2.4
  71. %patch3 -p1 -b .includes
  72. %patch4 -p1 -b .truncate
  73. %patch5 -p1 -b .stats
  74. %patch6 -p1 -b .rstatd-no-static-buffer
  75. %patch7 -p1 -b .strip
  76. %patch8 -p1 -b .rup
  77. %patch9 -p1 -b .rup-timeout
  78. %patch10 -p1 -b .procps
  79. %patch11 -p1 -b .rup-stack
  80. %patch12 -p1 -b .bigendian
  81. %patch13 -p1 -b .return
  82. %build
  83. sh configure
  84. perl -pi -e '
  85. s,^CC=.*$,CC=cc,;
  86. s,-O2,\$(RPM_OPT_FLAGS),;
  87. s,^BINDIR=.*$,BINDIR=%{_bindir},;
  88. s,^MANDIR=.*$,MANDIR=%{_mandir},;
  89. s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
  90. ' MCONFIG
  91. make
  92. make -C rpc.rstatd
  93. %install
  94. rm -rf ${RPM_BUILD_ROOT}
  95. mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
  96. mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
  97. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,8}
  98. mkdir -p ${RPM_BUILD_ROOT}%{_initdir}
  99. make INSTALLROOT=${RPM_BUILD_ROOT} install
  100. make INSTALLROOT=${RPM_BUILD_ROOT} install -C rpc.rstatd
  101. install -m 755 $RPM_SOURCE_DIR/rusersd.init ${RPM_BUILD_ROOT}%{_initdir}/rusersd
  102. install -m 755 $RPM_SOURCE_DIR/rstatd.init ${RPM_BUILD_ROOT}%{_initdir}/rstatd
  103. %clean
  104. rm -rf ${RPM_BUILD_ROOT}
  105. %post server
  106. /sbin/chkconfig --add rusersd
  107. /sbin/chkconfig --add rstatd
  108. %preun server
  109. if [ $1 = 0 ]; then
  110. /sbin/chkconfig --del rusersd
  111. /sbin/chkconfig --del rstatd
  112. fi
  113. %files
  114. %defattr(-,root,root)
  115. %{_bindir}/rup
  116. %{_bindir}/rusers
  117. %{_mandir}/man1/*
  118. %files server
  119. %defattr(-,root,root)
  120. %{_mandir}/man8/*
  121. %{_sbindir}/rpc.rstatd
  122. %{_sbindir}/rpc.rusersd
  123. %config %{_initdir}/rusersd
  124. %config %{_initdir}/rstatd
  125. %changelog
  126. * Fri Oct 10 2008 Shu KONNO <owa@bg.wakwak.com> 0.17-47vl5
  127. - applied new versioning policy, spec in utf-8
  128. * Sun Jun 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-46vl1
  129. - added Patch 10, 11, 12 and 13 from Fedora 0.17-46
  130. * Tue Mar 21 2006 Phil Knirsch <pknirsch@redhat.com> - 0.17-46
  131. - Included fix for correct return values for rup (#177419)
  132. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.17-45.2.1
  133. - bump again for double-long bug on ppc(64)
  134. * Wed Sep 07 2005 Phil Knirsch <pknirsch@redhat.com> 0.17-45
  135. - Fixed 64bit bigendian problem in rpc.rstatd (#130286)
  136. * Wed May 04 2005 Phil Knirsch <pknirsch@redhat.com> 0.17-44
  137. - Fixed rup stack problem (#154396)
  138. * Mon Jul 12 2004 Phil Knirsch <pknirsch@redhat.com> 0.17-40
  139. - Made patch to make rpc.rstatd independant of procps (#127512)
  140. - changed Group to Applications/Internet
  141. * Mon Jul 16 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-30vl1
  142. - based on Redhat Rawhide 0.17-30
  143. - rebuild with new toolchains
  144. - to use License instead of Copyright
  145. * Wed Jan 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  146. - 0.17-6vl1
  147. - based on 0.17-6 from Rawhide
  148. - use better macros (%%{_initdir})
  149. - added Japanese summary and description
  150. * Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
  151. - condrestart fixes
  152. * Thu Jul 20 2000 Bill Nottingham <notting@redhat.com>
  153. - move initscript back
  154. * Sun Jul 16 2000 Matt Wilson <msw@redhat.com>
  155. - rebuilt against new procps
  156. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  157. - automatic rebuild
  158. * Mon Jul 10 2000 Preston Brown <pbrown@redhat.com>
  159. - move initscripts
  160. * Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
  161. - FHS packaging.
  162. - update to 0.17.
  163. * Wed Feb 9 2000 Jeff Johnson <jbj@redhat.com>
  164. - compress man pages (again).
  165. * Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
  166. - fix description and summary
  167. - man pages are compressed
  168. * Tue Jan 4 2000 Bill Nottingham <notting@redhat.com>
  169. - split client and server
  170. * Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com>
  171. - update to 0.16.
  172. * Wed Nov 10 1999 Bill Nottingham <notting@redhat.com>
  173. - rebuild against new procps
  174. * Wed Sep 22 1999 Jeff Johnson <jbj@redhat.com>
  175. - rusers init script started rstatd.
  176. * Mon Sep 20 1999 Jeff Johnson <jbj@redhat.com>
  177. - (re-)initialize number of users (#5244).
  178. * Fri Aug 27 1999 Preston Brown <pbrown@redhat.com>
  179. - initscripts check for portmapper running before starting (#2615)
  180. * Fri Aug 27 1999 Jeff Johnson <jbj@redhat.com>
  181. - return monitoring statistics like solaris does (#4237).
  182. * Thu Aug 26 1999 Jeff Johnson <jbj@redhat.com>
  183. - update to netkit-0.15.
  184. - on startup, rpc.rstatd needs to read information twice (#3994).
  185. * Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
  186. - initscript munging
  187. * Tue Apr 6 1999 Jeff Johnson <jbj@redhat.com>
  188. - add rpc.rstatd (#2000)
  189. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  190. - auto rebuild in the new build environment (release 22)
  191. * Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
  192. - compile for 6.0.
  193. * Tue May 05 1998 Cristian Gafton <gafton@redhat.com>
  194. - added /etc/rc.d/init.d/functions to the init script
  195. * Tue May 05 1998 Prospector System <bugs@redhat.com>
  196. - translations modified for de, fr, tr
  197. * Sat May 02 1998 Cristian Gafton <gafton@redhat.com>
  198. - enhanced initscript
  199. * Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
  200. - added init script
  201. - users %attr
  202. - supports chkconfig
  203. * Tue Jul 15 1997 Erik Troan <ewt@redhat.com>
  204. - initial build