[csw-maintainers] GAR: tweaking distribution file names
Maciej (Matchek) Blizinski
maciej at opencsw.org
Wed Nov 4 21:38:47 CET 2009
I have the following problem: The purveyor of software distributes
binaries. There are different binaries for x86, amd64, sparcv8 and
sparcv9, but they are all named the same:
http://www.example.com/download/x86/foo
http://www.example.com/download/amd64/foo
http://www.example.com/download/sparcv8/foo
http://www.example.com/download/sparcv9/foo
I can't just say DISTFILES = foo, because there is an assumption that
different files have distinct file names. I want to do some sort of
mapping:
DISTFILES = foo-$(GARVERSION)-x86
DISTFILES += foo-$(GARVERSION)-amd64
DISTFILES += foo-$(GARVERSION)-sparcv8
DISTFILES += foo-$(GARVERSION)-sparcv9
It means that I want to download
http://www.example.com/download/x86/foo and after downloading it,
rename it to foo-$(GARVERSION)-x86, and associate the checksum with
foo-$(GARVERSION)-x86, not just foo.
What's the most elegant way of going about it? I tried defining targets such as:
$(DOWNLOADDIR)/foo-$(GARVERSION)-x86
...but it did not work. gmake seems to be ignoring these targets.
Help?
Maciej
More information about the maintainers
mailing list