[csw-maintainers] GAR: building a package from loose files, with checksumming

Dagobert Michelsen dam at opencsw.org
Tue Oct 13 17:54:14 CEST 2009


Hi Maciej,

Am 13.10.2009 um 15:46 schrieb Maciej (Matchek) Blizinski:

> 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.

Yes. And it must be that way because the files are checksummed
without path. If you want that you should really think about
making a tar.gz first and just copy that over.


Best regards

   -- Dago



More information about the maintainers mailing list