package/rsyslog: add impcap support
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 15 Mar 2021 07:44:23 +0000 (08:44 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 16 Mar 2021 20:52:50 +0000 (21:52 +0100)
impcap is available since version 8.2006.0 and only depends on libpcap:
https://github.com/rsyslog/rsyslog/commit/76318ad9269309d0423358c545f72f3f79c12203

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/rsyslog/rsyslog.mk

index 6da2a469a9252e9d33586d5485b65b1165328c9b..99e80ae268b310670606cf9085339b249634348d 100644 (file)
@@ -30,7 +30,6 @@ RSYSLOG_CONF_OPTS += --disable-elasticsearch \
        --disable-omhttp \
        --disable-fmhttp \
        --disable-imdocker \
-       --disable-impcap \
        --disable-omhttpfs \
        --disable-mmkubernetes
 
@@ -60,6 +59,13 @@ else
 RSYSLOG_CONF_OPTS += --disable-libgcrypt
 endif
 
+ifeq ($(BR2_PACKAGE_LIBPCAP),y)
+RSYSLOG_DEPENDENCIES += libpcap
+RSYSLOG_CONF_OPTS += --enable-impcap
+else
+RSYSLOG_CONF_OPTS += --disable-impcap
+endif
+
 ifeq ($(BR2_PACKAGE_MYSQL),y)
 RSYSLOG_DEPENDENCIES += mysql
 RSYSLOG_CONF_OPTS += --enable-mysql