Initial Commit
- initial default booting image
This commit is contained in:
29
package/nginx-modsecurity/0001-config-use-pkg-config.patch
Normal file
29
package/nginx-modsecurity/0001-config-use-pkg-config.patch
Normal file
@@ -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
|
||||
|
||||
18
package/nginx-modsecurity/Config.in
Normal file
18
package/nginx-modsecurity/Config.in
Normal file
@@ -0,0 +1,18 @@
|
||||
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
|
||||
depends on !BR2_STATIC_LIBS # libmodsecurity
|
||||
select BR2_PACKAGE_LIBMODSECURITY
|
||||
help
|
||||
The ModSecurity-nginx connector is the connection
|
||||
point between nginx and libmodsecurity
|
||||
(ModSecurity v3).
|
||||
|
||||
https://github.com/owasp-modsecurity/ModSecurity-nginx
|
||||
|
||||
comment "nginx-modsecurity needs a toolchain w/ C++, threads, dynamic library"
|
||||
depends on BR2_PACKAGE_NGINX_HTTP
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||
4
package/nginx-modsecurity/nginx-modsecurity.hash
Normal file
4
package/nginx-modsecurity/nginx-modsecurity.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# From https://github.com/owasp-modsecurity/ModSecurity-nginx/releases/download/v1.0.4/modsecurity-nginx-v1.0.4.tar.gz.sha256
|
||||
sha256 6bdc7570911be884c1e43aaf85046137f9fde0cfa0dd4a55b853c81c45a13313 modsecurity-nginx-v1.0.4.tar.gz
|
||||
# Locally calculated
|
||||
sha256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE
|
||||
14
package/nginx-modsecurity/nginx-modsecurity.mk
Normal file
14
package/nginx-modsecurity/nginx-modsecurity.mk
Normal file
@@ -0,0 +1,14 @@
|
||||
################################################################################
|
||||
#
|
||||
# nginx-modsecurity
|
||||
#
|
||||
################################################################################
|
||||
|
||||
NGINX_MODSECURITY_VERSION = 1.0.4
|
||||
NGINX_MODSECURITY_SOURCE = modsecurity-nginx-v$(NGINX_MODSECURITY_VERSION).tar.gz
|
||||
NGINX_MODSECURITY_SITE = https://github.com/owasp-modsecurity/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