Summary: An FTP daemon provided by Washington University. Name: wu-ftpd Version: 2.6.2 Release: 6 License: IBM_ILA Group: System Environment/Daemons Source: ftp://ftp.vr.net/pub/wu-ftpd/wu-ftpd-%{version}.tar.gz Source1: IBM_ILA Patch0: wu-ftpd-realpath.patch Patch1: wu-ftpd-connect-dos.patch Patch2: wu-ftpd-skeychallenge.patch Patch3: wu-ftpd-nonroot.patch URL: http://www.wu-ftpd.org/ Provides: ftpserver Requires: coreutils Prefix: %{_prefix} Buildroot: /var/tmp/%{name}-root Conflicts: proftpd %define DEFCC cc %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. %prep %setup -q %patch0 -p0 -b .realpath %patch1 -p0 -b .dos %patch2 -p1 -b .skey %patch3 -p0 -b .nonroot # Add license info cat $RPM_SOURCE_DIR/IBM_ILA LICENSE > LICENSE.add mv LICENSE.add LICENSE %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if test "X$CC" != "Xgcc" then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` fi export CFLAGS="$RPM_OPT_FLAGS -D_LARGE_FILES -D_AIX42 -DAIX" ./configure --prefix=%{prefix} --sysconfdir=/etc --with-etc-dir=/etc perl -pi -e "s/L_FORMAT \"d/L_FORMAT \"lld/g" src/config.h make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc make install DESTDIR=$RPM_BUILD_ROOT install -c -m755 util/xferstats $RPM_BUILD_ROOT%{prefix}/sbin strip $RPM_BUILD_ROOT%{prefix}/bin/* || : strip $RPM_BUILD_ROOT%{prefix}/sbin/* || : ln -sf in.ftpd $RPM_BUILD_ROOT%{prefix}/sbin/wu.ftpd ln -sf in.ftpd $RPM_BUILD_ROOT%{prefix}/sbin/in.wuftpd (cd $RPM_BUILD_ROOT for dir in bin sbin do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{_prefix}/$dir/* . cd - done ) %clean rm -rf $RPM_BUILD_ROOT %post if [ ! -f /var/log/xferlog ]; then if [ ! -d /var/log/xferlog ]; then mkdir -p /var/log chmod 755 /var/log fi touch /var/log/xferlog chmod 600 /var/log/xferlog fi %files %defattr(-,root,system) %doc README ERRATA CHANGES CONTRIBUTORS LICENSE COPYRIGHT %doc doc/HOWTO doc/TODO doc/examples %{prefix}/sbin/* %{prefix}/bin/* %{prefix}/man/*/* /usr/sbin/* /usr/bin/* %config /etc/ftp* %changelog * Wed Feb 02 2005 David Clissold 2.6.2-6 - Rebuilt to specify coreutils as a req (not fileutils). * Wed Oct 21 2004 David Clissold - 2.6.2-5 - Rebuild. Why? I don't know, but the previous build compiles - string "UNKNOWN Type" while a rebuild of this give "UNIX Type", which - is desired. I don't know why it didn't before; I'm just rebuilding. * Thu May 20 2004 Philip K. Warren - 2.6.2-4 - Add patches for an off-by-one error, a denial of service fix, and a stack overflow in S/Key login handling. - Removed old %ifos linux sections. * Fri Nov 22 2002 David Clissold - Add IBM ILA license. * Wed Jul 31 2002 Chris Tysor - Fix the L_FORMAT printf size (was using d instead of lld) * Fri Feb 08 2002 Marc Stephenson - New version * Thu Nov 29 2001 David Clissold - add the ftpglob patch published on the wu-ftpd list today * Fri Apr 13 2001 David Clissold - binaries in %{prefix}/sbin should be stripped * Tue Apr 03 2001 David Clissold - Build with -D_LARGE_FILES enabled (for >2BG files) * Wed Mar 21 2001 Marc Stephenson - Rebuild against new shared objects - Use default compiler * Fri Feb 5 2000 Bernhard Rosenkränzer - fix a bug (the port-allow ftpaccess option was broken) - handle compressed man pages * Thu Oct 21 1999 Cristian Gafton - version 2.6.0, but no autoconf yet * Tue Sep 21 1999 Cristian Gafton - patch for allowing logins by users that do not have a local account on the machine, but are autheticated by PAM from a different database. * Mon Sep 06 1999 Cristian Gafton - fix ident patch * Tue Aug 31 1999 Michael K. Johnson - fixed roff subtlety * Wed Aug 25 1999 - fix ftpd.c mapped_path buffer overflow. * Mon Aug 23 1999 - apply fix for login bug (#1599). * Sat Aug 21 1999 - include all quick-fixes from ftp.vr.net (#3482,#3866). * Sat Jun 12 1999 - Added the new -I option to toggle the use of ident * Mon Jun 7 1999 - update to 2.5.0 (pathname patch no longer needed). - use "/bin/ps -f -p #" to get correct ftpwho info (#2455). - revert glob patch in order to fix "cd ~user" (#2798) and "ls foo*" (#2944). * Mon Apr 19 1999 - fixed pathname overflow patch * Sat Apr 17 1999 - use libc glob function - patched up some overflows - ick. * Fri Apr 16 1999 Cristian Gafton - version 2.4.2-vr17. Thank GOD! - important patches are already in. Joy an happyness will reign the world now. * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 6) * Mon Feb 15 1999 Cristian Gafton - update to 2.4.2-beta18-vr14 from ftp.vr.net * Mon Aug 3 1998 Jeff Johnson - fix busted symlinks. * Thu Jul 16 1998 Jeff Johnson - update to 2.4.2-beta18 * Tue Jun 09 1998 Prospector System - translations modified for de * Tue Jun 9 1998 Jeff Johnson - updated to 2.4.2-beta17 (fix problems #679/#680) * Thu May 07 1998 Prospector System - translations modified for de, fr, tr * Sun May 03 1998 Cristian Gafton - fixed the ps patch for the new ps convention (use ps www instead of ps -www) * Sun Apr 12 1998 Cristian Gafton - added %clean section * Sat Apr 11 1998 Cristian Gafton - updated to 2.4.2b16 - BuildRoot * Fri Dec 12 1997 Cristian Gafton - added a patch to prevent a possible PORT command exploit - cleaned up the .linux patch to get a clean compile on glibc * Tue Oct 21 1997 Erik Troan - fixed copyright field * Mon Oct 13 1997 Michael K. Johnson - Updated to new pam conventions. * Mon Sep 22 1997 Erik Troan - Updated to beta 15, which fixes a number of security holes. Release 1 if for RH 4.2, release 2 is glibc based. * Mon Mar 03 1997 Michael K. Johnson - Moved from pam.conf to pam.d * Mon Mar 03 1997 Erik Troan - xferstats should look for perl in /usr/bin, not /usr/local/bin - provides the "ftpserver" virtual package * Thu Feb 13 1997 Michael K. Johnson - Updated to beta-12, and created a new PAM patch from scratch, since the old one made massive changes to ftpd and caused some problems.