Subject: Re: need to fetch many files in my package...
To: John Refling <johnr@imageworks.com>
From: David Maxwell <david@fundy.ca>
List: tech-pkg
Date: 03/09/2000 01:49:04
On Wed, Mar 08, 2000 at 05:44:09PM -0800, John Refling wrote:
> I need to fetch many files from many different sites
> and different subdirectories into disfiles....

Well, it's not pretty, but it should work if you include all the
DISTFILES, and all the MASTER_SITES. The package will cycle
through the sites in order for each file, and it will fail on all the
non-matches of course.

Otherwise, you'll need to code something up in pre-fetch or
post-fetch. I think it will get complicated fast if you try to duplicate
all the checking bsd.pkg.mk does for you.

> And the opposite problem: there isn't a distfile for
> my package itself... but 'make' keeps trying to fetch
> it from the default sites... how do I make this NOT
> happen?

I'm curious, what package would not need to retrieve anything?

You should be able to get away with not defining DISTFILES. Pkglint
will complain - if you want to silence it, you could give it a token
DISTFILE, and override do-fetch:

-- 
David Maxwell, david@vex.net|david@maxwell.net --> Although some of you out
there might find a microwave oven controlled by a Unix system an attractive
idea, controlling a microwave oven is easily accomplished with the smallest
of microcontrollers. - Russ Hersch - (Microcontroller primer and FAQ)