From owner-freebsd-questions Fri Sep 5 22:36:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA24034 for questions-outgoing; Fri, 5 Sep 1997 22:36:09 -0700 (PDT) Received: from gdi.uoregon.edu (cisco-ts13-line6.uoregon.edu [128.223.150.155]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA24029 for ; Fri, 5 Sep 1997 22:36:05 -0700 (PDT) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.5/8.8.5) with SMTP id WAA07572; Fri, 5 Sep 1997 22:35:59 -0700 (PDT) Date: Fri, 5 Sep 1997 22:35:58 -0700 (PDT) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: Scott Brown cc: freebsd-questions@FreeBSD.ORG Subject: Re: FTP server, tarball configuration In-Reply-To: <340D054F.75E5@xmission.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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