[csw-maintainers] GAR classes list variable name

Peter Bonivart bonivart at opencsw.org
Tue Sep 22 10:16:34 CEST 2009


On Tue, Sep 22, 2009 at 10:02 AM, Maciej (Matchek) Blizinski
<maciej at opencsw.org> wrote:
> I've read the instructions on the and they don't seem complete to me.
> There are 2 things needed to set the file ownership:
>
> 1. A file defining users and groups (USERGROUP = ...)
> 2. A prototype with the ugfiles class
>
> The second bit needs to be done by filtering the prototype, is that
> right? A sample piece of code:
>
> USERGROUP = /opt/csw/etc/pkg/CSWmysql5/cswusergroup
> PROTOTYPE_FILTER = awk ' \
>    $$$$3 ~ /\/var\/opt\/csw\/mysql5$$$$/ { $$$$2 = "ugfiles"; \
>                                            $$$$4 = "0700"; \
>                                            $$$$5 = "mysql"; \
>                                            $$$$6 = "mysql" } \
>    { print }'
> SPKG_CLASSES = none ugfiles
>
> Without the last line (SPKG_CLASSES), my ugfiles-class file wasn't
> created on the disk during package installation.

I haven't actually used the new GAR definitions since they arrived but
I don't think there's a problem with the other ones, it's just the
usergroup class that's a pain to explain. I've had lots of questions
about it and tried to improve the documentation several times but now
I don't think I can until I try the changes myself.

I guess you still need the prototype filter in GAR after all just for this case.

Maybe Dago and Sebastian can help simplifying this?

-- 
/peter



More information about the maintainers mailing list