On Tue, Sep 22, 2009 at 10:02 AM, Maciej (Matchek) Blizinski <[email protected]> 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 _______________________________________________ maintainers mailing list [email protected] https://lists.opencsw.org/mailman/listinfo/maintainers
