[Rpm-maint] RPM supports variable group name ?

Fernando Nasser fnasser at redhat.com
Wed Feb 28 22:58:29 UTC 2007


Sangeeta Varma wrote:
> 
> Olivier,
> 
> Thanks for the response.
> 
> How is that the same though ?
> I want to query the administrator installing the RPM (at install time) 
> as to which group to set for the binary and then use that to set the 
> group of the binary.
> 
> Doesn't this ::
>  > %attr(755, user, group) /a/file
> 
> imply that "group" is a known entity at build time ?
> 
> -Sangeeta
> 

Suggestion, let the RPM work as usual.

The sys admin creates a group alias with the RPM group name to the group 
he wants on that system

With the proper switches, groupadd will only create a group if the group 
does not yet exist.



> 
> Olivier Thauvin wrote:
>> Le Wednesday 28 February 2007, Sangeeta Varma a écrit :
>>
>>> Hello,
>>>
>>> I have an urgent requirement to be able to deliver a binary in an RPM
>>> with an unknown group name, at the rpm build time.  The Group name will
>>> be known only at install time.
>>
>>
>> Isn't it what wo do in rpm since rpm 4, maybe rpm 3 ?
>>
>> %attr(755, user, group) /a/file
>>
>> in pre, something that more or less does: adduser user -g group ...
>>
>> Iirc, RH/fedora does more or less the same, and probaly other distros.
> _______________________________________________
> Rpm-maint mailing list
> Rpm-maint at lists.rpm.org
> https://lists.rpm.org/mailman/listinfo/rpm-maint
> 



More information about the Rpm-maint mailing list