tech-pkg archive

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

Re: [RFC] PLIST feature to simplify conditionals



Hi!

>       PLIST_VARS+=    nss pam
> 
>       .if !empty(PKG_OPTIONS:Mpam)
>       PLIST.pam=      defined
>       .endif
> 
>       .if !empty(PKG_OPTIONS:Mnss)
>       PLIST.nss=      defined
>       .endif

Couldn't it be more automagical?
Like, using PKG_SUPPORTED_OPTIONS instead of introducing PLIST_VARS,
and using it like this:

  .if !empty(PKG_OPTIONS:Mpam)
  PLIST_UNHIDE+=    pam
  .endif

-- 
Adam


Home | Main Index | Thread Index | Old Index