From owner-freebsd-ports@FreeBSD.ORG  Wed Jun 15 07:46:45 2005
Return-Path: <owner-freebsd-ports@FreeBSD.ORG>
X-Original-To: freebsd-ports@freebsd.org
Delivered-To: freebsd-ports@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 402BD16A41C
	for <freebsd-ports@freebsd.org>; Wed, 15 Jun 2005 07:46:45 +0000 (GMT)
	(envelope-from neuhauser@sigpipe.cz)
Received: from isis.sigpipe.cz (fw.sigpipe.cz [62.245.70.224])
	by mx1.FreeBSD.org (Postfix) with ESMTP id ED7F043D48
	for <freebsd-ports@freebsd.org>; Wed, 15 Jun 2005 07:46:44 +0000 (GMT)
	(envelope-from neuhauser@sigpipe.cz)
Received: by isis.sigpipe.cz (Postfix, from userid 1001)
	id 7194D1F87BED; Wed, 15 Jun 2005 09:46:43 +0200 (CEST)
Date: Wed, 15 Jun 2005 09:46:43 +0200
From: Roman Neuhauser <neuhauser@sigpipe.cz>
To: "Loren M. Lang" <lorenl@alzatex.com>
Message-ID: <20050615074643.GA76447@isis.sigpipe.cz>
Mail-Followup-To: "Loren M. Lang" <lorenl@alzatex.com>,
	freebsd-ports@freebsd.org
References: <20050615052417.GA27969@alzatex.com>
	<20050615062637.GA28464@alzatex.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20050615062637.GA28464@alzatex.com>
User-Agent: Mutt/1.5.9i
Cc: freebsd-ports@freebsd.org
Subject: Re: Download URL for blobwars.
X-BeenThere: freebsd-ports@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Porting software to FreeBSD <freebsd-ports.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports>
List-Post: <mailto:freebsd-ports@freebsd.org>
List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
	<mailto:freebsd-ports-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Jun 2005 07:46:45 -0000

# lorenl@alzatex.com / 2005-06-14 23:26:37 -0700:
> On Tue, Jun 14, 2005 at 10:24:17PM -0700, Loren M. Lang wrote:
> > I am almost finished in making a port for the game blobwars, but I am
> > having trouble in getting fetch to work.  The download url provided on
> > the site is:
> > 
> > http://www.parallelrealities.co.uk/download.php?file=blobwars-1.04-1.tar.gz&type=zip
> > 
> > so I decided to try setting MASTER_SITES to
> > 
> > http://www.parallelrealities.co.uk/download.php?type=zip&file= and set
> > 
> > PORTNAME and DISTVERSION as appropriate.  This caused fetch to grab the
> > file successfully, but it saved it as
> > 
> > download.php?type=zip&file=blobwars-1.04-1.tar.gz
> > 
> > instead of blobwars-1.04-1.tar.gz so extract then fails.  Though when I
> > click on the link in konqueror, it brings up a save as dialog with the
> > correct filename.  What do I need to do to get fetch to save it as
> > appropriate?
> 
> I think what's happening here is that libfetch doesn't understand the
> Content-disposition header that the site is sending out and so is saving
> the file with the wrong name.  The fix would be to add support for the
> content-disposition header to libfetch or use a suitable replacement
> that understands the header.  The only other alternative I can see it to
> host the file somewhere else or hack the ports makefile to force the
> filename on it.

    FETCH_BEFORE_ARGS=	-o ${DISTFILES}

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991