DISTFILES problem

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Apr 1 02:28:44 PST 2004


On Thu, Apr 01, 2004 at 02:05:39AM -0800, Kris Kennaway wrote:
> On Thu, Apr 01, 2004 at 10:53:16AM +0100, Matthew Seaman wrote:
> > 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:
> > > 
> > > > What is the recommended method for pulling down a distfile from a URL
> > > > which doesn't actually mention the filename?
> > > 
> > > 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.
> 
> You should be able to just append to FETCH_(BEFORE|AFTER)_ARGS.

Except that ${DISTNAME}${EXTRACT_SUFX} will be added to the end of any
URL I list under MASTER_SITES.  It doesn't help setting 'DISTFILES=
""' either -- that just gets a usage message from basename(1).

Currently I have:

    PORTNAME=       gentium
    PORTVERSION=    1.0.1
    CATEGORIES=     x11-fonts
    MASTER_SITES=   http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=Gentium_101_LT&_sc=1&dummy=/
    DISTNAME=       fonts-ttf-${PORTNAME}-${PORTVERSION}

which does the job.  That trailing '/' seems to be quite important...

	Cheers,

	Matthew

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040401/061c86fe/attachment.bin


More information about the freebsd-ports mailing list