[521] | 1 | %{!?tcp_wrappers:%define tcp_wrappers 1} |
---|
| 2 | |
---|
| 3 | Summary: vsftpd - Very Secure Ftp Daemon |
---|
| 4 | Name: vsftpd |
---|
[10218] | 5 | Version: 3.0.3 |
---|
| 6 | Release: 1%{?_dist_release} |
---|
[521] | 7 | License: GPL |
---|
| 8 | Group: System Environment/Daemons |
---|
[8294] | 9 | URL: https://security.appspot.com/vsftpd.html |
---|
[521] | 10 | Source: ftp://vsftpd.beasts.org/users/cevans/%{name}-%{version}.tar.gz |
---|
| 11 | Source1: vsftpd.xinetd |
---|
| 12 | Source2: vsftpd.pam |
---|
| 13 | Source3: vsftpd.ftpusers |
---|
| 14 | Source4: vsftpd.user_list |
---|
| 15 | Source5: vsftpd.init |
---|
| 16 | Source6: vsftpd_conf_migrate.sh |
---|
[7599] | 17 | Source7: vsftpd.service |
---|
| 18 | |
---|
[521] | 19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[7599] | 20 | |
---|
| 21 | # Build patches |
---|
| 22 | Patch1: vsftpd-2.1.0-libs.patch |
---|
| 23 | Patch2: vsftpd-2.1.0-build_ssl.patch |
---|
| 24 | Patch3: vsftpd-2.1.0-tcp_wrappers.patch |
---|
| 25 | |
---|
| 26 | # Use /etc/vsftpd/ instead of /etc/ |
---|
| 27 | Patch4: vsftpd-2.1.0-configuration.patch |
---|
| 28 | |
---|
| 29 | # These need review |
---|
| 30 | Patch5: vsftpd-2.1.0-pam_hostname.patch |
---|
| 31 | Patch6: vsftpd-close-std-fds.patch |
---|
| 32 | Patch7: vsftpd-2.1.0-filter.patch |
---|
| 33 | Patch9: vsftpd-2.1.0-userlist_log.patch |
---|
| 34 | |
---|
| 35 | Patch10: vsftpd-2.1.0-trim.patch |
---|
| 36 | Patch12: vsftpd-2.1.1-daemonize_plus.patch |
---|
| 37 | Patch14: vsftpd-2.2.0-wildchar.patch |
---|
| 38 | |
---|
| 39 | Patch16: vsftpd-2.2.2-clone.patch |
---|
| 40 | Patch19: vsftpd-2.3.4-sd.patch |
---|
| 41 | Patch20: vsftpd-2.3.4-sqb.patch |
---|
[10218] | 42 | #Patch21: vsftpd-2.3.5-aslim.patch |
---|
[7599] | 43 | Patch22: vsftpd-3.0.0-tz.patch |
---|
| 44 | Patch23: vsftpd-3.0.0-xferlog.patch |
---|
| 45 | Patch24: vsftpd-3.0.0-logrotate.patch |
---|
| 46 | |
---|
| 47 | Patch25: 07-utf8.patch |
---|
| 48 | |
---|
| 49 | #Vine custom |
---|
| 50 | Patch100: vsftpd-vine.patch |
---|
| 51 | |
---|
[521] | 52 | %if %{tcp_wrappers} |
---|
[7599] | 53 | BuildRequires: tcp_wrappers |
---|
[521] | 54 | %endif |
---|
[7599] | 55 | |
---|
| 56 | BuildRequires: libcap-devel |
---|
[521] | 57 | BuildRequires: pam-devel |
---|
[7599] | 58 | BuildRequires: openssl-devel |
---|
| 59 | |
---|
[521] | 60 | Requires: libcap |
---|
[7599] | 61 | Requires: logrotate |
---|
[521] | 62 | Requires: openssl |
---|
[7599] | 63 | Requires: pam |
---|
| 64 | |
---|
| 65 | Requires(preun): /sbin/service |
---|
| 66 | Requires(postun): /sbin/service |
---|
| 67 | |
---|
[521] | 68 | Provides: ftpserver |
---|
| 69 | |
---|
| 70 | %description |
---|
| 71 | vsftpd is a Very Secure FTP daemon. It was written completely from |
---|
| 72 | scratch. |
---|
| 73 | |
---|
| 74 | %prep |
---|
| 75 | %setup -q -n %{name}-%{version} |
---|
[7599] | 76 | cp %{SOURCE1} . |
---|
| 77 | |
---|
| 78 | %patch1 -p1 -b .libs |
---|
| 79 | %patch2 -p1 -b .build_ssl |
---|
[521] | 80 | %if %{tcp_wrappers} |
---|
| 81 | %patch3 -p1 -b .tcp_wrappers |
---|
| 82 | %endif |
---|
[7599] | 83 | %patch4 -p1 -b .configuration |
---|
| 84 | %patch5 -p1 -b .pam_hostname |
---|
| 85 | %patch6 -p1 -b .close_fds |
---|
| 86 | %patch7 -p1 -b .filter |
---|
| 87 | %patch9 -p1 -b .userlist_log |
---|
| 88 | %patch10 -p1 -b .trim |
---|
| 89 | %patch12 -p1 -b .daemonize_plus |
---|
| 90 | %patch14 -p1 -b .wildchar |
---|
| 91 | %patch16 -p1 -b .clone |
---|
| 92 | %patch19 -p1 -b .sd |
---|
| 93 | %patch20 -p1 -b .sqb |
---|
[10218] | 94 | #%patch21 -p1 -b .aslim |
---|
[7599] | 95 | %patch22 -p1 -b .tz |
---|
| 96 | %patch23 -p1 -b .xferlog |
---|
| 97 | %patch24 -p1 -b .logrotate |
---|
[521] | 98 | |
---|
[7599] | 99 | %patch25 -p1 |
---|
| 100 | |
---|
| 101 | %patch100 -p1 -b .vine_custom |
---|
| 102 | |
---|
[521] | 103 | %build |
---|
| 104 | make CFLAGS="$RPM_OPT_FLAGS -fpie -pipe" \ |
---|
| 105 | LINK="-pie -lssl" \ |
---|
| 106 | %{?_smp_mflags} |
---|
| 107 | |
---|
| 108 | %install |
---|
[7599] | 109 | rm -rf $RPM_BUILD_ROOT |
---|
| 110 | mkdir -p $RPM_BUILD_ROOT%{_sbindir} |
---|
| 111 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} |
---|
| 112 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{vsftpd,pam.d,logrotate.d,rc.d/init.d} |
---|
| 113 | mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{5,8} |
---|
| 114 | |
---|
| 115 | install -m 755 vsftpd $RPM_BUILD_ROOT%{_sbindir}/vsftpd |
---|
| 116 | install -m 600 vsftpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/vsftpd/vsftpd.conf |
---|
[521] | 117 | install -m 644 vsftpd.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5/ |
---|
| 118 | install -m 644 vsftpd.8 $RPM_BUILD_ROOT/%{_mandir}/man8/ |
---|
[7599] | 119 | install -m 644 RedHat/vsftpd.log $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/vsftpd |
---|
[521] | 120 | install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/vsftpd |
---|
| 121 | install -m 600 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/vsftpd/ftpusers |
---|
| 122 | install -m 600 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/vsftpd/user_list |
---|
| 123 | install -m 755 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/vsftpd |
---|
| 124 | install -m 744 %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/vsftpd/vsftpd_conf_migrate.sh |
---|
| 125 | |
---|
| 126 | mkdir -p $RPM_BUILD_ROOT/var/ftp/pub |
---|
| 127 | |
---|
| 128 | %clean |
---|
| 129 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
---|
| 130 | |
---|
| 131 | %post |
---|
| 132 | /sbin/chkconfig --add vsftpd |
---|
| 133 | #/usr/sbin/usermod -d /var/ftp ftp >/dev/null 2>&1 || : |
---|
| 134 | |
---|
| 135 | %preun |
---|
| 136 | if [ $1 = 0 ]; then |
---|
| 137 | /sbin/service vsftpd stop > /dev/null 2>&1 |
---|
| 138 | /sbin/chkconfig --del vsftpd |
---|
| 139 | fi |
---|
| 140 | |
---|
| 141 | %files |
---|
[7599] | 142 | %defattr(-,root,root,-) |
---|
| 143 | %{_sbindir}/vsftpd |
---|
| 144 | %dir %{_sysconfdir}/vsftpd |
---|
| 145 | %{_sysconfdir}/vsftpd/vsftpd_conf_migrate.sh |
---|
| 146 | %{_sysconfdir}/rc.d/init.d/vsftpd |
---|
| 147 | %config(noreplace) %{_sysconfdir}/vsftpd/ftpusers |
---|
| 148 | %config(noreplace) %{_sysconfdir}/vsftpd/user_list |
---|
| 149 | %config(noreplace) %{_sysconfdir}/vsftpd/vsftpd.conf |
---|
| 150 | %config(noreplace) %{_sysconfdir}/pam.d/vsftpd |
---|
| 151 | %config(noreplace) %{_sysconfdir}/logrotate.d/vsftpd |
---|
| 152 | %doc FAQ INSTALL BUGS AUDIT Changelog LICENSE README README.security REWARD |
---|
| 153 | %doc SPEED TODO BENCHMARKS COPYING SECURITY/ EXAMPLE/ TUNING SIZE vsftpd.xinetd |
---|
[521] | 154 | %{_mandir}/man5/vsftpd.conf.* |
---|
| 155 | %{_mandir}/man8/vsftpd.* |
---|
[7599] | 156 | %{_var}/ftp |
---|
[521] | 157 | |
---|
[7599] | 158 | |
---|
[521] | 159 | %changelog |
---|
[10218] | 160 | * Mon May 02 2016 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.0.3-1 |
---|
| 161 | - new upstream release |
---|
| 162 | - deleted Patch21 |
---|
| 163 | |
---|
[8294] | 164 | * Sat Mar 08 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.0.3-2 |
---|
| 165 | - rebuilt with new toolchain |
---|
| 166 | - changed URL |
---|
| 167 | |
---|
[7599] | 168 | * Sat Mar 30 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.0.2-1 |
---|
| 169 | - new upstream release |
---|
| 170 | - synced Fedora rawhide sources |
---|
| 171 | - deleted customized configure for IPv6 in Patch4 |
---|
| 172 | - added Patch25 from Debian to add UTF-8 support |
---|
| 173 | |
---|
[521] | 174 | * Mon Oct 6 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.7-1 |
---|
| 175 | - new upstream release |
---|
| 176 | - update patches from FedoraCore |
---|
| 177 | - add Source6 from FedoraCore |
---|
| 178 | |
---|
| 179 | * Sun May 20 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.5-0vl1 |
---|
| 180 | - new upstream release |
---|
| 181 | - build with openssl-0.9.8e |
---|
| 182 | |
---|
| 183 | * Fri Sep 9 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.3-0vl1 |
---|
| 184 | - new upstream release |
---|
| 185 | |
---|
| 186 | * Thu Mar 3 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.2-0vl1 |
---|
| 187 | - new upstream release |
---|
| 188 | - disable patch5 |
---|
| 189 | |
---|
[7599] | 190 | * Sat Nov 27 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.1-5vl2 |
---|
[521] | 191 | - rename patch1 and disable anonymous FTP |
---|
| 192 | |
---|
| 193 | * Mon Oct 18 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.1-5vl1 |
---|
| 194 | - build for VineSeed |
---|
| 195 | - remove lines about s390, pie and patch4 |
---|
| 196 | - add %%{_datadir}/empty to %%files |
---|
| 197 | - rename patch1 and add "use_localtime=YES" |
---|
| 198 | - remove Prereq: /sbin/chkconfig, /sbin/service, /usr/sbin/usermod |
---|
| 199 | because they must be installed |
---|
| 200 | - remove Obsoletes: anonftp |
---|
| 201 | - remove BuildRequires: libcap-devel and Requires: libcap |
---|
| 202 | |
---|
| 203 | * Fri Oct 01 2004 Radek Vokal <rvokal@redhat.com> 2.0.1-5 |
---|
| 204 | - vsftpd under xinetd reads its config file (#134314) |
---|
| 205 | |
---|
| 206 | * Thu Sep 16 2004 Radek Vokal <rvokal@redhat.com> 2.0.1-4 |
---|
| 207 | - spec file changed, ftp dir change commented (#130119) |
---|
| 208 | - added doc files (#113056) |
---|
| 209 | |
---|
| 210 | * Wed Sep 08 2004 Jan Kratochvil <project-vsftpd@jankratochvil.net> |
---|
| 211 | - update for 2.0.1 for SSL |
---|
| 212 | |
---|
| 213 | * Fri Aug 27 2004 Radek Vokal <rvokal@redhat.com> 2.0.1-2 |
---|
| 214 | - vsftpd.conf file changed, default IPv6 support |
---|
| 215 | |
---|
| 216 | * Fri Aug 20 2004 Radek Vokal <rvokal@redhat.com> 2.0.1-1 |
---|
| 217 | - tcp_wrapper patch updated, signal patch updated |
---|
| 218 | - upgrade to 2.0.1, fixes several bugs, RHEL and FC builds |
---|
| 219 | |
---|
| 220 | * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> |
---|
| 221 | - rebuilt |
---|
| 222 | |
---|
| 223 | * Wed May 19 2004 Bill Nottingham <notting@redhat.com> 1.2.1-6 |
---|
| 224 | - fix the logrotate config (#116253) |
---|
| 225 | |
---|
| 226 | * Mon May 3 2004 Bill Nottingham <notting@redhat.com> 1.2.1-5 |
---|
| 227 | - fix all references to vsftpd.conf to be /etc/vsftpd/vsftpd.conf, |
---|
| 228 | including in the binary (#121199, #104075) |
---|
| 229 | |
---|
| 230 | * Thu Mar 25 2004 Bill Nottingham <notting@redhat.com> 1.2.1-4 |
---|
| 231 | - don't call malloc()/free() in signal handlers (#119136, |
---|
| 232 | <olivier.baudron@m4x.org>) |
---|
| 233 | |
---|
| 234 | * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> |
---|
| 235 | - rebuilt |
---|
| 236 | |
---|
| 237 | * Mon Nov 24 2003 Karsten Hopp <karsten@redhat.de> 1.2.1-1 |
---|
| 238 | - update to 1.2.1, which fixes #89765 and lot of other issues |
---|
| 239 | - remove manpage patch, it isn't required anymore |
---|
| 240 | - clean up init script |
---|
| 241 | - don't use script to find libs to link with (lib64 issues) |
---|
| 242 | |
---|
| 243 | * Sun Oct 12 2003 Florian La Roche <Florian.LaRoche@redhat.de> |
---|
| 244 | - allow compiling without tcp_wrappers support |
---|
| 245 | |
---|
| 246 | * Mon Sep 15 2003 Bill Nottingham <notting@redhat.com> 1.2.0-4 |
---|
| 247 | - fix errant newline (#104443) |
---|
| 248 | |
---|
| 249 | * Fri Aug 8 2003 Bill Nottingham <notting@redhat.com> 1.2.0-3 |
---|
| 250 | - tweak man page (#84584, #72798) |
---|
| 251 | - buildprereqs for pie (#99336) |
---|
| 252 | - free ride through the build system to fix (#101582) |
---|
| 253 | |
---|
| 254 | * Thu Jun 26 2003 Bill Nottingham <notting@redhat.com> 1.2.0-2 |
---|
| 255 | - update to 1.2.0 |
---|
| 256 | |
---|
| 257 | * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> |
---|
| 258 | - rebuilt |
---|
| 259 | |
---|
| 260 | * Mon Apr 28 2003 Bill Nottingham <notting@redhat.com> 1.1.3-9 |
---|
| 261 | - fix tcp_wrappers usage (#89765, <dale@riyescott.com>) |
---|
| 262 | |
---|
| 263 | * Fri Feb 28 2003 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-8 |
---|
| 264 | - enable use of tcp_wrappers |
---|
| 265 | |
---|
| 266 | * Tue Feb 11 2003 Bill Nottingham <notting@redhat.com> 1.1.3-7 |
---|
| 267 | - provide /var/ftp & /var/ftp/pub. obsolete anonftp. |
---|
| 268 | |
---|
| 269 | * Mon Feb 10 2003 Bill Nottingham <notting@redhat.com> 1.1.3-6 |
---|
| 270 | - clean up comments in init script (#83962) |
---|
| 271 | |
---|
| 272 | * Wed Jan 22 2003 Tim Powers <timp@redhat.com> |
---|
| 273 | - rebuilt |
---|
| 274 | |
---|
| 275 | * Mon Dec 30 2002 Florian La Roche <Florian.LaRoche@redhat.de> |
---|
| 276 | - change to /etc/rc.d/init.d for better compatibility |
---|
| 277 | |
---|
| 278 | * Mon Dec 16 2002 Bill Nottingham <notting@redhat.com> 1.1.3-3 |
---|
| 279 | - fix initscript perms |
---|
| 280 | - fix typo in initscript (#76587) |
---|
| 281 | |
---|
| 282 | * Fri Dec 13 2002 Bill Nottingham <notting@redhat.com> 1.1.3-2 |
---|
| 283 | - update to 1.1.3 |
---|
| 284 | - run standalone, don't run by default |
---|
| 285 | - fix reqs |
---|
| 286 | |
---|
| 287 | * Fri Nov 22 2002 Joe Orton <jorton@redhat.com> 1.1.0-3 |
---|
| 288 | - fix use with xinetd-ipv6; add flags=IPv4 in xinetd file (#78410) |
---|
| 289 | |
---|
| 290 | * Tue Nov 12 2002 Nalin Dahyabhai <nalin@redhat.com> 1.0.1-9 |
---|
| 291 | - remove absolute paths from PAM configuration so that the right modules get |
---|
| 292 | used for whichever arch we're built for on multilib systems |
---|
| 293 | |
---|
| 294 | * Thu Aug 15 2002 Elliot Lee <sopwith@redhat.com> 1.0.1-8 |
---|
| 295 | - -D_FILE_OFFSET_BITS=64 |
---|
| 296 | - smp make |
---|
| 297 | - remove forced optflags=-g for lack of supporting documentation |
---|
| 298 | |
---|
| 299 | * Fri Jun 21 2002 Tim Powers <timp@redhat.com> |
---|
| 300 | - automated rebuild |
---|
| 301 | |
---|
| 302 | * Thu May 23 2002 Tim Powers <timp@redhat.com> |
---|
| 303 | - automated rebuild |
---|
| 304 | |
---|
| 305 | * Wed Apr 10 2002 Bill Nottingham <notting@redhat.com> 1.0.1-5 |
---|
| 306 | - don't spit out ugly errors if anonftp isn't installed (#62987) |
---|
| 307 | - fix horribly broken userlist setup (#62321) |
---|
| 308 | |
---|
[7599] | 309 | * Thu Feb 28 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.0.1-4 |
---|
[521] | 310 | - s/Copyright/License/ |
---|
| 311 | - add "missingok" to the logrotate script, so we don't get errors |
---|
| 312 | when nothing has happened |
---|
| 313 | |
---|
| 314 | * Wed Jan 09 2002 Tim Powers <timp@redhat.com> |
---|
| 315 | - automated rebuild |
---|
| 316 | |
---|
| 317 | * Wed Nov 28 2001 Bill Nottingham <notting@redhat.com> |
---|
| 318 | - initial packaging for RHL, munge included specfile |
---|
| 319 | |
---|
| 320 | * Thu Mar 22 2001 Seth Vidal <skvidal@phy.duke.edu> |
---|
| 321 | - updated to 0.0.15 |
---|
| 322 | - added entry for vsftpd.8 man page |
---|
| 323 | - added entry for vsftpd.log logrotate file |
---|
| 324 | - added TUNING file to docs list |
---|
| 325 | |
---|
| 326 | * Wed Mar 7 2001 Seth Vidal <skvidal@phy.duke.edu> |
---|
| 327 | - Updated to 0.0.14 |
---|
| 328 | - made %%files entry for man page |
---|
| 329 | |
---|
| 330 | * Wed Feb 21 2001 Seth Vidal <skvidal@phy.duke.edu> |
---|
| 331 | - Updated to 0.0.13 |
---|
| 332 | |
---|
| 333 | * Mon Feb 12 2001 Seth Vidal <skvidal@phy.duke.edu> |
---|
| 334 | - Updated to 0.0.12 |
---|
| 335 | |
---|
| 336 | * Wed Feb 7 2001 Seth Vidal <skvidal@phy.duke.edu> |
---|
| 337 | - updated to 0.0.11 |
---|
| 338 | |
---|
[7599] | 339 | * Thu Feb 1 2001 Seth Vidal <skvidal@phy.duke.edu> |
---|
[521] | 340 | - Update to 0.0.10 |
---|
| 341 | |
---|
[7599] | 342 | * Thu Feb 1 2001 Seth Vidal <skvidal@phy.duke.edu> |
---|
[521] | 343 | - First RPM packaging |
---|
| 344 | - Stolen items from wu-ftpd's pam setup |
---|
| 345 | - Separated rh 7 and rh 6.X's packages |
---|
| 346 | - Built for Rh6 |
---|