From owner-freebsd-ports Tue Aug 15 13:31:38 2000 Delivered-To: freebsd-ports@freebsd.org Received: from granger.mail.mindspring.net (granger.mail.mindspring.net [207.69.200.148]) by hub.freebsd.org (Postfix) with ESMTP id BB58537BEA4 for ; Tue, 15 Aug 2000 13:31:26 -0700 (PDT) (envelope-from asami@cs.berkeley.edu) Received: from silvia.hip.berkeley.edu (sji-ca5-11.ix.netcom.com [209.109.234.11]) by granger.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id QAA22894; Tue, 15 Aug 2000 16:30:45 -0400 (EDT) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.9.3/8.6.9) id NAA60487; Tue, 15 Aug 2000 13:29:50 -0700 (PDT) To: Chris Piazza Cc: Kim Scarborough , freebsd-ports@FreeBSD.ORG Subject: Re: How to fetch additional files? References: <20000813232222.A539@norn.ca.eu.org> From: asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami) Date: 15 Aug 2000 13:29:42 -0700 In-Reply-To: Chris Piazza's message of "Sun, 13 Aug 2000 23:22:22 -0600" Message-ID: Lines: 36 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * From: Chris Piazza * 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... You probably also need EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} or some such to prevent bsd.port.mk from trying to untar the text files. :) Satoshi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message