Subject: Re: multiple distfiles, but different master sites
To: Dan McMahill <dmcmahill@NetBSD.org>
From: Berndt Josef Wulf <wulf@ping.net.au>
List: tech-pkg
Date: 09/12/2003 08:33:47
On Fri, 12 Sep 2003 07:52 am, Dan McMahill wrote:
> I'm working on adding some vendor supplied patches to a package and have
> the following issue.  The two 'patches' are actually just tar files which
> should be extracted over the old code before building.  Also, these two
> files live in a different directory on the ftp server than the main
> distfile and they are (ugh) not versioned.
>
> So my questions are
>
> 1)  do I just list the other site in MASTER_SITES knowing it will take
> a few tries before 'make fetch' gets to that location?

Did you try

        DISTFILES=${DISTNAME}${EXTRACT_SUFX}
        DISTFILES+=foo-file.tar.gz
        SITES_foo-file.tar.gz=http://www.somewhere.com/somehow/ \
                        http://www.somewhereelse.com/mirror/somehow/

as discribed in pkgsrc/Packages.txt

> 2)  Should I just do something like:
> post-extract:
> 	cd ${WRKSRC}/path/to/stuff && ${EXTRACT_CMD} ${DISTDIR}/fix1.tar.gz
> 	cd ${WRKSRC}/path/to/otherstuff && ${EXTRACT_CMD} ${DISTDIR}/fix2.tar.gz
>
> to get the files extracted?

You only need to do this if the path to the destination filesystem is 
different to that of ${WRKSRC}.

cheerio Berndt