Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Apr 2004 10:53:16 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: DISTFILES problem
Message-ID:  <20040401095316.GA81757@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20040331233833.GA57987@xor.obsecurity.org>
References:  <20040331211920.GB59081@happy-idiot-talk.infracaninophile.co.uk> <20040331233833.GA57987@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--ReaqsoxgOBHFXBhH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Mar 31, 2004 at 03:38:33PM -0800, Kris Kennaway wrote:
> On Wed, Mar 31, 2004 at 10:19:20PM +0100, Matthew Seaman wrote:
>=20
> > What is the recommended method for pulling down a distfile from a URL
> > which doesn't actually mention the filename?
>=20
> fetch -o?

I was hoping you weren't going to say that... I think I'd have to
write myself a customised do-fetch: target to make that work.

Anyhow -- thought of an idea overnight.  It's a terrible hack, but I
can add a dummy argument to the end of the URL which contains the
required filename...

    % fetch 'http://scripts.sil.org/cms/scripts/render_download.php?site_id=
=3Dnrsi&format=3Dfile&media_id=3DGentium_101_LT&_sc=3D1&dummy=3D/fonts-ttf-=
gentium-1.0.1.tar.bz2'
    fonts-ttf-gentium-1.0.1.tar.bz2               100% of 1747 kB   56 kBps=
 00m00s

Seems to work...

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--ReaqsoxgOBHFXBhH
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAa+aMdtESqEQa7a0RAtJpAJ9l2dRV0HTyhVLb0aEQlw+vFZXQtACeKEJI
A/ZfctmaxooYKwLIKNZ5ESo=
=/nqx
-----END PGP SIGNATURE-----

--ReaqsoxgOBHFXBhH--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040401095316.GA81757>