f0a907
Summary: The standard UNIX FTP (File Transfer Protocol) client
f0a907
Name: ftp
f0a907
Version: 0.17
f0a907
Release: 67%{?dist}
f0a907
License: BSD with advertising
f0a907
Group: Applications/Internet
f0a907
Source0: ftp://ftp.linux.org.uk/pub/linux/Networking/netkit/netkit-ftp-%{version}.tar.gz
f0a907
URL: ftp://ftp.linux.org.uk/pub/linux/Networking/netkit
f0a907
Patch1: netkit-ftp-0.17-pre20000412.pasv-security.patch
f0a907
Patch2: netkit-ftp-0.17-acct.patch
f0a907
Patch3: netkit-ftp.usagi-ipv6.patch
f0a907
Patch4: netkit-ftp-0.17-segv.patch
f0a907
Patch5: netkit-ftp-0.17-volatile.patch
f0a907
Patch6: netkit-ftp-0.17-runique_mget.patch
f0a907
Patch7: netkit-ftp-locale.patch
f0a907
Patch8: netkit-ftp-0.17-printf.patch
f0a907
Patch9: netkit-ftp-0.17-longint.patch
f0a907
Patch10: netkit-ftp-0.17-vsftp165083.patch
f0a907
Patch11: netkit-ftp-0.17-C-Frame121.patch
f0a907
Patch12: netkit-ftp-0.17-data.patch
f0a907
Patch13: netkit-ftp-0.17-multihome.patch
f0a907
Patch14: netkit-ftp-0.17-longnames.patch
f0a907
Patch15: netkit-ftp-0.17-multiipv6.patch
f0a907
Patch16: netkit-ftp-0.17-nodebug.patch
f0a907
Patch17: netkit-ftp-0.17-stamp.patch
f0a907
Patch18: netkit-ftp-0.17-sigseg.patch
f0a907
Patch19: netkit-ftp-0.17-size.patch
f0a907
Patch20: netkit-ftp-0.17-fdleak.patch
f0a907
Patch21: netkit-ftp-0.17-fprintf.patch
f0a907
Patch22: netkit-ftp-0.17-bitrate.patch
f0a907
Patch23: netkit-ftp-0.17-arg_max.patch
f0a907
Patch24: netkit-ftp-0.17-case.patch
f0a907
Patch25: netkit-ftp-0.17-chkmalloc.patch
f0a907
Patch26: netkit-ftp-0.17-man.patch
f0a907
Patch27: netkit-ftp-0.17-acct_ovl.patch
f0a907
Patch28: netkit-ftp-0.17-remove-nested-include.patch
f0a907
Patch29: netkit-ftp-0.17-linelen.patch
f0a907
Patch30: netkit-ftp-0.17-active-mode-option.patch
f0a907
Patch31: netkit-ftp-0.17-commands-leaks.patch
f0a907
Patch32: netkit-ftp-0.17-lsn-timeout.patch
f0a907
Patch33: netkit-ftp-0.17-getlogin.patch
f0a907
Patch34: netkit-ftp-0.17-token.patch
f0a907
Patch35: netkit-ftp-0.17-arg_max1.patch
f0a907
f0a907
BuildRequires: glibc-devel, readline-devel, ncurses-devel
f0a907
f0a907
%description
f0a907
The ftp package provides the standard UNIX command-line FTP (File
f0a907
Transfer Protocol) client.  FTP is a widely used protocol for
f0a907
transferring files over the Internet and for archiving files.
f0a907
f0a907
If your system is on a network, you should install ftp in order to do
f0a907
file transfers.
f0a907
f0a907
%prep
f0a907
%setup -q -n netkit-ftp-%{version}
f0a907
%patch1 -p1
f0a907
%patch2 -p1 -b .acct
f0a907
%patch3 -p1 -b .ipv6
f0a907
%patch4 -p1 -b .segv
f0a907
%patch5 -p1 -b .volatile
f0a907
%patch6 -p1 -b .runique_mget
f0a907
%patch7 -p1 -b .locale
f0a907
%patch8 -p1 -b .printf
f0a907
%patch9 -p1 -b .longint
f0a907
%patch10 -p1 -b .vsftp165083
f0a907
%patch11 -p1 -b .C-Frame121
f0a907
%patch12 -p1 -b .data
f0a907
%patch13 -p1 -b .multihome
f0a907
%patch14 -p1 -b .patch
f0a907
%patch15 -p1 -b .multiipv6
f0a907
%patch16 -p1 -b .nodebug
f0a907
%patch17 -p1 -b .stamp
f0a907
%patch18 -p1 -b .sigseg
f0a907
%patch19 -p1 -b .size
f0a907
%patch20 -p1 -b .fdleak
f0a907
%patch21 -p1 -b .fprintf
f0a907
%patch22 -p1 -b .bitrate
f0a907
%patch23 -p1 -b .arg_max
f0a907
%patch24 -p1 -b .case
f0a907
%patch25 -p1 -b .chkmalloc
f0a907
%patch26 -p1 -b .man
f0a907
%patch27 -p1 -b .acct_ovl
f0a907
%patch28 -p1
f0a907
%patch29 -p1 -b .linelen
f0a907
%patch30 -p1 -b .activemode
f0a907
%patch31 -p1 -b .cmds-leaks
f0a907
%patch32 -p1 -b .lsn-timeout
f0a907
%patch33 -p1 -b .getlogin
f0a907
%patch34 -p1 -b .token
f0a907
%patch35 -p1 -b .arg_max1
f0a907
f0a907
%build
f0a907
sh configure --with-c-compiler=gcc --enable-ipv6
f0a907
perl -pi -e '
f0a907
    s,^CC=.*$,CC=cc,;
f0a907
    s,-O2,\$(RPM_OPT_FLAGS) -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64,;
f0a907
    s,^BINDIR=.*$,BINDIR=%{_bindir},;
f0a907
    s,^MANDIR=.*$,MANDIR=%{_mandir},;
f0a907
    s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
f0a907
    ' MCONFIG
f0a907
f0a907
make %{?_smp_mflags}
f0a907
f0a907
%install
f0a907
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
f0a907
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
f0a907
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man5
f0a907
f0a907
make INSTALLROOT=${RPM_BUILD_ROOT} install
f0a907
f0a907
%files
f0a907
%{_bindir}/ftp
f0a907
%{_bindir}/pftp
f0a907
%{_mandir}/man1/ftp.*
f0a907
%{_mandir}/man1/pftp.*
f0a907
%{_mandir}/man5/netrc.*
f0a907
f0a907
%changelog
f0a907
* Wed Feb  3 2016 Jan Synáček <jsynacek@redhat.com> - 0.17-67
f0a907
- fix 'Out of memory' message when stacksize is set to unlimited (#1304064)
f0a907
f0a907
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.17-66
f0a907
- Mass rebuild 2014-01-24
f0a907
f0a907
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.17-65
f0a907
- Mass rebuild 2013-12-27
f0a907
f0a907
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-64
f0a907
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f0a907
f0a907
* Tue Oct 30 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-63
f0a907
- Fix buffer overflow in token parsing
f0a907
- Resolves: #871296
f0a907
f0a907
* Tue Oct 30 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-62
f0a907
- Fix linelen patch
f0a907
- Resolves: #871290
f0a907
f0a907
* Wed Oct 03 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-61
f0a907
- Fix: FTP client does not expand home directory correctly after sudo or su
f0a907
- Resolves: #861113
f0a907
f0a907
* Tue Sep 25 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-60
f0a907
- Plug leaks in "put", "send", "append"
f0a907
- Add listening timeout
f0a907
f0a907
* Tue Aug 28 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-59
f0a907
- Add active mode option
f0a907
f0a907
* Fri Aug 03 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-58
f0a907
- Extend the input line buffer and the argument storage buffer
f0a907
- Prettify spec some more and remove trailing space
f0a907
f0a907
* Fri Jul 20 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-57
f0a907
- Remove nested include (fix compilation in rawhide)
f0a907
f0a907
* Thu Jul 19 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-56
f0a907
- Fixed Source0 and URL
f0a907
- Make spec fedora-review-friendly
f0a907
f0a907
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-56
f0a907
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f0a907
f0a907
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-55
f0a907
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f0a907
f0a907
* Fri Sep 09 2011 Jiri Skala <jskala@redhat.com> - 0.17-54
f0a907
- fixes #737016 - ftp: off-by-one in account command parsing
f0a907
f0a907
* Tue Mar 29 2011 Jiri Skala <jskala@redhat.com> - 0.17-53
f0a907
- fixes #673850 - ftp(1) manpage fixes
f0a907
f0a907
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-52
f0a907
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f0a907
f0a907
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-51
f0a907
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f0a907
f0a907
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-50
f0a907
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f0a907
f0a907
* Mon Dec 01 2008 Jiri Skala <jskala@redhat.com> - 0.17-49
f0a907
- Resolves: #473491  unchecked malloc
f0a907
f0a907
* Wed Apr 23 2008 Martin Nagy <mnagy@redhat.com> - 0.17-48
f0a907
- fix mget when using case
f0a907
- Resolves: #442712
f0a907
f0a907
* Mon Apr 07 2008 Martin Nagy <mnagy@redhat.com> - 0.17-47
f0a907
- Use sysconf to get ARG_MAX instead of a macro (#440782)
f0a907
f0a907
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.17-46
f0a907
- Autorebuild for GCC 4.3
f0a907
f0a907
* Mon Jan 28 2008 Marcela Maslanova <mmaslano@redhat.com> - 0.17-45
f0a907
- changed bitrate from 1e+03 KBytes/sec to 1000 kBytes/sec
f0a907
- Resolves: rhbz#430457
f0a907
f0a907
* Thu Nov 15 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-44
f0a907
- using fprintf instead of printf
f0a907
f0a907
* Mon Oct 22 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-43
f0a907
- feature: for cmd size is switching to TYPE_I automatized
f0a907
- bug: ftp leaks socket fds when it fails to open a file (#315241)
f0a907
- rhbz#306191
f0a907
f0a907
* Fri Aug 24 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-42
f0a907
- rebuilt (for mass rebuild)
f0a907
- license tag checked
f0a907
f0a907
* Tue Aug 07 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-41
f0a907
- #251074 add patch from Jan Kratochvil
f0a907
f0a907
* Wed Feb 15 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-40
f0a907
- review again
f0a907
f0a907
* Wed Feb 14 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-39
f0a907
- review again
f0a907
f0a907
* Mon Feb  7 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-38
f0a907
- add gpl
f0a907
- spec fix 
f0a907
- rhbz#225774
f0a907
f0a907
* Tue Jan 30 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-35
f0a907
- nodebug package
f0a907
f0a907
* Wed Sep 13 2006 Marcela Maslanova <mmaslano@redhat.com> - 0.17-33
f0a907
- rebuilt
f0a907
f0a907
* Wed Aug 2 2006 Marcela Maslanova <mmaslano@redhat.com> - 0.17-32.1.2.4
f0a907
- fix (#199145) patch for IPv6 multihome
f0a907
f0a907
* Thu Jul 25 2006 Marcela Maslanova <mmaslano@redhat.com> - 0.17-32.1.2.3
f0a907
- fix (#196103) patch for long filenames
f0a907
f0a907
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.17-32.1.2.1
f0a907
- rebuild
f0a907
f0a907
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.17-32.1.2
f0a907
- bump again for double-long bug on ppc(64)
f0a907
f0a907
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.17-32.1.1
f0a907
- rebuilt for new gcc4.1 snapshot and glibc changes
f0a907
f0a907
* Thu Jan 12 2006 Petr Raszyk <praszyk@redhat.com> - 0.17-32
f0a907
- support for multi-homed clients
f0a907
  See #171621, netkit-ftp-0.17-multihome.patch
f0a907
f0a907
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
f0a907
- rebuilt
f0a907
f0a907
* Fri Dec 2 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-31
f0a907
- ftp does not close socket descriptor (if the remote file
f0a907
  does not exist).
f0a907
  See #174599, netkit-ftp-0.17-data.patch
f0a907
f0a907
* Wed Oct 26 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-30
f0a907
- The patch netkit-ftp-0.17-C-Frame121.patch adds some
f0a907
  comments/hints for C-Frame 121. It can be removed any time.
f0a907
f0a907
* Tue Aug 30 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-29
f0a907
- rebuild
f0a907
f0a907
* Tue Aug 30 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-28
f0a907
- This 'hack' will avoid a bug in ftp-server
f0a907
  (  < vsftpd-2.0.1-5   ). See #165083 (server prints the 
f0a907
  '150 FILE:...' line twice).
f0a907
  This patch can be (later ?) removed. 
f0a907
f0a907
* Mon Aug 22 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-27
f0a907
- overflow using 'hash mode' (printing '#' but
f0a907
  not reading data from network - #79367)
f0a907
f0a907
* Tue May 24 2005 Miloslav Trmac <mitr@redhat.com> - 0.17-26
f0a907
- Fix passive mode with SELinux (#158234, patch by Nalin Dahyabhai)
f0a907
- Fix format string mismatch
f0a907
f0a907
* Fri Mar 04 2005 Jiri Ryska <jryska@redhat.com>
f0a907
- rebuilt
f0a907
f0a907
* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 0.17-24
f0a907
- Rebuilt for new readline.
f0a907
f0a907
* Wed Dec 15 2004 Tim Waugh <twaugh@redhat.com>
f0a907
- Call setlocale() so that readline works correctly (bug #142265).
f0a907
f0a907
* Tue Dec  7 2004 Thomas Woerner <twoerner@redhat.com> 0.17-23
f0a907
- fixed mget with runique (#79367)
f0a907
f0a907
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
f0a907
- rebuilt
f0a907
f0a907
* Mon Jun 14 2004 Alan Cox <alan@redhat.com>
f0a907
- Re-arranged some totally bogus old bezerkly code that could
f0a907
  segfault ftp on connection loss. (BZ #122295)
f0a907
f0a907
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
f0a907
- rebuilt
f0a907
f0a907
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
f0a907
- rebuilt
f0a907
f0a907
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
f0a907
- rebuilt
f0a907
f0a907
* Fri Dec 13 2002 Elliot Lee <sopwith@redhat.com>
f0a907
- Rebuild
f0a907
f0a907
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
f0a907
- automated rebuild
f0a907
f0a907
* Thu May 23 2002 Tim Powers <timp@redhat.com>
f0a907
- automated rebuild
f0a907
f0a907
* Fri Apr 12 2002 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-13
f0a907
- Recompile with support for files > 2 GB
f0a907
f0a907
* Mon Jun 25 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-12
f0a907
- Add some Build dependencies (#45007)
f0a907
f0a907
* Fri May 18 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-11
f0a907
- Actually apply Patch #3
f0a907
f0a907
* Fri May 11 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-10
f0a907
- Rebuild with new readline
f0a907
f0a907
* Sun Apr 15 2001 Bernhard Rosenkraenzer <bero@redhat.com>
f0a907
- Add IPv6 patch (RFE #35642)
f0a907
f0a907
* Wed Apr  4 2001 Jakub Jelinek <jakub@redhat.com>
f0a907
- don't let configure to guess compiler, it can pick up egcs
f0a907
f0a907
* Sun Jan 21 2001 Bernhard Rosenkraenzer <bero@redhat.com>
f0a907
- Update to 0.17 final
f0a907
- Fix up ACCT support in netrc (Bug #17353)
f0a907
f0a907
* Wed Aug 16 2000 Philipp Knirsch <pknirsch@redhat.com>
f0a907
- Switched the default transfer protocol from PORT to PASV as proposed on
f0a907
  bugzilla (#16134)
f0a907
- Fixed a small compiler warning in ftp.c line 886
f0a907
f0a907
* Fri Jul 14 2000 Jeff Johnson <jbj@redhat.com>
f0a907
- add netrc man page (#7443).
f0a907
- fix possible buffer overflows in ftp client.
f0a907
f0a907
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
f0a907
- automatic rebuild
f0a907
f0a907
* Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
f0a907
- FHS packaging.
f0a907
- update to 0.17-pre20000412.
f0a907
f0a907
* Wed Apr  5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
f0a907
- rebuild with current libreadline
f0a907
f0a907
* Fri Mar 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
f0a907
- 0.17
f0a907
f0a907
* Fri Feb  4 2000 Bill Nottingham <notting@redhat.com>
f0a907
- handle compressed man pages
f0a907
f0a907
* Tue Jan  4 2000 Bill Nottingham <notting@redhat.com>
f0a907
- the ftp client does not require inetd
f0a907
f0a907
* Wed Dec 22 1999 Jeff Johnson <jbj@redhat.com>
f0a907
- update to 0.16.
f0a907
f0a907
* Mon Aug 30 1999 Jeff Johnson <jbj@redhat.com>
f0a907
- update to 0.15.
f0a907
- enable readline support (#3796).
f0a907
f0a907
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
f0a907
- auto rebuild in the new build environment (release 22)
f0a907
f0a907
* Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com>
f0a907
- compile for 6.0.
f0a907
f0a907
* Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
f0a907
- build root
f0a907
f0a907
* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
f0a907
- translations modified for de, fr, tr