rsh-vl.spec 14 KB

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