From owner-freebsd-ports Sun Aug 13 22:22:31 2000 Delivered-To: freebsd-ports@freebsd.org Received: from norn.ca.eu.org (h24-64-232-13.cg.shawcable.net [24.64.232.13]) by hub.freebsd.org (Postfix) with ESMTP id 61B5037BDE5 for ; Sun, 13 Aug 2000 22:22:24 -0700 (PDT) (envelope-from cpiazza@norn.ca.eu.org) Received: by norn.ca.eu.org (Postfix, from userid 1000) id 765C016B; Sun, 13 Aug 2000 23:22:22 -0600 (MDT) Date: Sun, 13 Aug 2000 23:22:22 -0600 From: Chris Piazza To: Kim Scarborough Cc: freebsd-ports@FreeBSD.ORG Subject: Re: How to fetch additional files? Message-ID: <20000813232222.A539@norn.ca.eu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Mutt/1.2.4i-jp0 In-Reply-To: ; from sluggo@unknown.nu on Sun, Aug 13, 2000 at 11:51:18PM -0500 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, Aug 13, 2000 at 11:51:18PM -0500, Kim Scarborough wrote: > I'm currently working on a port that needs to download some text files in > addition to the main tarball. What is the Approved way of doing this? The > closest thing I could find was how to download additional patches, but > that's not what these are. Currently, I have something like this; > > post-patch: > cd $(WRKSRC)/lists;$(FETCH_CMD) ftp://bla.com/foo.gz > cd $(WRKSRC)/lists;$(FETCH_CMD) ftp://bla.com/bar.gz > > This works, but it seems ugly to me (especially since it goes on like this > for 15 lines). > > Any suggestions? Are there other ports with a similar issue? DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} file1 file2 \ file3 file4 This will fetch them all at make fetch time. DIST_SUBDIR= portname This puts them all in a subdir in distfiles so things don't get cluttered. I think that's all that you should need... -Chris -- cpiazza@jaxon.net | yawn.... cpiazza@FreeBSD.org | Calgary, AB, Canada To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message