package/rsyslog: enable options when libcurl is enabled

Following the bump to 8.1910.0, items requiring libcurl were
disabled by default. This patch selectively enables options
which depend on libcurl when that package is enabled in the
build.

Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
[Fabrice: Disable mmkubernetes which also depends on lognorm and while
at it also disable mmnormalize which is available since version 6.1.2
(from 2010) and
b9d3cdceab]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Fabrice Fontaine 2021-03-21 14:58:42 +01:00 committed by Yann E. MORIN
parent 20dd9453f3
commit e644e5df39

View File

@ -28,14 +28,29 @@ endif
RSYSLOG_CONF_OPTS = --disable-generate-man-pages \
$(foreach x,$(call qstrip,$(RSYSLOG_PLUGINS)),--enable-$(x))
# Disable items requiring libcurl
RSYSLOG_CONF_OPTS += --disable-elasticsearch \
# Disable items requiring lognorm
RSYSLOG_CONF_OPTS += \
--disable-mmkubernetes \
--disable-mmnormalize
ifeq ($(BR2_PACKAGE_LIBCURL),y)
RSYSLOG_DEPENDENCIES += libcurl
RSYSLOG_CONF_OPTS += \
--enable-clickhouse \
--enable-elasticsearch \
--enable-fmhttp \
--enable-imdocker \
--enable-omhttp \
--enable-omhttpfs
else
RSYSLOG_CONF_OPTS += \
--disable-clickhouse \
--disable-omhttp \
--disable-elasticsearch \
--disable-fmhttp \
--disable-imdocker \
--disable-omhttpfs \
--disable-mmkubernetes
--disable-omhttp \
--disable-omhttpfs
endif
ifeq ($(BR2_PACKAGE_CIVETWEB_LIB),y)
RSYSLOG_DEPENDENCIES += civetweb