source: projects/specs/trunk/r/rsh/rsh-vl.spec @ 8952

Revision 8952, 14.2 KB checked in by Takemikaduchi, 10 years ago (diff)

physfs: update to 2.0.3
others: rebuild

Line 
1Summary:     Clients for remote access commands (rsh, rlogin, rcp).
2Summary(ja): リモートアクセスコマンド (rsh, rlogin, rcp) のクライアント
3Name: rsh
4Version: 0.17
5Release: 37%{?_dist_release}
6
7License: BSD
8Group: Applications/Internet
9URL: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit
10
11Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-rsh-%{version}.tar.gz
12Source1: rexec.pam
13Source2: rlogin.pam
14Source3: rsh.pam
15Source4: http://www.tc.cornell.edu/~sadd/rexec-1.5.tar.gz
16Source5: rsh-xinetd
17Source6: rlogin-xinetd
18Source7: rexec-xinetd
19
20Patch1: netkit-rsh-0.17-sectty.patch
21# Make rexec installation process working
22Patch2: netkit-rsh-0.17-rexec.patch
23Patch3: netkit-rsh-0.10-stdarg.patch
24# Improve installation process
25Patch4: netkit-rsh-0.16-jbj.patch
26# Link rshd against libpam
27Patch8: netkit-rsh-0.16-jbj4.patch
28Patch9: netkit-rsh-0.16-prompt.patch
29Patch10: netkit-rsh-0.16-rlogin=rsh.patch
30# Improve documentation
31Patch11: netkit-rsh-0.16-nokrb.patch
32# Remove spurious double-reporting of errors
33Patch12: netkit-rsh-0.17-pre20000412-jbj5.patch
34# RH #42880
35Patch13: netkit-rsh-0.17-userandhost.patch
36# Don't strip binaries during installation
37Patch14: netkit-rsh-0.17-strip.patch
38# RH #67362
39Patch15: netkit-rsh-0.17-lfs.patch
40# RH #57392
41Patch16: netkit-rsh-0.17-chdir.patch
42# RH #63806
43Patch17: netkit-rsh-0.17-pam-nologin.patch
44# RH #135643
45Patch19: netkit-rsh-0.17-rexec-netrc.patch
46# RH #68590
47Patch20: netkit-rsh-0.17-pam-sess.patch
48# RH #67361
49Patch21: netkit-rsh-0.17-errno.patch
50# RH #118630
51Patch22: netkit-rsh-0.17-rexec-sig.patch
52# RH #135827
53Patch23: netkit-rsh-0.17-nohost.patch
54# RH #122315
55Patch24: netkit-rsh-0.17-ignchld.patch
56# RH #146464
57Patch25: netkit-rsh-0.17-checkdir.patch
58Patch26: netkit-rsh-0.17-pam-conv.patch
59# RH #174045
60Patch27: netkit-rsh-0.17-rcp-largefile.patch
61# RH #174146
62Patch28: netkit-rsh-0.17-pam-rhost.patch
63# RH #178916
64Patch29: netkit-rsh-0.17-rlogin-linefeed.patch
65Patch30: netkit-rsh-0.17-ipv6.patch
66Patch31: netkit-rsh-0.17-pam_env.patch
67Patch33: netkit-rsh-0.17-dns.patch
68Patch34: netkit-rsh-0.17-nohostcheck-compat.patch
69# RH #448904
70Patch35: netkit-rsh-0.17-audit.patch
71Patch36: netkit-rsh-0.17-longname.patch
72# RH #440867
73Patch37: netkit-rsh-0.17-arg_max.patch
74Patch38: netkit-rsh-0.17-rh448904.patch
75Patch39: netkit-rsh-0.17-rh461903.patch
76Patch40: netkit-rsh-0.17-rh473492.patch
77Patch41: netkit-rsh-0.17-rh650119.patch
78
79BuildRoot: %{_tmppath}/%{name}-%{version}-root
80BuildRequires: perl
81BuildRequires: ncurses-devel
82BuildRequires: pam-devel
83BuildRequires: audit-libs-devel
84#BuildRequires: libtermcap-devel
85
86%description
87The rsh package contains a set of programs which allow users to run
88commmands on remote machines, login to other machines and copy files
89between machines (rsh, rlogin and rcp).  All three of these commands
90use rhosts style authentication.  This package contains the clients
91needed for all of these services.
92The rsh package should be installed to enable remote access to other
93machines.
94
95%description -l ja
96rsh パッケージにはリモートマシン上でコマンドを実行させたり (rsh),
97他のマシンにログインしたり (rlogin),マシン間でファイルをコピーしたり
98(rcp) するプログラムが収められています.この3つのコマンドは全て
99rhosts スタイルの認証形式をとります.このパッケージにはこれらの
100サービスに必要なクライアントプログラムが収められています.
101他のマシンの遠隔操作を可能にする為には rsh パッケージをインストール
102して下さい.
103
104
105%package server
106Summary: Servers for remote access commands (rsh, rlogin, rcp).
107Summary(ja): リモートアクセスコマンド (rsh, rlogin, rcp) のサーバ
108Group: System Environment/Daemons
109#Requires: pam >= 0.59, /etc/pam.d/system-auth
110Requires: pam >= 0.72
111Requires: xinetd
112
113%description server
114The rsh-server package contains a set of programs which allow users
115to run commmands on remote machines, login to other machines and copy
116files between machines (rsh, rlogin and rcp).  All three of these
117commands use rhosts style authentication.  This package contains the
118servers needed for all of these services.  It also contains a server
119for rexec, an alternate method of executing remote commands.
120All of these servers are run by inetd and configured using
121/etc/inetd.conf and PAM.  The rexecd server is disabled by default,
122but the other servers are enabled.
123
124The rsh-server package should be installed to enable remote access
125from other machines.
126
127%description server -l ja
128rsh-server パッケージにはリモートマシン上でコマンドを実行させたり (rsh),
129他のマシンにログインしたり (rlogin),マシン間でファイルをコピーしたり
130(rcp) するプログラムが収められています.この3つのコマンドは全て
131rhosts スタイルの認証形式をとります.このパッケージにはこれらの
132サービスに必要なサーバプログラムが収められています.その他
133rexec という別の種類のリモートコマンド実行の為のサーバも収められています.
134これらサーバは全て inetd から起動し,/etc/inetd.conf や PAM を介して
135設定を行います.rexecd サーバはデフォルトでは起動しませんが,
136他のサーバはデフォルトで起動する様になっています.
137
138他のマシンから遠隔操作を可能にする為には rsh-server パッケージを
139インストールして下さい.
140
141
142%prep
143%setup -q -n netkit-rsh-%{version} -a 4
144%patch1 -p1 -b .sectty
145%patch2 -p1 -b .rexec
146%patch3 -p1 -b .stdarg
147%patch4 -p1 -b .jbj
148%patch8 -p1 -b .jbj4
149%patch9 -p1 -b .prompt
150%patch10 -p1 -b .rsh
151%patch11 -p1 -b .rsh.nokrb
152%patch12 -p1 -b .jbj5
153%patch13 -p1 -b .userandhost
154%patch14 -p1 -b .strip
155%patch15 -p1 -b .lfs
156%patch16 -p1 -b .chdir
157%patch17 -p1 -b .pam-nologin
158%patch19 -p1 -b .rexec-netrc
159%patch20 -p1 -b .pam-sess
160%patch21 -p1 -b .errno
161%patch22 -p1 -b .rexec-sig
162%patch23 -p1 -b .nohost
163%patch24 -p1 -b .ignchld
164%patch25 -p1 -b .checkdir
165%patch26 -p1 -b .pam-conv
166%patch27 -p1 -b .largefile
167%patch28 -p1 -b .pam-rhost
168%patch29 -p1 -b .linefeed
169%patch30 -p1 -b .ipv6
170%patch31 -p1 -b .pam_env
171%patch33 -p1 -b .dns
172%patch34 -p1 -b .compat
173%patch35 -p1 -b .audit
174%patch36 -p1 -b .longname
175%patch37 -p1 -b .arg_max
176%patch38 -p1 -b .rh448904
177%patch39 -p1 -b .rh461903
178%patch40 -p1 -b .rh473492
179%patch41 -p1 -b .rh650119
180
181# No, I don't know what this is doing in the tarball.
182rm -f rexec/rexec
183
184
185%build
186sh configure --with-c-compiler=gcc
187perl -pi -e '
188    s,^CC=.*$,CC=cc,;
189    s,-O2,\$(RPM_OPT_FLAGS) -fpic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE,;
190    s,^LDFLAGS=,LDFLAGS=-pie,;
191    s,^BINDIR=.*$,BINDIR=%{_bindir},;
192    s,^MANDIR=.*$,MANDIR=%{_mandir},;
193    s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
194    ' MCONFIG
195
196make %{?_smp_mfalgs}
197
198
199%install
200rm -rf ${RPM_BUILD_ROOT}
201mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
202mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
203mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,5,8}
204mkdir -p ${RPM_BUILD_ROOT}/etc/pam.d
205
206make INSTALLROOT=${RPM_BUILD_ROOT} BINDIR=%{_bindir} MANDIR=%{_mandir} install
207
208install -m 644 $RPM_SOURCE_DIR/rexec.pam ${RPM_BUILD_ROOT}/etc/pam.d/rexec
209install -m 644 $RPM_SOURCE_DIR/rlogin.pam ${RPM_BUILD_ROOT}/etc/pam.d/rlogin
210install -m 644 $RPM_SOURCE_DIR/rsh.pam ${RPM_BUILD_ROOT}/etc/pam.d/rsh
211
212mkdir -p ${RPM_BUILD_ROOT}/etc/xinetd.d/
213install -m644 %SOURCE5 ${RPM_BUILD_ROOT}/etc/xinetd.d/rsh
214install -m644 %SOURCE6 ${RPM_BUILD_ROOT}/etc/xinetd.d/rlogin
215install -m644 %SOURCE7 ${RPM_BUILD_ROOT}/etc/xinetd.d/rexec
216
217%clean
218rm -rf ${RPM_BUILD_ROOT}
219
220
221%files
222%defattr(-,root,root)
223%attr(4755,root,root)   %{_bindir}/rcp
224%{_bindir}/rexec
225%attr(4755,root,root)   %{_bindir}/rlogin
226%attr(4755,root,root)   %{_bindir}/rsh
227%{_mandir}/man1/*.1*
228
229%files server
230%defattr(-,root,root)
231%config /etc/pam.d/rsh
232%config /etc/pam.d/rlogin
233%config /etc/pam.d/rexec
234%{_sbindir}/in.rexecd
235%{_sbindir}/in.rlogind
236%{_sbindir}/in.rshd
237/etc/xinetd.d/*
238%{_mandir}/man8/*.8*
239
240
241%changelog
242* Mon Sep 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.17-37
243- rebuild with VineSeed environment
244
245* Sun Apr 10 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-36
246- rebuilt with current VineSeed
247- added Patch38-41 from Fedora
248  * Mon Nov 09 2010 Adam Tkac <atkac redhat com> - 0.17-64
249  - fix typo in rexec.c (#650119)
250  * Tue Jan 5 2010 Jan Gorig  <jgorig redhat com> - 0.17-62
251  - add check for return values (#473492)
252  * Thu Mar 26 2009 Adam Tkac <atkac redhat com> 0.17-53
253  - check return value from close to catch errors on NFS filesystems (#461903)
254  * Fri Oct 03 2008 Adam Tkac <atkac redhat com> 0.17-51
255  - make in.rshd working on kernels without audit support (#448904)
256
257* Sun Sep 07 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.17-35
258- new versioning policy, spec in UTF-8
259- import Patch3[0-7] from fedora
260
261* Thu Jun 29 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-34vl1
262- added Patches from Fedora 0.17-34.1
263  * Thu Feb  9 2006 Karel Zak <kzak@redhat.com> 0.17-34
264  - fix #178916 - Line feeds when password needs changing with rlogin
265  * Mon Nov 28 2005 Karel Zak <kzak@redhat.com> 0.17-33
266  - fix #174146 - pam_access.so does not work with rexecd
267  * Thu Nov 24 2005 Karel Zak <kzak@redhat.com> 0.17-32
268  - fix #174045 - rcp outputs negative file size when over 2GB
269
270* Sun Feb 20 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-28vl1
271- based on Redhat Rawhide 0.17-28
272  * Thu Feb  3 2005 Karel Zak <kzak@redhat.com> 0.17-28
273  - malicious rcp server can cause rcp to write to arbitrary files
274    (like scp CAN-2004-0175) (#146464)
275  * Mon Dec  6 2004 Karel Zak <kzak@redhat.com> 0.17-27
276  - removed BSD stuff "signal(SIGCHLD, SIG_IGN)". It's unsupported
277    by POSIX/linux. (#122315)
278  * Wed Nov 17 2004 Karel Zak <kzak@redhat.com> 0.17-25
279  - rexecd uses PAM session now (#68590)
280  - fixed errno usage in rcp (#67361)
281  - fixed  rexec fails with "Invalid Argument" (#118630)
282  * Mon Oct 18 2004 Radek Vokal <rvokal@redhat.com> 0.17-24
283  - The username and password for ~/.netrc are used (#135643)
284  * Thu Feb  5 2004 Thomas Woerner <twoerner@redhat.com> 0.17-20
285  - in.rexecd, in.rlogind and in.rshd are pie, now
286  * Tue Oct 21 2003 Phil Knirsch <pknirsch@redhat.com> 0.17-19
287  - Included updated patch from #105733.
288  * Thu Oct 02 2003 Phil Knirsch <pknirsch@redhat.com> 0.17-18
289  - Fixed YAT (#79391).
290  - Included feature request #105733 (-D option).
291
292* Mon Jun 16 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-15vl1
293- based on Redhat Rawhide 0.17-15
294  - replaced Patch2, Patch3 and Patch14 by newer ones
295  - added Patch15, Patch16
296- rebuild with new toolchains
297- to use License instead of Copyright
298
299* Thu Jan 18 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
300- 0.17-2.4vl2
301- Requires: /etc/pam.d/system-auth -> pam >= 0.72 for rsh-server
302
303* Wed Jan 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
304- 0.17-2.4vl1
305- based on 0.17-2.4 from Rawhide
306- added Japanese summary and description
307
308* Tue Oct 10 2000 Nalin Dahyabhai <nalin@redhat.com>
309- fix PAM config files to always honor nologin and securetty, to use rhosts,
310  and to fall back to password auth only for rlogin and rexec (#17183)
311- add references to pam_env to the PAM configs as well (#16170)
312- disable rlogin and rsh by default
313
314* Mon Oct 02 2000 Nalin Dahyabhai <nalin@redhat.com>
315- fix typo in the rexec xinetd configuration file (#18107)
316
317* Fri Jul 21 2000 Nalin Dahyabhai <nalin@redhat.com>
318- fix typo in the rlogin PAM config file
319- continue the tradition of messed-up release numbers
320
321* Tue Jul 18 2000 Bill Nottingham <notting@redhat.com>
322- add description & default to xinetd file
323
324* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
325- automatic rebuild
326
327* Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
328- FHS packaging.
329- update to 0.17.
330
331* Thu Jun  1 2000 Nalin Dahyabhai <nalin@redhat.com>
332- modify PAM setup to use system-auth
333
334* Mon May 29 2000 Nalin Dahyabhai <nalin@redhat.com>
335- expunge all mentions of kerberos authentication or DES encryption using
336  kerberos from the man pages
337
338* Thu May 25 2000 Trond Eivind Glomsr <teg@redhat.com>
339- switched to xinetd
340
341* Tue Mar  7 2000 Jeff Johnson <jbj@redhat.com>
342- rebuild for sparc baud rates > 38400.
343
344* Sat Mar 04 2000 Nalin Dahyabhai <nalin@redhat.com>
345- make rlogin still work correctly when argv[0] = "rsh"
346
347* Mon Feb 28 2000 Jeff Johnson <jbj@redhat.com>
348- workaround (by explicitly prompting for password) #4328 and #9715.
349
350* Wed Feb  9 2000 Jeff Johnson <jbj@redhat.com>
351- mark pam config files as %config.
352
353* Fri Feb  4 2000 Bill Nottingham <notting@redhat.com>
354- handle compressed manpages
355
356* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
357- fix description
358
359* Sun Jan 30 2000 Bill Nottingham <notting@redhat.com>
360- remove bogus rexec binary when building; it causes weirdness
361
362* Fri Jan 28 2000 Jeff Johnson <jbj@redhat.com>
363- Make sure that rshd is compiled with -DUSE_PAM.
364
365* Mon Jan 10 2000 Jeff Johnson <jbj@redhat.com>
366- Fix bug in rshd (hangs forever with zombie offspring) (#8313).
367
368* Wed Jan  5 2000 Jeff Johnson <jbj@redhat.com>
369- fix the PAM fix yet again (#8133).
370
371* Tue Jan  4 2000 Bill Nottingham <notting@redhat.com>
372- split client and server
373
374* Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com>
375- update to 0.16.
376- dup setuid bits into files list.
377
378* Fri Jul 30 1999 Jeff Johnson <jbj@redhat.com>
379- update to rexec-1.5 client (#4262)
380
381* Wed May 19 1999 Jeff Johnson <jbj@redhat.com>
382- fix broken rexec protocol in in.rexecd (#2318).
383
384* Tue May  4 1999 Justin Vallon <vallon@mindspring.com>
385- rcp with error was tricked by stdarg side effect (#2300)
386
387* Thu Apr 15 1999 Michael K. Johnson <johnsonm@redhat.com>
388- rlogin pam file was missing comment magic
389
390* Tue Apr 06 1999 Preston Brown <pbrown@redhat.com>
391- strip rexec
392
393* Fri Mar 26 1999 Jeff Johnson <jbj@redhat.com>
394- rexec needs pam_set_item() (#60).
395- clarify protocol in rexecd.8.
396- add rexec client from contrib.
397
398* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
399- auto rebuild in the new build environment (release 22)
400
401* Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
402- compile for 6.0.
403
404* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
405- translations modified for de, fr, tr
406
407* Tue Apr 14 1998 Erik Troan <ewt@redhat.com>
408- built against new ncurses
409
410* Sun Apr  5 1998 Marcelo F. Vianna <m-vianna@usa.net>
411- Packaged for RH5.0 (Hurricane)
412
413* Tue Oct 14 1997 Michael K. Johnson <johnsonm@redhat.com>
414- new pam conventions
415
416* Tue Jul 15 1997 Erik Troan <ewt@redhat.com>
417- initial build
Note: See TracBrowser for help on using the repository browser.