2020-01-30 10:56:28 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libmodsecurity
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-07-14 10:53:46 +02:00
|
|
|
LIBMODSECURITY_VERSION = 3.0.5
|
2020-01-30 10:56:28 +01:00
|
|
|
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
|
2021-03-06 10:41:36 +01:00
|
|
|
LIBMODSECURITY_CPE_ID_VENDOR = trustwave
|
|
|
|
LIBMODSECURITY_CPE_ID_PRODUCT = modsecurity
|
2020-01-30 10:56:28 +01:00
|
|
|
|
|
|
|
LIBMODSECURITY_DEPENDENCIES = pcre
|
|
|
|
LIBMODSECURITY_CONF_OPTS = \
|
2020-01-31 16:42:57 +01:00
|
|
|
--with-pcre="$(STAGING_DIR)/usr/bin/pcre-config" \
|
2020-01-30 10:56:28 +01:00
|
|
|
--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))
|