openntpd: add optional dependency on LibreSSL
authorAdam Duskett <aduskett@gmail.com>
Wed, 8 Nov 2017 13:04:59 +0000 (08:04 -0500)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 22 Nov 2017 21:57:07 +0000 (22:57 +0100)
commit8c817edd7c207b658f5e6d93005b80c9c31f9d06
treea2c7a8d1150eb6c282c3628e6d3af37cbc5e012b
parent6e22ed19e1a0e8367f15b10c7727cce5363fe236
openntpd: add optional dependency on LibreSSL

OpenNTPD looks for a crypto library with tls_config_set_ca_mem, which
is available in LibreSSL but not OpenSSL. If tls_config_set_ca_mem is
found, crypto support is added to the build.

Because this is not currently checked, crypto support might not be
added due to the order of the build. Add a small check to see if
BR2_PACKAGE_LIBRESSL is selected, and if so, add a dependency for it.

Also add a note about this in the Config.in help section.

Signed-off-by: Adam Duskett <aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/openntpd/Config.in
package/openntpd/openntpd.mk