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