94b6fbd582
Build with libmaxminddb is broken since bump to version 3.0.5 in commit464d0be380
because of785958f9b5
So revert this commit until upstream answer to comment to https://github.com/SpiderLabs/ModSecurity/issues/2131 Reverting this commit requires autoreconfiguring, which itself causes lots of warnings as configure.ac queries git to know the version of various parts of libmodsecurity. However, it turns out that those versions are only used to be displayed in the output of the configure script, which is quite useless. The only one that is referenced elsewhere is LIBINJECTION_VERSION, but it's in fact a different thing: it is defined by others/libinjection/src/libinjection_sqli.c. The only variable that was AC_SUBST() and therefore visible elsewhere was MSC_GIT_VERSION, but it is not used anywhere in the code base, except in the configure script itself. Note that one patch is 0001 and the other 0003, because there was already a 0002 patch. Fixes: - http://autobuild.buildroot.org/results/4c639fd967faa06f8ae362bacd38f3409c47267c Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
56 lines
1.6 KiB
Makefile
56 lines
1.6 KiB
Makefile
################################################################################
|
|
#
|
|
# libmodsecurity
|
|
#
|
|
################################################################################
|
|
|
|
LIBMODSECURITY_VERSION = 3.0.5
|
|
LIBMODSECURITY_SOURCE = modsecurity-v$(LIBMODSECURITY_VERSION).tar.gz
|
|
LIBMODSECURITY_SITE = https://github.com/SpiderLabs/ModSecurity/releases/download/v$(LIBMODSECURITY_VERSION)
|
|
LIBMODSECURITY_INSTALL_STAGING = YES
|
|
LIBMODSECURITY_LICENSE = Apache-2.0
|
|
LIBMODSECURITY_LICENSE_FILES = LICENSE
|
|
LIBMODSECURITY_CPE_ID_VENDOR = trustwave
|
|
LIBMODSECURITY_CPE_ID_PRODUCT = modsecurity
|
|
# We're patching build/libmaxmind.m4
|
|
LIBMODSECURITY_AUTORECONF = YES
|
|
|
|
LIBMODSECURITY_DEPENDENCIES = pcre
|
|
LIBMODSECURITY_CONF_OPTS = \
|
|
--with-pcre="$(STAGING_DIR)/usr/bin/pcre-config" \
|
|
--disable-examples \
|
|
--without-lmdb \
|
|
--without-ssdeep \
|
|
--without-lua \
|
|
--without-yajl
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
|
LIBMODSECURITY_DEPENDENCIES += libxml2
|
|
LIBMODSECURITY_CONF_OPTS += --with-libxml="$(STAGING_DIR)/usr/bin/xml2-config"
|
|
else
|
|
LIBMODSECURITY_CONF_OPTS += --without-libxml
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
LIBMODSECURITY_DEPENDENCIES += libcurl
|
|
LIBMODSECURITY_CONF_OPTS += --with-curl="$(STAGING_DIR)/usr/bin/curl-config"
|
|
else
|
|
LIBMODSECURITY_CONF_OPTS += --without-curl
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GEOIP),y)
|
|
LIBMODSECURITY_DEPENDENCIES += geoip
|
|
LIBMODSECURITY_CONF_OPTS += --with-geoip
|
|
else
|
|
LIBMODSECURITY_CONF_OPTS += --without-geoip
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBMAXMINDDB),y)
|
|
LIBMODSECURITY_DEPENDENCIES += libmaxminddb
|
|
LIBMODSECURITY_CONF_OPTS += --with-maxmind
|
|
else
|
|
LIBMODSECURITY_CONF_OPTS += --without-maxmind
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|