[csw-maintainers] GAR: building a package from loose files, with checksumming
Maciej (Matchek) Blizinski
maciej at opencsw.org
Tue Oct 13 15:46:01 CEST 2009
On Mon, Oct 12, 2009 at 7:10 PM, Dagobert Michelsen <dam at opencsw.org> wrote:
> Here's my small example:
>
>> GARNAME = example
>> GARVERSION = 1.0
>> CATEGORIES = apps
>>
>> DESCRIPTION = An example
>>
>> FILES = /usr/bin/ls /usr/share/man/man1/ls.1
>
> This is the list of files you want.
>
>> MASTER_SITES = $(sort $(addprefix file://,$(dir $(FILES))))
>
> Every data source from MASTER_SITES is searched for the files in DISTFILES.
> It is in URL syntax, the sort is only to make the dirs unique if you have
> multiple files from one dir (essentially not needed here).
>
>> DISTFILES = $(notdir $(FILES))
What if there are two files with the same name, in different directories? Say:
/opt/csw/share/foo/foo.conf
/opt/csw/share/foo/examples/foo.conf
My guess is that one of the files will be duplicated.
Maciej
More information about the maintainers
mailing list