ftp-vl.spec 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. Name: ftp
  2. Summary: The standard UNIX FTP (File Transfer Protocol) client.
  3. Summary(ja): 標準的な UNIX FTP (ファイル転送プロトコル) クライアント
  4. Version: 0.17
  5. Release: 35%{?_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. * Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.17-35
  106. - rebuild with VineSeed environment
  107. * Sun Apr 10 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-34
  108. - rebuilt with current VineSeed
  109. - added Patch14-26
  110. * Tue Mar 29 2011 Jiri Skala <jskala@redhat.com> - 0.17-53
  111. - fixes #673850 - ftp(1) manpage fixes
  112. * Mon Dec 01 2008 Jiri Skala <jskala@redhat.com> - 0.17-49
  113. - Resolves: #473491 unchecked malloc
  114. * Wed Apr 23 2008 Martin Nagy <mnagy@redhat.com> - 0.17-48
  115. - fix mget when using case
  116. - Resolves: #442712
  117. * Mon Apr 07 2008 Martin Nagy <mnagy@redhat.com> - 0.17-47
  118. - Use sysconf to get ARG_MAX instead of a macro (#440782)
  119. * Mon Jan 28 2008 Marcela Maslanova <mmaslano@redhat.com> - 0.17-45
  120. - changed bitrate from 1e+03 KBytes/sec to 1000 kBytes/sec
  121. - Resolves: rhbz#430457
  122. * Thu Nov 15 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-44
  123. - using fprintf instead of printf
  124. * Mon Oct 22 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-43
  125. - feature: for cmd size is switching to TYPE_I automatized
  126. - bug: ftp leaks socket fds when it fails to open a file (#315241)
  127. - rhbz#306191
  128. * Tue Aug 07 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-41
  129. - #251074 add patch from Jan Kratochvil
  130. * Mon Feb 7 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-38
  131. - rhbz#225774
  132. * Tue Jan 30 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-35
  133. - nodebug package
  134. * Wed Aug 2 2006 Marcela Maslanova <mmaslano@redhat.com> - 0.17-32.1.2.4
  135. - fix (#199145) patch for IPv6 multihome
  136. * Thu Jul 25 2006 Marcela Maslanova <mmaslano@redhat.com> - 0.17-32.1.2.3
  137. - fix (#196103) patch for long filenames
  138. * Tue Aug 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-33
  139. - rebuilt with readline 5.2
  140. - applied new versioning policy
  141. - spec in UTF-8
  142. * Sat Apr 15 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-32vl1
  143. - rebuilt with readline 5.1
  144. - added patches(9-13) from Fedora
  145. * Thu Jan 12 2006 Petr Raszyk <praszyk@redhat.com> - 0.17-32
  146. - support for multi-homed clients
  147. See #171621, netkit-ftp-0.17-multihome.patch
  148. * Fri Dec 2 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-31
  149. - ftp does not close socket descriptor (if the remote file
  150. does not exist).
  151. See #174599, netkit-ftp-0.17-data.patch
  152. * Wed Oct 26 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-30
  153. - The patch netkit-ftp-0.17-C-Frame121.patch adds some
  154. comments/hints for C-Frame 121. It can be removed any time.
  155. * Tue Aug 30 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-28
  156. - This 'hack' will avoid a bug in ftp-server
  157. ( < vsftpd-2.0.1-5 ). See #165083 (server prints the
  158. '150 FILE:...' line twice).
  159. This patch can be (later ?) removed.
  160. * Mon Aug 22 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-27
  161. - overflow using 'hash mode' (printing '#' but
  162. not reading data from network - #79367)
  163. * Sat May 28 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.17-26vl1
  164. - added patches from Fedora
  165. * Tue May 24 2005 Miloslav Trmac <mitr@redhat.com> - 0.17-26
  166. - Fix passive mode with SELinux (#158234, patch by Nalin Dahyabhai)
  167. - Fix format string mismatch
  168. * Wed Dec 15 2004 Tim Waugh <twaugh@redhat.com>
  169. - Call setlocale() so that readline works correctly (bug #142265).
  170. * Tue Dec 7 2004 Thomas Woerner <twoerner@redhat.com> 0.17-23
  171. - fixed mget with runique (#79367)
  172. * Mon Jun 14 2004 Alan Cox <alan@redhat.com>
  173. - Re-arranged some totally bogus old bezerkly code that could
  174. segfault ftp on connection loss. (BZ #122295)
  175. - added Japanese summary and description from spec translation project
  176. * Wed Apr 02 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.17-15vl2
  177. - rebuild with readline-4.3
  178. * Wed Dec 04 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.17-15vl1
  179. - based on 0.17-15 from Rawhide and built for Vine Linux
  180. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  181. - automated rebuild
  182. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  183. - automated rebuild
  184. * Fri Apr 12 2002 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-13
  185. - Recompile with support for files > 2 GB
  186. * Mon Jun 25 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-12
  187. - Add some Build dependencies (#45007)
  188. * Fri May 18 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-11
  189. - Actually apply Patch #3
  190. * Fri May 11 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-10
  191. - Rebuild with new readline
  192. * Sun Apr 15 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  193. - Add IPv6 patch (RFE #35642)
  194. * Wed Apr 4 2001 Jakub Jelinek <jakub@redhat.com>
  195. - don't let configure to guess compiler, it can pick up egcs
  196. * Sun Jan 21 2001 Bernhard Rosenkraenzer <bero@redhat.com>
  197. - Update to 0.17 final
  198. - Fix up ACCT support in netrc (Bug #17353)
  199. * Wed Aug 16 2000 Philipp Knirsch <pknirsch@redhat.com>
  200. - Switched the default transfer protocol from PORT to PASV as proposed on
  201. bugzilla (#16134)
  202. - Fixed a small compiler warning in ftp.c line 886
  203. * Fri Jul 14 2000 Jeff Johnson <jbj@redhat.com>
  204. - add netrc man page (#7443).
  205. - fix possible buffer overflows in ftp client.
  206. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  207. - automatic rebuild
  208. * Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
  209. - FHS packaging.
  210. - update to 0.17-pre20000412.
  211. * Wed Apr 5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  212. - rebuild with current libreadline
  213. * Fri Mar 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  214. - 0.17
  215. * Fri Feb 4 2000 Bill Nottingham <notting@redhat.com>
  216. - handle compressed man pages
  217. * Tue Jan 4 2000 Bill Nottingham <notting@redhat.com>
  218. - the ftp client does not require inetd
  219. * Wed Dec 22 1999 Jeff Johnson <jbj@redhat.com>
  220. - update to 0.16.
  221. * Mon Aug 30 1999 Jeff Johnson <jbj@redhat.com>
  222. - update to 0.15.
  223. - enable readline support (#3796).
  224. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  225. - auto rebuild in the new build environment (release 22)
  226. * Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
  227. - compile for 6.0.
  228. * Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
  229. - build root
  230. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  231. - translations modified for de, fr, tr