1 | Summary: Displays who is logged in to local network machines. |
---|
2 | Summary(ja): ローカルネットワーク機に誰がログインしているか表示する |
---|
3 | Name: rwho |
---|
4 | Version: 0.17 |
---|
5 | Release: 55%{?_dist_release} |
---|
6 | |
---|
7 | # part of rwhod is under GPL+, other parts are under BSD |
---|
8 | License: BSD and GPL+ |
---|
9 | Group: System Environment/Daemons |
---|
10 | |
---|
11 | Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit-devel/netkit-rwho-%{version}.tar.gz |
---|
12 | Source1: rwhod.init |
---|
13 | Patch0: netkit-rwho-0.15-alpha.patch |
---|
14 | Patch1: netkit-rwho-0.17-bug22014.patch |
---|
15 | Patch2: rwho-0.17-fixbcast.patch |
---|
16 | Patch3: rwho-0.17-fixhostname.patch |
---|
17 | Patch4: netkit-rwho-0.17-strip.patch |
---|
18 | Patch5: netkit-rwho-0.17-include.patch |
---|
19 | Patch6: netkit-rwho-0.17-wd_we.patch |
---|
20 | Patch7: netkit-rwho-0.17-time.patch |
---|
21 | Patch8: netkit-rwho-0.17-gcc4.patch |
---|
22 | Patch9: rwho-0.17-waitchild.patch |
---|
23 | Patch10: rwho-0.17-neighbours.patch |
---|
24 | Patch11: rwho-0.17-hostnamelen.patch |
---|
25 | Patch12: rwho-0.17-stderr.patch |
---|
26 | |
---|
27 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
28 | #Requires: /sbin/chkconfig /etc/init.d |
---|
29 | Requires: /sbin/chkconfig |
---|
30 | |
---|
31 | |
---|
32 | %description |
---|
33 | The rwho command displays output similar to the output of the who |
---|
34 | command (it shows who is logged in) for all machines on the local |
---|
35 | network running the rwho daemon. |
---|
36 | |
---|
37 | Install the rwho command if you need to keep track of the users who |
---|
38 | are logged in to your local network. |
---|
39 | |
---|
40 | %description -l ja |
---|
41 | rwho コマンドは who コマンド (誰がログインしているかを表示します) の |
---|
42 | 出力に似た表示をするプログラムで,rwho デーモンが動作しているローカル |
---|
43 | ネットワーク上の全マシンの情報を出力します. |
---|
44 | |
---|
45 | あなたのローカルネットワーク上のマシンに誰がログインしているかを |
---|
46 | 知りたい場合は rwho コマンドをインストールして下さい. |
---|
47 | |
---|
48 | |
---|
49 | %prep |
---|
50 | %setup -q -n netkit-rwho-%{version} |
---|
51 | %patch0 -p1 -b .alpha |
---|
52 | %patch1 -p1 -b .bug22014 |
---|
53 | %patch2 -p1 -b .fixbcast |
---|
54 | %patch3 -p1 -b .fixhostname |
---|
55 | %patch4 -p1 -b .strip |
---|
56 | %patch5 -p1 -b .include |
---|
57 | %patch6 -p1 -b .wd_we |
---|
58 | %patch7 -p1 -b .time |
---|
59 | %patch8 -p1 -b .gcc4 |
---|
60 | %patch9 -p1 -b .waitchild |
---|
61 | %patch10 -p1 -b .neighbours |
---|
62 | %patch11 -p1 -b .hostnamelen |
---|
63 | %patch12 -p1 -b .stderr |
---|
64 | |
---|
65 | %{__perl} -pi -e ' |
---|
66 | s|^LDFLAGS=|LDFLAGS="-pie -Wl,-z,relro,-z,now"|; |
---|
67 | s,^BINDIR=.*$,BINDIR=%{_bindir},; |
---|
68 | s,^MANDIR=.*$,MANDIR=%{_mandir},; |
---|
69 | s,^SBINDIR=.*$,SBINDIR=%{_sbindir},; |
---|
70 | ' configure |
---|
71 | |
---|
72 | %build |
---|
73 | CFLAGS="$RPM_OPT_FLAGS -I../include -fPIC" \ |
---|
74 | sh configure --with-c-compiler=gcc |
---|
75 | make %{?_smp_mflags} |
---|
76 | |
---|
77 | %install |
---|
78 | rm -rf $RPM_BUILD_ROOT |
---|
79 | mkdir -p $RPM_BUILD_ROOT%{_bindir} |
---|
80 | mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{1,8} |
---|
81 | mkdir -p $RPM_BUILD_ROOT%{_sbindir} |
---|
82 | mkdir -p $RPM_BUILD_ROOT%{_initdir} |
---|
83 | mkdir -p $RPM_BUILD_ROOT/var/spool/rwho |
---|
84 | |
---|
85 | make INSTALLROOT=$RPM_BUILD_ROOT install |
---|
86 | make INSTALLROOT=$RPM_BUILD_ROOT install -C ruptime |
---|
87 | |
---|
88 | install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initdir}/rwhod |
---|
89 | |
---|
90 | |
---|
91 | %clean |
---|
92 | rm -rf $RPM_BUILD_ROOT |
---|
93 | |
---|
94 | |
---|
95 | %post |
---|
96 | /sbin/chkconfig --add rwhod |
---|
97 | |
---|
98 | |
---|
99 | %preun |
---|
100 | if [ $1 = 0 ]; then |
---|
101 | /sbin/chkconfig --del rwhod |
---|
102 | fi |
---|
103 | |
---|
104 | |
---|
105 | %files |
---|
106 | %defattr(-,root,root) |
---|
107 | %doc README |
---|
108 | %{_bindir}/ruptime |
---|
109 | %{_mandir}/man1/ruptime.1* |
---|
110 | %{_bindir}/rwho |
---|
111 | %{_mandir}/man1/rwho.1* |
---|
112 | %{_sbindir}/rwhod |
---|
113 | %{_mandir}/man8/rwhod.8* |
---|
114 | /var/spool/rwho |
---|
115 | %config %{_initdir}/rwhod |
---|
116 | |
---|
117 | |
---|
118 | %changelog |
---|
119 | * Sun Jan 25 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.17-55 |
---|
120 | - added Patch9, 10, 11 and 12 from Fedora 0.17-54 |
---|
121 | * Wed Nov 07 2012 Honza Horak <hhorak@redhat.com> - 0.17-47 |
---|
122 | - Remove linkage against systemd-daemon |
---|
123 | - Print errors into stderr |
---|
124 | * Wed Dec 07 2011 Honza Horak <hhorak@redhat.com> - 0.17-37 |
---|
125 | - allow longer hostnames (bug #212076) |
---|
126 | - add -n option to ruptime manpage |
---|
127 | * Thu Jun 02 2011 Honza Horak <hhorak@redhat.com> - 0.17-35 |
---|
128 | - applied patch from Ian Donaldson to transmit status reliably |
---|
129 | (bug #708385) |
---|
130 | * Tue Aug 15 2006 Harald Hoyer <harald@redhat.com> - 0.17-26 |
---|
131 | - exit daemon, if child process dies (bug #202493) |
---|
132 | - moved to System Environment/Daemons |
---|
133 | |
---|
134 | * Sun May 1 2011 Shu KONNO <owa@bg.wakwak.com> 0.17-27 |
---|
135 | - rebuilt with current VineSeed |
---|
136 | |
---|
137 | * Fri Oct 10 2008 Shu KONNO <owa@bg.wakwak.com> 0.17-26vl5 |
---|
138 | - added netkit-rwho-0.17-getloadavg.patch |
---|
139 | - applied new versioning policy, spec in utf-8 |
---|
140 | |
---|
141 | * Mon Jul 16 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-19vl1 |
---|
142 | - added Patch5, 6, 7 and 8 from Fedora 0.17-25.2.1 |
---|
143 | * Thu Mar 17 2005 Phil Knirsch <pknirsch@redhat.com> 0.17-25 |
---|
144 | - gcc4 rebuild fixes |
---|
145 | * Fri Oct 22 2004 Phil Knirsch <pknirsch@redhat.com> 0.17-23 |
---|
146 | - Fixed long standig bug with only 42 entries per host showing up (#27643) |
---|
147 | - Fixed some warnings of missing prototypes. |
---|
148 | * Wed May 12 2004 Phil Knirsch <pknirsch@redhat.com> 0.17-21 |
---|
149 | - Enabled PIE for server and application. |
---|
150 | - changed Group to Applications/Internet |
---|
151 | |
---|
152 | * Mon Jul 16 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-19vl1 |
---|
153 | - based on Redhat Rawhide 0.17-19 |
---|
154 | - added Patch2, 3 and 4 |
---|
155 | - rebuild with new toolchains |
---|
156 | |
---|
157 | * Wed Jan 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
158 | - 0.17-7vl1 |
---|
159 | - based on 0.17-7 from Rawhide |
---|
160 | - use better macros (%%{_initdir}) |
---|
161 | - added Japanese summary and description |
---|
162 | |
---|
163 | * Wed Dec 27 2000 Jeff Johnson <jhbj@redhat.com> |
---|
164 | - use glibc's <protocols/rwhod.h>, internal version broken on alpha (#22014). |
---|
165 | |
---|
166 | * Thu Aug 10 2000 Bill Nottingham <notting@redhat.com> |
---|
167 | - fix broken init script |
---|
168 | |
---|
169 | * Sat Aug 05 2000 Bill Nottingham <notting@redhat.com> |
---|
170 | - condrestart fixes |
---|
171 | |
---|
172 | * Thu Jul 20 2000 Bill Nottingham <notting@redhat.com> |
---|
173 | - move initscript back |
---|
174 | |
---|
175 | * Wed Jul 12 2000 Prospector <bugzilla@redhat.com> |
---|
176 | - automatic rebuild |
---|
177 | |
---|
178 | * Mon Jul 10 2000 Preston Brown <pbrown@redhat.com> |
---|
179 | - move initscript |
---|
180 | |
---|
181 | * Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com> |
---|
182 | - FHS packaging. |
---|
183 | - update to 0.17. |
---|
184 | |
---|
185 | * Mon Feb 7 2000 Jeff Johnson <jbj@redhat.com> |
---|
186 | - compress man pages. |
---|
187 | |
---|
188 | * Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com> |
---|
189 | - update to 0.16. |
---|
190 | |
---|
191 | * Thu Sep 09 1999 Preston Brown <pbrown@redhat.com> |
---|
192 | - postun should have been preun. |
---|
193 | |
---|
194 | * Thu Aug 26 1999 Jeff Johnson <jbj@redhat.com> |
---|
195 | - fix unaligned trap on alpha. |
---|
196 | - update to 0.15. |
---|
197 | |
---|
198 | * Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> |
---|
199 | - initscript munging |
---|
200 | |
---|
201 | * Fri Apr 9 1999 Jeff Johnson <jbj@redhat.com> |
---|
202 | - add ruptime (#2023) |
---|
203 | |
---|
204 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
205 | - auto rebuild in the new build environment (release 22) |
---|
206 | |
---|
207 | * Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com> |
---|
208 | - compile for 6.0. |
---|
209 | |
---|
210 | * Tue May 05 1998 Prospector System <bugs@redhat.com> |
---|
211 | - translations modified for de, fr, tr |
---|
212 | |
---|
213 | * Sat May 02 1998 Cristian Gafton <gafton@redhat.com> |
---|
214 | - enhanced initscripts |
---|
215 | |
---|
216 | * Mon Nov 03 1997 Donnie Barnes <djb@redhat.com> |
---|
217 | - added /var/spool/rwho |
---|
218 | |
---|
219 | * Fri Oct 31 1997 Donnie Barnes <djb@redhat.com> |
---|
220 | - fixed init script |
---|
221 | |
---|
222 | * Tue Oct 21 1997 Erik Troan <ewt@redhat.com> |
---|
223 | - added an init script |
---|
224 | - uses chkconfig |
---|
225 | - uses %attr tags |
---|
226 | |
---|
227 | * Tue Jul 15 1997 Erik Troan <ewt@redhat.com> |
---|
228 | - initial build |
---|