2008/10/3 Lukáš Jirkovský <[EMAIL PROTECTED]>: > Hi, > I've to introduce some new users in my ossec packages. My question is: > may I use specific uid's and gids in PKGBUILD or I've to use adduser > and groupadd etc. in install? > The problem is that if I use adduser, groupadd and chown in install > script pacman complains everytime when I run update of this package. > And it's of course very messy way of doing it so. On the other hand, > there can be conflicts with existing users and groups. What should I > do? Look hal.install [1], I think you can use the same method:
getent group YOUR_GROUP >/dev/null || usr/sbin/groupadd -g 93 YOUR_GROUP - [1] http://repos.archlinux.org/viewvc.cgi/extra/system/hal/hal.install?revision=1.3&root=extra&view=markup -- Andrea `BaSh` Scarpino Arch Linux Trusted User Linux User: #430842
