source: projects/specs/trunk/r/rusers/rusers-vl.spec @ 9292

Revision 9292, 9.8 KB checked in by inagaki, 9 years ago (diff)

2015-01-25 Ryoichi INAGAKI <ryo1@…>

  • gnutls, scim-bridge: rebuilt
  • rusers, rwho: added patches


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