kumquat-buildroot/package/ulogd/ulogd.mk
Fabrice Fontaine 039dfca252 package/ulogd: fix mysql build
Fix the following mysql build failure raised since bump to version 2.0.8
in commit 6fc4b59ffd:

checking for mysql_config... no
configure: error: libmysqlclient not found

Fixes:
 - http://autobuild.buildroot.org/results/a059be353b7464d4e6a7830a685b43bdd7ecd5fa

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-01-30 22:56:59 +01:00

68 lines
1.6 KiB
Makefile

################################################################################
#
# ulogd
#
################################################################################
ULOGD_VERSION = 2.0.8
ULOGD_SOURCE = ulogd-$(ULOGD_VERSION).tar.bz2
ULOGD_SITE = http://www.netfilter.org/projects/ulogd/files
ULOGD_DEPENDENCIES = host-pkgconf \
libmnl libnetfilter_acct libnetfilter_conntrack libnetfilter_log \
libnfnetlink
ULOGD_LICENSE = GPL-2.0
ULOGD_LICENSE_FILES = COPYING
ULOGD_SELINUX_MODULES = ulogd
# DB backends need threads
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
ifeq ($(BR2_PACKAGE_LIBDBI),y)
ULOGD_CONF_OPTS += --enable-dbi
ULOGD_DEPENDENCIES += libdbi
else
ULOGD_CONF_OPTS += --disable-dbi
endif
ifeq ($(BR2_PACKAGE_MYSQL),y)
ULOGD_CONF_OPTS += \
--enable-mysql \
--with-mysql-config=$(STAGING_DIR)/usr/bin/mysql_config
ULOGD_DEPENDENCIES += mysql
else
ULOGD_CONF_OPTS += --disable-mysql
endif
ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
ULOGD_CONF_OPTS += --enable-pgsql
ULOGD_DEPENDENCIES += postgresql
else
ULOGD_CONF_OPTS += --disable-pgsql
endif
ifeq ($(BR2_PACKAGE_SQLITE),y)
ULOGD_CONF_OPTS += --enable-sqlite3
ULOGD_DEPENDENCIES += sqlite
else
ULOGD_CONF_OPTS += --disable-sqlite3
endif
else
ULOGD_CONF_OPTS += \
--disable-dbi \
--disable-mysql \
--disable-pgsql \
--disable-sqlite3
endif
ifeq ($(BR2_PACKAGE_LIBPCAP),y)
ULOGD_CONF_OPTS += --enable-pcap
ULOGD_DEPENDENCIES += libpcap
else
ULOGD_CONF_OPTS += --disable-pcap
endif
ifeq ($(BR2_PACKAGE_JANSSON),y)
ULOGD_CONF_OPTS += --enable-json
ULOGD_DEPENDENCIES += jansson
else
ULOGD_CONF_OPTS += --disable-json
endif
$(eval $(autotools-package))