mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
package/msmtp: prefer gnutls over openssl
Msmtp no longer uses openssl as default [1], and even discourages the use of the OpenSSL. Let's follow this upstream recommendation: if the Buildroot configuration has both OpenSSL and GnuTLS enabled, GnuTLS will be preferred over OpenSSL. [1] https://marlam.de/msmtp/news/openssl-discouraged/ Signed-off-by: Ryan Coe <bluemrp9@gmail.com> [Thomas: improve commit log] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
4ab484444f
commit
7bc23d50fd
@ -40,16 +40,16 @@ else
|
|||||||
MSMTP_CONF_OPTS += --without-libsecret
|
MSMTP_CONF_OPTS += --without-libsecret
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
||||||
|
MSMTP_CONF_OPTS += --with-tls=gnutls
|
||||||
|
MSMTP_DEPENDENCIES += gnutls
|
||||||
|
else ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||||
MSMTP_CONF_OPTS += --with-tls=openssl
|
MSMTP_CONF_OPTS += --with-tls=openssl
|
||||||
MSMTP_DEPENDENCIES += openssl
|
MSMTP_DEPENDENCIES += openssl
|
||||||
ifeq ($(BR2_STATIC_LIBS),y)
|
ifeq ($(BR2_STATIC_LIBS),y)
|
||||||
# openssl uses zlib, so we need to explicitly link with it when static
|
# openssl uses zlib, so we need to explicitly link with it when static
|
||||||
MSMTP_CONF_ENV += LIBS=-lz
|
MSMTP_CONF_ENV += LIBS=-lz
|
||||||
endif
|
endif
|
||||||
else ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
||||||
MSMTP_CONF_OPTS += --with-tls=gnutls
|
|
||||||
MSMTP_DEPENDENCIES += gnutls
|
|
||||||
else
|
else
|
||||||
MSMTP_CONF_OPTS += --with-tls=no
|
MSMTP_CONF_OPTS += --with-tls=no
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user