initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
From 2907dcd628242eb29920321fb3a744915d11888f Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Mon, 26 Jul 2021 08:29:21 +0200
|
||||
Subject: [PATCH] config: use pkg-config
|
||||
|
||||
Change to using pkg-config to find the path to modsecurity and its
|
||||
dependencies.
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
config | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/config b/config
|
||||
index c6e7467..e20190f 100644
|
||||
--- a/config
|
||||
+++ b/config
|
||||
@@ -50,7 +50,7 @@ END
|
||||
else
|
||||
# auto-discovery
|
||||
ngx_feature="ModSecurity library"
|
||||
- ngx_feature_libs="-lmodsecurity"
|
||||
+ ngx_feature_libs="$(${PKG_CONFIG:=pkg-config} --libs modsecurity)"
|
||||
|
||||
. auto/feature
|
||||
|
||||
--
|
||||
2.30.2
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_NGINX_MODSECURITY
|
||||
bool "nginx-modsecurity"
|
||||
depends on BR2_PACKAGE_NGINX_HTTP
|
||||
depends on BR2_INSTALL_LIBSTDCPP # libmodsecurity
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libmodsecurity
|
||||
select BR2_PACKAGE_LIBMODSECURITY
|
||||
help
|
||||
The ModSecurity-nginx connector is the connection
|
||||
point between nginx and libmodsecurity
|
||||
(ModSecurity v3).
|
||||
|
||||
https://github.com/SpiderLabs/ModSecurity-nginx
|
||||
|
||||
comment "nginx-modsecurity needs a toolchain w/ C++, threads"
|
||||
depends on BR2_PACKAGE_NGINX_HTTP
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
@@ -0,0 +1,4 @@
|
||||
# From https://github.com/SpiderLabs/ModSecurity-nginx/releases/download/v1.0.2/modsecurity-nginx-v1.0.2.tar.gz.sha256
|
||||
sha256 41a6660c50508c60df59f8f09c444d18ef8112a4c118cdc791a3992390b78c32 modsecurity-nginx-v1.0.2.tar.gz
|
||||
# Localy calculated
|
||||
sha256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE
|
||||
@@ -0,0 +1,14 @@
|
||||
################################################################################
|
||||
#
|
||||
# nginx-modsecurity
|
||||
#
|
||||
################################################################################
|
||||
|
||||
NGINX_MODSECURITY_VERSION = 1.0.2
|
||||
NGINX_MODSECURITY_SOURCE = modsecurity-nginx-v$(NGINX_MODSECURITY_VERSION).tar.gz
|
||||
NGINX_MODSECURITY_SITE = https://github.com/SpiderLabs/ModSecurity-nginx/releases/download/v$(NGINX_MODSECURITY_VERSION)
|
||||
NGINX_MODSECURITY_LICENSE = Apache-2.0
|
||||
NGINX_MODSECURITY_LICENSE_FILES = LICENSE
|
||||
NGINX_MODSECURITY_DEPENDENCIES = libmodsecurity
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user