rusers-vl.spec 9.0 KB

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