ftp-vl.spec 9.4 KB

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