Re: about build flavours
Dear Sascha,
Le 29/11/2016 à 15:24, Sascha Steinbiss a écrit :
>>>
>>> Then, we conflict the packages with each other and dpkg-divert the
>>> /usr/bin/suricata file in suricata-hyperscan.
>>
>> If both packages conflict with each other, then you don't need
>> dpkg-divert.
>
> One could think of multiple approaches with varying modularity.
You can thing of many ways, but:
>> And dpkg-divert is mainly useful when you want to replace a
>> file that is not under your own control, otherwise using the alternatives
>> system is usually preferred.
>
> Interesting. I assume this would require using unique installation paths
> for both the Hyperscan-enabled and non-enabled /usr/bin/suricata
> versions, neither of which should be /usr/bin/suricata?
Exactly, plus a pair of symlinks with a default value and sysadmin
control. The standard way is using the alternatives system:
https://wiki.debian.org/DebianAlternatives
Don't complicate life for your users, use this system.
Regards, Thibaut.
Reply to: