tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Question about PKG_OPTIONS_REQUIRED_GROUPS



On Sun, 30 Oct 2022 20:52:16 +0100, Roland Illig wrote:
>> I am using PKG_OPTIONS_REQUIRED_GROUPS in a package to select a web
>> server dependency.
>> 
>> Is there an easy way to learn which option from the group was chosen? I
>> could set a variable in options.mk, but there should be a prettier
>> way...
> 
> What do you want to do with this information?

I want the chosen web server's name to install the corresponding sample 
config file to PKG_SYSCONFDIR.
 
> Most other packages just the standard if-else sequence for the
> individual options and are fine with it.

That doesn't help... I ended up setting a make variable in each of the 
alternatives in options.mk. Works, but <bsd.options.mk> has the 
information and could make it available.

On the upside, I can use PKG_OPTIONS_GROUP.{group name} for the list of 
web servers.

Cheerio,
Hauke

-- 
Hauke Fath                        <hauke%Espresso.Rhein-Neckar.DE@localhost>
Linnéweg 7
64342 Seeheim-Jugenheim
Germany


Home | Main Index | Thread Index | Old Index