initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
From a2116312068b6b2c5732dfebde19b751cc81d4f3 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Sun, 1 Aug 2021 23:21:35 +0200
|
||||
Subject: [PATCH] configure.ac: drop usage of git at configure time
|
||||
|
||||
The usage of git is only to print some messages at configure time,
|
||||
which is not very useful, and causes a significant number of warning
|
||||
when regenerating the configure script.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
configure.ac | 23 -----------------------
|
||||
1 file changed, 23 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 20163e1e..14e5892a 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
# Get the hash of the last commit, to be used if it is not an
|
||||
# official release.
|
||||
-AC_DEFUN([MSC_GIT_HASH], m4_esyscmd_s(git log -1 --format="%h" --abbrev-commit))
|
||||
AC_DEFUN([MSC_MAJOR], m4_esyscmd_s(cat headers/modsecurity/modsecurity.h | grep "define MODSECURITY_MAJOR " | awk {'print $3'} | sed 's/\"//g'))
|
||||
AC_DEFUN([MSC_MINOR], m4_esyscmd_s(cat headers/modsecurity/modsecurity.h | grep "define MODSECURITY_MINOR " | awk {'print $3'} | sed 's/\"//g'))
|
||||
AC_DEFUN([MSC_PATCHLEVEL], m4_esyscmd_s(cat headers/modsecurity/modsecurity.h | grep "define MODSECURITY_PATCHLEVEL " | awk {'print $3'} | sed 's/\"//g'))
|
||||
@@ -25,9 +24,6 @@ m4_define([msc_version],
|
||||
m4_define([msc_version_with_patchlevel],
|
||||
[msc_version_major.msc_version_minor.msc_version_patchlevel])
|
||||
|
||||
-m4_define([msc_version_git],
|
||||
- [m4_esyscmd_s(git describe)])
|
||||
-
|
||||
m4_define([msc_version_info],
|
||||
[msc_version_c_plus_a:msc_version_patchlevel:msc_version_minor])
|
||||
|
||||
@@ -73,11 +69,6 @@ AC_MSG_ERROR([\
|
||||
|
||||
])
|
||||
fi
|
||||
-# Libinjection version
|
||||
-AC_DEFUN([LIBINJECTION_VERSION], m4_esyscmd_s(cd "others/libinjection" && git describe && cd ../..))
|
||||
-
|
||||
-# SecLang test version
|
||||
-AC_DEFUN([SECLANG_TEST_VERSION], m4_esyscmd_s(cd "test/test-cases/secrules-language-tests" && git log -1 --format="%h" --abbrev-commit && cd ../../..))
|
||||
|
||||
|
||||
# Check for yajl
|
||||
@@ -217,10 +208,6 @@ AC_SUBST([MSC_VERSION_WITH_PATCHLEVEL])
|
||||
MSC_VERSION=msc_version
|
||||
AC_SUBST([MSC_VERSION])
|
||||
|
||||
-MSC_GIT_VERSION=msc_version_git
|
||||
-AC_SUBST([MSC_GIT_VERSION])
|
||||
-
|
||||
-
|
||||
AC_ARG_ENABLE(debug-logs,
|
||||
[AC_HELP_STRING([--disable-debug-logs],[Turn off the SecDebugLog feature])],
|
||||
|
||||
@@ -412,16 +399,6 @@ AC_OUTPUT
|
||||
|
||||
|
||||
# Print a fancy summary
|
||||
-echo " "
|
||||
-echo " "
|
||||
-echo "ModSecurity - ${MSC_GIT_VERSION} for $PLATFORM"
|
||||
-echo " "
|
||||
-echo " Mandatory dependencies"
|
||||
-echo -n " + libInjection ...."
|
||||
-echo LIBINJECTION_VERSION
|
||||
-echo -n " + SecLang tests ...."
|
||||
-echo SECLANG_TEST_VERSION
|
||||
-
|
||||
echo " "
|
||||
echo " Optional dependencies"
|
||||
|
||||
--
|
||||
2.31.1
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
From 1a84881b280eb08852d5495c57e44351a40d3f91 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Mon, 26 Jul 2021 00:24:57 +0200
|
||||
Subject: [PATCH] modsecurity.pc.in: add -lstdc++
|
||||
|
||||
Add -lstdc++ to Libs.Private to avoid the following static build failure
|
||||
with nginx:
|
||||
|
||||
/home/buildroot/autobuild/instance-2/output-1/host/lib/gcc/xtensa-buildroot-linux-uclibc/10.3.0/../../../../xtensa-buildroot-linux-uclibc/bin/ld: /home/buildroot/autobuild/instance-2/output-1/host/bin/../xtensa-buildroot-linux-uclibc/sysroot/usr/lib/libmodsecurity.a(libmodsecurity_la-transaction.o): in function `std::basic_streambuf<char, std::char_traits<char> >::sbumpc() [clone .isra.0]':
|
||||
transaction.cc:(.text+0x40): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_dispose()'
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/e5a9eb8448980f1c5cafe97180b7d1f48ddf02ca
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
modsecurity.pc.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/modsecurity.pc.in b/modsecurity.pc.in
|
||||
index 96cdf5ca..7c895ddc 100644
|
||||
--- a/modsecurity.pc.in
|
||||
+++ b/modsecurity.pc.in
|
||||
@@ -8,4 +8,4 @@ Description: ModSecurity API
|
||||
Version: @MSC_VERSION_WITH_PATCHLEVEL@
|
||||
Cflags: -I@includedir@
|
||||
Libs: -L@libdir@ -lmodsecurity
|
||||
-Libs.private: @CURL_LDADD@ @GEOIP_LDADD@ @MAXMIND_LDADD@ @GLOBAL_LDADD@ @LIBXML2_LDADD@ @LMDB_LDADD@ @LUA_LDADD@ @PCRE_LDADD@ @SSDEEP_LDADD@ @YAJL_LDADD@
|
||||
+Libs.private: @CURL_LDADD@ @GEOIP_LDADD@ @MAXMIND_LDADD@ @GLOBAL_LDADD@ @LIBXML2_LDADD@ @LMDB_LDADD@ @LUA_LDADD@ @PCRE_LDADD@ @SSDEEP_LDADD@ @YAJL_LDADD@ -lstdc++
|
||||
--
|
||||
2.30.2
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
From 6737dc133cb4811a000c02b4e0a92b72f0b220ee Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Fri, 16 Jul 2021 19:12:51 +0200
|
||||
Subject: [PATCH] Revert "Fix maxminddb link on FreeBSD"
|
||||
|
||||
This reverts commit 785958f9b5089b918c7d054cbcc2fe4a3c7b3788.
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
build/libmaxmind.m4 | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/build/libmaxmind.m4 b/build/libmaxmind.m4
|
||||
index 656fc250..02820b5a 100644
|
||||
--- a/build/libmaxmind.m4
|
||||
+++ b/build/libmaxmind.m4
|
||||
@@ -10,7 +10,7 @@ dnl MAXMIND_VERSION
|
||||
AC_DEFUN([PROG_MAXMIND], [
|
||||
|
||||
# Possible names for the maxmind library/package (pkg-config)
|
||||
-MAXMIND_POSSIBLE_LIB_NAMES="maxminddb maxmind"
|
||||
+MAXMIND_POSSIBLE_LIB_NAMES="libmaxminddb maxminddb maxmind"
|
||||
|
||||
# Possible extensions for the library
|
||||
MAXMIND_POSSIBLE_EXTENSIONS="so la sl dll dylib"
|
||||
--
|
||||
2.30.2
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
config BR2_PACKAGE_LIBMODSECURITY
|
||||
bool "libmodsecurity"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
select BR2_PACKAGE_PCRE
|
||||
help
|
||||
Libmodsecurity is one component of the ModSecurity
|
||||
v3 project. The library codebase serves as an
|
||||
interface to ModSecurity Connectors taking in web
|
||||
traffic and applying traditional ModSecurity
|
||||
processing. In general, it provides the capability
|
||||
to load/interpret rules written in the ModSecurity
|
||||
SecRules format and apply them to HTTP content
|
||||
provided by your application via Connectors.
|
||||
|
||||
https://github.com/SpiderLabs/ModSecurity
|
||||
|
||||
comment "libmodsecurity needs a toolchain w/ C++, threads"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
@@ -0,0 +1,4 @@
|
||||
# From https://github.com/SpiderLabs/ModSecurity/releases/download/v3.0.6/modsecurity-v3.0.6.tar.gz.sha256
|
||||
sha256 06315d9a32fc830997178f30a69e933c9c2364b263a2f036959bebc4dde59a08 modsecurity-v3.0.6.tar.gz
|
||||
# Localy calculated
|
||||
sha256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE
|
||||
@@ -0,0 +1,65 @@
|
||||
################################################################################
|
||||
#
|
||||
# libmodsecurity
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBMODSECURITY_VERSION = 3.0.6
|
||||
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
|
||||
|
||||
LIBMODSECURITY_CXXFLAGS = $(TARGET_CXXFLAGS)
|
||||
|
||||
# m68k_cf can't use -fPIC that libmodsecurity forces to use, so we need
|
||||
# to disable it to avoid a build failure.
|
||||
ifeq ($(BR2_m68k_cf),y)
|
||||
LIBMODSECURITY_CXXFLAGS += -fno-PIC
|
||||
endif
|
||||
|
||||
LIBMODSECURITY_CONF_OPTS += CXXFLAGS="$(LIBMODSECURITY_CXXFLAGS)"
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user