ftp-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. %bcond_with readline
  2. Name: ftp
  3. Version: 0.17
  4. Release: 36%{?_dist_release}
  5. Summary: The standard UNIX FTP (File Transfer Protocol) client.
  6. Summary(ja): 標準的な UNIX FTP (ファイル転送プロトコル) クライアント
  7. Group: Applications/Internet
  8. License: BSD with advertising
  9. URL: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit
  10. Source0: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-ftp-%{version}.tar.bz2
  11. Patch1: netkit-ftp-0.17-pre20000412.pasv-security.patch
  12. Patch2: netkit-ftp-0.17-acct.patch
  13. Patch3: netkit-ftp.usagi-ipv6.patch
  14. Patch4: netkit-ftp-0.17-segv.patch
  15. Patch5: netkit-ftp-0.17-volatile.patch
  16. Patch6: netkit-ftp-0.17-runique_mget.patch
  17. Patch7: netkit-ftp-locale.patch
  18. Patch8: netkit-ftp-0.17-printf.patch
  19. Patch9: netkit-ftp-0.17-longint.patch
  20. Patch10: netkit-ftp-0.17-vsftp165083.patch
  21. Patch11: netkit-ftp-0.17-C-Frame121.patch
  22. Patch12: netkit-ftp-0.17-data.patch
  23. Patch13: netkit-ftp-0.17-multihome.patch
  24. Patch14: netkit-ftp-0.17-longnames.patch
  25. Patch15: netkit-ftp-0.17-multiipv6.patch
  26. Patch16: netkit-ftp-0.17-nodebug.patch
  27. Patch17: netkit-ftp-0.17-stamp.patch
  28. Patch18: netkit-ftp-0.17-sigseg.patch
  29. Patch19: netkit-ftp-0.17-size.patch
  30. Patch20: netkit-ftp-0.17-fdleak.patch
  31. Patch21: netkit-ftp-0.17-fprintf.patch
  32. Patch22: netkit-ftp-0.17-bitrate.patch
  33. Patch23: netkit-ftp-0.17-arg_max.patch
  34. Patch24: netkit-ftp-0.17-case.patch
  35. Patch25: netkit-ftp-0.17-chkmalloc.patch
  36. Patch26: netkit-ftp-0.17-man.patch
  37. Patch27: netkit-ftp-0.17-acct_ovl.patch
  38. Patch28: netkit-ftp-0.17-remove-nested-include.patch
  39. Patch29: netkit-ftp-0.17-linelen.patch
  40. Patch30: netkit-ftp-0.17-active-mode-option.patch
  41. Patch31: netkit-ftp-0.17-commands-leaks.patch
  42. Patch32: netkit-ftp-0.17-lsn-timeout.patch
  43. Patch33: netkit-ftp-0.17-getlogin.patch
  44. Patch34: netkit-ftp-0.17-token.patch
  45. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  46. BuildRequires: glibc-devel
  47. BuildRequires: ncurses-devel
  48. %if %{with readline}
  49. BuildRequires: readline-devel
  50. %endif
  51. %description
  52. The ftp package provides the standard UNIX command-line FTP (File
  53. Transfer Protocol) client. FTP is a widely used protocol for
  54. transferring files over the Internet and for archiving files.
  55. If your system is on a network, you should install ftp in order to do
  56. file transfers.
  57. %description -l ja
  58. この ftp パッケージは標準的な UNIX コマンドラインベースの FTP (フ
  59. ァイル転送プロトコル) クライアントです。FTP はインターネット経由で
  60. ファイルを転送したり、ファイルを格納したりするのに広く使われている
  61. プロトコルです。
  62. もしあなたのシステムがネットワークに接続されていて、そこにファイ
  63. ルを転送したい場合は、このパッケージをインストールして下さい。
  64. %prep
  65. %setup -q -n netkit-ftp-%{version}
  66. %patch1 -p1
  67. %patch2 -p1 -b .acct
  68. %patch3 -p1 -b .ipv6
  69. %patch4 -p1 -b .segv
  70. %patch5 -p1 -b .volatile
  71. %patch6 -p1 -b .runique_mget
  72. %patch7 -p1 -b .locale
  73. %patch8 -p1 -b .printf
  74. %patch9 -p1 -b .longint
  75. %patch10 -p1 -b .vsftp165083
  76. %patch11 -p1 -b .C-Frame121
  77. %patch12 -p1 -b .data
  78. %patch13 -p1 -b .multihome
  79. %patch14 -p1 -b .patch
  80. %patch15 -p1 -b .multiipv6
  81. %patch16 -p1 -b .nodebug
  82. %patch17 -p1 -b .stamp
  83. %patch18 -p1 -b .sigseg
  84. %patch19 -p1 -b .size
  85. %patch20 -p1 -b .fdleak
  86. %patch21 -p1 -b .fprintf
  87. %patch22 -p1 -b .bitrate
  88. %patch23 -p1 -b .arg_max
  89. %patch24 -p1 -b .case
  90. %patch25 -p1 -b .chkmalloc
  91. %patch26 -p1 -b .man
  92. %patch27 -p1 -b .acct_ovl
  93. %patch28 -p1
  94. %patch29 -p1 -b .linelen
  95. %patch30 -p1 -b .activemode
  96. %patch31 -p1 -b .cmds-leaks
  97. %patch32 -p1 -b .lsn-timeout
  98. %patch33 -p1 -b .getlogin
  99. %patch34 -p1 -b .token
  100. %build
  101. ./configure \
  102. --with-c-compiler=gcc \
  103. --enable-ipv6 \
  104. %if %{without readline}
  105. --without-readline \
  106. %endif
  107. ;
  108. perl -pi -e '
  109. s,^CC=.*$,CC=cc,;
  110. s,-O2,\$(RPM_OPT_FLAGS) -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64,;
  111. s,^BINDIR=.*$,BINDIR=%{_bindir},;
  112. s,^MANDIR=.*$,MANDIR=%{_mandir},;
  113. s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
  114. ' MCONFIG
  115. make %{?_smp_mflags}
  116. %install
  117. rm -rf ${RPM_BUILD_ROOT}
  118. mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
  119. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
  120. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man5
  121. make INSTALLROOT=${RPM_BUILD_ROOT} install
  122. %clean
  123. rm -rf ${RPM_BUILD_ROOT}
  124. %files
  125. %defattr(-,root,root)
  126. %{_bindir}/ftp
  127. %{_bindir}/pftp
  128. %{_mandir}/man1/ftp.*
  129. %{_mandir}/man1/pftp.*
  130. %{_mandir}/man5/netrc.*
  131. %changelog
  132. * Sun Mar 22 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.17-36
  133. - built without readline to avoid GPL infection
  134. - added Patch27-34 from Fedora
  135. * Tue Oct 30 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-63
  136. - Fix buffer overflow in token parsing
  137. - Resolves: #871296
  138. * Tue Oct 30 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-62
  139. - Fix linelen patch
  140. - Resolves: #871290
  141. * Wed Oct 03 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-61
  142. - Fix: FTP client does not expand home directory correctly after sudo or su
  143. - Resolves: #861113
  144. * Tue Sep 25 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-60
  145. - Plug leaks in "put", "send", "append"
  146. - Add listening timeout
  147. * Tue Aug 28 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-59
  148. - Add active mode option
  149. * Fri Aug 03 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-58
  150. - Extend the input line buffer and the argument storage buffer
  151. - Prettify spec some more and remove trailing space
  152. * Fri Jul 20 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-57
  153. - Remove nested include (fix compilation in rawhide)
  154. * Fri Sep 09 2011 Jiri Skala <jskala@redhat.com> - 0.17-54
  155. - fixes #737016 - ftp: off-by-one in account command parsing
  156. * Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.17-35
  157. - rebuild with VineSeed environment
  158. * Sun Apr 10 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-34
  159. - rebuilt with current VineSeed
  160. - added Patch14-26
  161. * Tue Mar 29 2011 Jiri Skala <jskala@redhat.com> - 0.17-53
  162. - fixes #673850 - ftp(1) manpage fixes
  163. * Mon Dec 01 2008 Jiri Skala <jskala@redhat.com> - 0.17-49
  164. - Resolves: #473491 unchecked malloc
  165. * Wed Apr 23 2008 Martin Nagy <mnagy@redhat.com> - 0.17-48
  166. - fix mget when using case
  167. - Resolves: #442712
  168. * Mon Apr 07 2008 Martin Nagy <mnagy@redhat.com> - 0.17-47
  169. - Use sysconf to get ARG_MAX instead of a macro (#440782)
  170. * Mon Jan 28 2008 Marcela Maslanova <mmaslano@redhat.com> - 0.17-45
  171. - changed bitrate from 1e+03 KBytes/sec to 1000 kBytes/sec
  172. - Resolves: rhbz#430457
  173. * Thu Nov 15 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-44
  174. - using fprintf instead of printf
  175. * Mon Oct 22 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-43
  176. - feature: for cmd size is switching to TYPE_I automatized
  177. - bug: ftp leaks socket fds when it fails to open a file (#315241)
  178. - rhbz#306191
  179. * Tue Aug 07 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-41
  180. - #251074 add patch from Jan Kratochvil
  181. * Mon Feb 7 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-38
  182. - rhbz#225774
  183. * Tue Jan 30 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-35
  184. - nodebug package
  185. * Wed Aug 2 2006 Marcela Maslanova <mmaslano@redhat.com> - 0.17-32.1.2.4
  186. - fix (#199145) patch for IPv6 multihome
  187. * Thu Jul 25 2006 Marcela Maslanova <mmaslano@redhat.com> - 0.17-32.1.2.3
  188. - fix (#196103) patch for long filenames
  189. * Tue Aug 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-33
  190. - rebuilt with readline 5.2
  191. - applied new versioning policy
  192. - spec in UTF-8
  193. * Sat Apr 15 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-32vl1
  194. - rebuilt with readline 5.1
  195. - added patches(9-13) from Fedora
  196. * Thu Jan 12 2006 Petr Raszyk <praszyk@redhat.com> - 0.17-32
  197. - support for multi-homed clients
  198. See #171621, netkit-ftp-0.17-multihome.patch
  199. * Fri Dec 2 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-31
  200. - ftp does not close socket descriptor (if the remote file
  201. does not exist).
  202. See #174599, netkit-ftp-0.17-data.patch
  203. * Wed Oct 26 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-30
  204. - The patch netkit-ftp-0.17-C-Frame121.patch adds some
  205. comments/hints for C-Frame 121. It can be removed any time.
  206. * Tue Aug 30 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-28
  207. - This 'hack' will avoid a bug in ftp-server
  208. ( < vsftpd-2.0.1-5 ). See #165083 (server prints the
  209. '150 FILE:...' line twice).
  210. This patch can be (later ?) removed.
  211. * Mon Aug 22 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-27
  212. - overflow using 'hash mode' (printing '#' but
  213. not reading data from network - #79367)
  214. * Sat May 28 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-26vl1
  215. - added patches from Fedora
  216. * Tue May 24 2005 Miloslav Trmac <mitr@redhat.com> - 0.17-26
  217. - Fix passive mode with SELinux (#158234, patch by Nalin Dahyabhai)
  218. - Fix format string mismatch
  219. * Wed Dec 15 2004 Tim Waugh <twaugh@redhat.com>
  220. - Call setlocale() so that readline works correctly (bug #142265).
  221. * Tue Dec 7 2004 Thomas Woerner <twoerner@redhat.com> 0.17-23
  222. - fixed mget with runique (#79367)
  223. * Mon Jun 14 2004 Alan Cox <alan@redhat.com>
  224. - Re-arranged some totally bogus old bezerkly code that could
  225. segfault ftp on connection loss. (BZ #122295)
  226. - added Japanese summary and description from spec translation project
  227. * Wed Apr 02 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.17-15vl2
  228. - rebuild with readline-4.3
  229. * Wed Dec 04 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.17-15vl1
  230. - based on 0.17-15 from Rawhide and built for Vine Linux
  231. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  232. - automated rebuild
  233. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  234. - automated rebuild
  235. * Fri Apr 12 2002 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-13
  236. - Recompile with support for files > 2 GB
  237. * Mon Jun 25 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-12
  238. - Add some Build dependencies (#45007)
  239. * Fri May 18 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-11
  240. - Actually apply Patch #3
  241. * Fri May 11 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-10
  242. - Rebuild with new readline
  243. * Sun Apr 15 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  244. - Add IPv6 patch (RFE #35642)
  245. * Wed Apr 4 2001 Jakub Jelinek <jakub@redhat.com>
  246. - don't let configure to guess compiler, it can pick up egcs
  247. * Sun Jan 21 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  248. - Update to 0.17 final
  249. - Fix up ACCT support in netrc (Bug #17353)
  250. * Wed Aug 16 2000 Philipp Knirsch <pknirsch@redhat.com>
  251. - Switched the default transfer protocol from PORT to PASV as proposed on
  252. bugzilla (#16134)
  253. - Fixed a small compiler warning in ftp.c line 886
  254. * Fri Jul 14 2000 Jeff Johnson <jbj@redhat.com>
  255. - add netrc man page (#7443).
  256. - fix possible buffer overflows in ftp client.
  257. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  258. - automatic rebuild
  259. * Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
  260. - FHS packaging.
  261. - update to 0.17-pre20000412.
  262. * Wed Apr 5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  263. - rebuild with current libreadline
  264. * Fri Mar 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  265. - 0.17
  266. * Fri Feb 4 2000 Bill Nottingham <notting@redhat.com>
  267. - handle compressed man pages
  268. * Tue Jan 4 2000 Bill Nottingham <notting@redhat.com>
  269. - the ftp client does not require inetd
  270. * Wed Dec 22 1999 Jeff Johnson <jbj@redhat.com>
  271. - update to 0.16.
  272. * Mon Aug 30 1999 Jeff Johnson <jbj@redhat.com>
  273. - update to 0.15.
  274. - enable readline support (#3796).
  275. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  276. - auto rebuild in the new build environment (release 22)
  277. * Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
  278. - compile for 6.0.
  279. * Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
  280. - build root
  281. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  282. - translations modified for de, fr, tr