Date: Fri, 5 Sep 1997 22:35:58 -0700 (PDT) From: Doug White <dwhite@gdi.uoregon.edu> To: Scott Brown <skb@xmission.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FTP server, tarball configuration Message-ID: <Pine.BSF.3.96.970905223351.7395Z-100000@localhost> In-Reply-To: <340D054F.75E5@xmission.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 3 Sep 1997, Scott Brown wrote: > Dumb little question. Running FreeBSD 2.2.2, how do I configure ftpd to > serve up tarballs when presented with the "foo.tar" or "foo.tar.gz" > syntax in reference to the "foo" directory? 1. Install wu-ftpd. 2. Copy gzip and tar into ~ftp/bin so the public can get at it. 3. Configure /usr/local/etc/ftpaccess to enable compression: compress yes all local remote tar yes all local remote 4. Configure ftpconversions as follows: #ftpconverions file :.Z: : :/bin/gzip -d -c %s:T_REG|T_ASCII:O_UNCOMPRESS:UNCOMPRESS : : :.Z:/bin/compress -c %s:T_REG:O_COMPRESS:COMPRESS :.gz: : :/bin/gzip -cd %s:T_REG|T_ASCII:O_UNCOMPRESS:GUNZIP : : :.gz:/bin/gzip -9 -c %s:T_REG:O_COMPRESS:GZIP : : :.tar:/bin/tar -c -f - %s:T_REG|T_DIR:O_TAR:TAR : : :.tar.Z:/bin/tar -c -Z -f - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+COMPRESS { don't wrap this line : : :.tar.gz:/bin/tar -c -z -f - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+GZIP { don't wrap this line Hope this helps. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major Spam routed to /dev/null by Procmail | Death to Cyberpromo
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970905223351.7395Z-100000>