%define version 2.6.2 %define release 5mdk Summary: An FTP daemon originally developed by Washington University. Name: wu-ftpd Version: %{version} Release: %{release} License: BSD Group: System/Servers Source: ftp://ftp.wu-ftpd.org/pub/wu-ftpd/%{name}-%{version}.tar.bz2 URL: http://www.wu-ftpd.org/ Source1: ftpd.log Source2: ftp.pamd Source3: wu-ftpd-xinetd # safe glob.c Source4: wu-ftpd-2.6.1-safer-glob.c Patch0: wu-ftpd-2.6.0-redhat.patch.bz2 Patch1: wu-ftpd-2.6.0-owners.patch.bz2 Patch2: wu-ftpd-2.6.1-fixinternalls.patch.bz2 Patch7: wu-ftpd-2.6.2-realpatch.patch.bz2 Patch11: wu-ftpd-2.6.1-pasv-port-allow-correction.patch.bz2 Patch12: wu-ftpd-2.6.1-privatepw.patch.bz2 Patch100: wu-ftpd-2.6.0-nonrootfix.patch.bz2 Patch200: wu-ftpd-2.6.2-compilefix.patch.bz2 Provides: ftpserver, BeroFTPD Prereq: rpm-helper Obsoletes: BeroFTPD BuildRequires: byacc Buildroot: %{_tmppath}/%{name}root %description The wu-ftpd package contains the wu-ftpd FTP (File Transfer Protocol) server daemon. The FTP protocol is a method of transferring files between machines on a network and/or over the Internet. Wu-ftpd's features include logging of transfers, logging of commands, on the fly compression and archiving, classification of users' type and location, per class limits, per directory upload permissions, restricted guest accounts, system wide and per directory messages, directory alias, cdpath, filename filter and virtual host support. Install the wu-ftpd package if you need to provide FTP service to remote users. %prep %setup -q mkdir rhsconfig %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch11 -p0 %patch12 -p1 %patch100 -p1 %patch200 -p1 -b .peroyvind cp %{SOURCE4} src/glob.c %patch7 -p1 %build %configure --enable-quota --enable-pam --disable-rfc931 --enable-ratios \ --enable-passwd --enable-ls --disable-dnsretry --enable-ls --enable-ipv6 \ --enable-tls perl -pi -e "s,/\* #undef SHADOW_PASSWORD \*/,#define SHADOW_PASSWORD 1,g" src/config.h make all %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir}} %makeinstall_std install -c -m755 util/xferstats $RPM_BUILD_ROOT%{_sbindir} cd rhsconfig install -c -m 600 ftpaccess ftpusers ftphosts ftpgroups ftpconversions $RPM_BUILD_ROOT%{_sysconfdir} install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/ftpd install -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/ftp ln -sf in.ftpd $RPM_BUILD_ROOT%{_sbindir}/wu.ftpd ln -sf in.ftpd $RPM_BUILD_ROOT%{_sbindir}/in.wuftpd install -D -m644 %{SOURCE3} %buildroot%{_sysconfdir}/xinetd.d/wu-ftpd %clean rm -rf $RPM_BUILD_ROOT %pre %_pre_useradd ftp /var/ftp /bin/false %post if [ ! -f /var/log/xferlog ]; then touch /var/log/xferlog chmod 600 /var/log/xferlog fi /sbin/service xinetd reload > /dev/null 2>&1 || : %postun /sbin/service xinetd reload > /dev/null 2>&1 || : %_postun_userdel ftp %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/xinetd.d/wu-ftpd %doc README ERRATA CHANGES CONTRIBUTORS %doc doc/HOWTO doc/TODO doc/examples %{_mandir}/*/*.* %config(noreplace) %{_sysconfdir}/ftp* %config(noreplace) %{_sysconfdir}/pam.d/ftp %config(noreplace) %{_sysconfdir}/logrotate.d/ftpd %defattr(0755,bin,bin) %{_sbindir}/* %{_bindir}/* %changelog * Fri Aug 01 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 2.6.2-5mdk - enable more features - bugfix CAN-2003-0466 off-by-one (P7) - prereq on rpm-helper (only;) * Fri Aug 01 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 2.6.2-4mdk - rebuild - macroize - fix build (P200) * Sat Jul 20 2002 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.6.2-3mdk - Re-do add/remove user (lost in space). * Fri Jul 19 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 2.6.2-2mdk - Rebuild - Fix menu entry * Mon Dec 31 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 2.6.2-1mdk - First attempt at a 2.6.2. * Fri Nov 30 2001 Vincent Danen <vdanen@mandrakesoft.com> 2.6.1-13mdk - forgot to include a patch that fixes more globbing stuff in ftpcmd.y * Wed Nov 28 2001 Vincent Danen <vdanen@mandrakesoft.com> 2.6.1-12mdk - use safer-glob.c from Olaf Kirch <okir@caldera.de> to fix globbing vulnerability * Sun Sep 09 2001 Stefan van der Eijk <stefan@eijk.nu> 2.6.1-11mdk - BuildRequires: byacc - Copyright --> License * Wed Feb 21 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.6.1-10mdk - Remove Requires of netkit-base. * Wed Jan 10 2001 Vincent Danen <vdanen@mandrakesoft.com> 2.6.1-9mdk - security fix, apply patch to fix tmpfile problem with privatepw helper * Tue Jan 09 2001 Vincent Danen <vdanen@mandrakesoft.com> 2.6.1-8mdk - apply recommended patches: fixes pasv-allow and some format strings * Tue Sep 26 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.6.1-7mdk - Pamstackizification. * Sat Sep 23 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.6.1-6mdk - Upgrade xinetd support. - Relaunch xinetd condrestart if xinetd is installed. * Wed Aug 30 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 2.6.1-5mdk - %%config(noreplace) * Wed Aug 30 2000 Etienne Faure <etiennemandrakesoft.com> 2.6.1-4mdk - rebuilt with _mandir macro * Sat Jul 15 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.6.1-3mdk - Add xinetd support. * Fri Jul 7 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.6.1-2mdk - Fix internal ls. - Remerge with redhat patches, and clean-up. * Mon Jul 3 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 2.6.1-1mdk - 2.6.1 (mainly security fixes) * Mon Jun 26 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.6.0-7mdk - Security updates. - Merge with rh patches. * Sun May 07 2000 Jerome Martin <jerome@mandrakesoft.com> 2.6.0-6mdk - use new configure compilation style - disable quotas by default to fix conflicts with supermount (floppy I/O errors) * Mon Apr 10 2000 Geoffrey Lee <snailtalk@linux-mandrake.com> - make a non root fix for Makefile.in * Thu Mar 30 2000 John Buswell <johnb@mandrakesoft.com> 2.6.0-4mdk - Fixed groups - spec-helper * Tue Jan 04 2000 John Buswell <johnb@mandrakesoft.com> - Fixed anon access so that it requires anonftp package - Added requires for netkit * Wed Oct 27 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - Merge with rh patchs. - Real pam support. * Tue Oct 19 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com> - 2.6.0. * Sat Sep 18 1999 Bernhard Rosenkraenzer <bero@linux-mandrake.com> - 2.6.0pre2 - switch to autoconfed build - enable support for broken clients - bzip2 man pages - Obsoletes: BeroFTPD - this is the first common version. ;) * Fri Apr 16 1999 Cristian Gafton <gafton@redhat.com> - crafted the "general use" spec file for automatically building rpms