Skip site navigation (1)Skip section navigation (2)
Date:      15 Aug 2000 13:29:42 -0700
From:      asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami)
To:        Chris Piazza <cpiazza@jaxon.net>
Cc:        Kim Scarborough <sluggo@unknown.nu>, freebsd-ports@FreeBSD.ORG
Subject:   Re: How to fetch additional files?
Message-ID:  <vqcr97q2rpl.fsf@silvia.hip.berkeley.edu>
In-Reply-To: Chris Piazza's message of "Sun, 13 Aug 2000 23:22:22 -0600"
References:  <Pine.BSF.4.21.0008132343190.27525-100000@jinx.unknown.nu> <20000813232222.A539@norn.ca.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
 * From: Chris Piazza <cpiazza@jaxon.net>

 * 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




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