Download URL for blobwars.
Loren M. Lang
lorenl at alzatex.com
Wed Jun 15 06:26:51 GMT 2005
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.
>
> --
> I sense much NT in you.
> NT leads to Bluescreen.
> Bluescreen leads to downtime.
> Downtime leads to suffering.
> NT is the path to the darkside.
> Powerful Unix is.
>
> Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
> Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2
>
--
I sense much NT in you.
NT leads to Bluescreen.
Bluescreen leads to downtime.
Downtime leads to suffering.
NT is the path to the darkside.
Powerful Unix is.
Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: CEE1 AAE2 F66C 59B5 34CA C415 6D35 E847 0118 A3D2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050614/68805b25/attachment.bin
More information about the freebsd-ports
mailing list