rusers-vl.spec 9.8 KB

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