On Mon, Feb 16, 2004, Christopher Chan wrote:

> How can I find out the user that the OpenPKG was built with from within the rpm
> spec?
>
> Basically, if I built the OpenPKG with --user=opkg_user --group=opkg_group, is
> there a variable like %{l_user} or %{l_group} I can use during install to set
> the user in some default configuration files???

Sure, there is %{l_musr}, %{l_mgrp}, %{l_susr}, %{l_sgrp}, %{l_nusr},
%{l_ngrp}, %{l_rusr}, and %{l_rgrp}. So set them in a configuration
file just write @l_xxx@ there and use the "%{l_shtool} install -c -m
644 %{l_value -s -a}" command to install the configuration file in
your "%install" section. See our CVS for hundrets of examples of this
approach.
                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to