From owner-freebsd-ports@FreeBSD.ORG Thu Apr 1 02:28:44 2004 Return-Path: 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 857FC16A4CE for ; Thu, 1 Apr 2004 02:28:44 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id B49DB43D2D for ; Thu, 1 Apr 2004 02:28:43 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i31ASdTu084538 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 1 Apr 2004 11:28:39 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i31ASdJw084537; Thu, 1 Apr 2004 11:28:39 +0100 (BST) (envelope-from matthew) Date: Thu, 1 Apr 2004 11:28:39 +0100 From: Matthew Seaman To: Kris Kennaway Message-ID: <20040401102839.GB81757@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Kris Kennaway , freebsd-ports@freebsd.org References: <20040331211920.GB59081@happy-idiot-talk.infracaninophile.co.uk> <20040331233833.GA57987@xor.obsecurity.org> <20040401095316.GA81757@happy-idiot-talk.infracaninophile.co.uk> <20040401100539.GA66014@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="H+4ONPRPur6+Ovig" Content-Disposition: inline In-Reply-To: <20040401100539.GA66014@xor.obsecurity.org> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040323, clamav-milter version 0.70a cc: freebsd-ports@freebsd.org Subject: Re: DISTFILES problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Apr 2004 10:28:44 -0000 --H+4ONPRPur6+Ovig Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: > > >=20 > > > > What is the recommended method for pulling down a distfile from a U= RL > > > > which doesn't actually mention the filename? > > >=20 > > > fetch -o? > >=20 > > 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. >=20 > 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=3D ""' either -- that just gets a usage message from basename(1). Currently I have: PORTNAME=3D gentium PORTVERSION=3D 1.0.1 CATEGORIES=3D x11-fonts MASTER_SITES=3D http://scripts.sil.org/cms/scripts/render_download.ph= p?site_id=3Dnrsi&format=3Dfile&media_id=3DGentium_101_LT&_sc=3D1&dummy=3D/ DISTNAME=3D fonts-ttf-${PORTNAME}-${PORTVERSION} which does the job. That trailing '/' seems to be quite important... 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 --H+4ONPRPur6+Ovig Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAa+7XdtESqEQa7a0RAgjiAJ4+JMORdXIfaJknmNv9mcUrGltB/ACeLMll HY4x9vK0Dx1SQUZ/+b7D4Ew= =eSV+ -----END PGP SIGNATURE----- --H+4ONPRPur6+Ovig--