Subject: Re: Fetch distfile to different local filename
To: None <tech-pkg@netbsd.org>
From: Amitai Schlair <schmonz@schmonz.com>
List: tech-pkg
Date: 03/01/2002 17:00:36
"Amitai Schlair" <schmonz@schmonz.com> wrote:

> "Frederick Bruckman" <fredb@immanent.net> wrote:
>
> > How about set just set DIST_SUBDIR to
"p4/r01.1/${MACHINE_PLATFORM}"?
>
> "Hubert Feyrer" <hubert.feyrer@informatik.fh-regensburg.de> wrote:
>
> > I think the easy solution is to set DIST_SUBDIR.
>
> Yep, this seems to work. Thanks!

The plot thickens: there's a manual page available, which can be
downloaded separately.

DISTNAME=       p4
DISTFILES=      p4 p4.1
MASTER_SITES=
ftp://ftp.perforce.com/pub/perforce/r01.1/bin.${P4_ARCH}/
SITES_p4.1=     http://www.perforce.com/perforce/doc.011/man/
DIST_SUBDIR=    perforce/${P4_ARCH}

This does exactly what I expect -- downloads the man page into
${DIST_SUBDIR} -- but unlike the binaries, there's only one man page,
and it seems wasteful (and confusing) to have nine distinfo entries for
one file simply because it could wind up in one of nine places.

In addition to the man page, there's a text file, an HTML file, and a
.zip of HTML files that I also want to include in this package. (For the
Perforce server package, there's a man page and another .zip of HTML
files.)

I'd prefer not to have to split the documentation into its own package.
Is there a sane way to make this all work?

Thanks,

- Amitai