rsh-vl.spec 13 KB

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