All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/modsecurity2: new package
@ 2021-10-18 13:25 Herve Codina
  2021-12-17 20:47 ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Herve Codina @ 2021-10-18 13:25 UTC (permalink / raw)
  To: buildroot; +Cc: Tom Marcuzzi, Herve Codina, Matthew Weber, Thomas Petazzoni

The modsecurity2 package provides an Apache module implementing
a web application firewall (WAF) module.

Based on initial work from Tom Marcuzzi <tom.marcuzzi@orolia.com>
and Nicolas Carrier <nicolas.carrier@orolia.com>

modsecurity2 will be superseeded sooner or later by modsecurity v3
ie. libmodsecurity [1] and its Apache connector [2]. libmodsecurity
is already supported in Buildroot with its Nginx connector.
According to the Apache connector web page and the discussion [3],
the Apache connector is not ready for production use.

  [1] https://github.com/SpiderLabs/ModSecurity
  [2] https://github.com/SpiderLabs/ModSecurity-apache
  [3] https://github.com/SpiderLabs/ModSecurity-apache/issues/80

The best we can do now is to still use modsecurity2 (v2.9.x) for
Apache:
  https://github.com/SpiderLabs/ModSecurity/tree/v2/master

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
---
A previous version was submitted but never merged:
  https://lore.kernel.org/buildroot/20191121172845.25958-1-tom.marcuzzi@orolia.com/
The patch was marked "superseeded" probably wrongly with the
introduction of modsecurity v3 (libmodsecurity and its Nginx
connector)

 DEVELOPERS                             |  2 ++
 package/Config.in                      |  5 +++++
 package/modsecurity2/Config.in         | 12 ++++++++++++
 package/modsecurity2/modsecurity2.hash |  3 +++
 package/modsecurity2/modsecurity2.mk   | 21 +++++++++++++++++++++
 5 files changed, 43 insertions(+)
 create mode 100644 package/modsecurity2/Config.in
 create mode 100644 package/modsecurity2/modsecurity2.hash
 create mode 100644 package/modsecurity2/modsecurity2.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 19f6d95270..9a41236705 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1150,6 +1150,7 @@ F:	package/dtbocfg/
 F:	package/libdbi/
 F:	package/libdbi-drivers/
 F:	package/lua-augeas/
+F:	package/modsecurity2/
 F:	support/testing/tests/package/test_dtbocfg.py
 F:	support/testing/tests/package/test_lua_augeas.py
 
@@ -1991,6 +1992,7 @@ F:	package/bmap-tools/
 F:	package/libdbi/
 F:	package/libdbi-drivers/
 F:	package/lua-augeas/
+F:	package/modsecurity2/
 F:	package/php-xdebug/
 F:	package/python-augeas/
 F:	package/python-flask-expects-json/
diff --git a/package/Config.in b/package/Config.in
index 48f365d773..230a976b6b 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2097,6 +2097,11 @@ menu "Networking applications"
 	source "package/aircrack-ng/Config.in"
 	source "package/aoetools/Config.in"
 	source "package/apache/Config.in"
+if BR2_PACKAGE_APACHE
+menu "External Apache modules"
+	source "package/modsecurity2/Config.in"
+endmenu
+endif
 	source "package/argus/Config.in"
 	source "package/arp-scan/Config.in"
 	source "package/arptables/Config.in"
diff --git a/package/modsecurity2/Config.in b/package/modsecurity2/Config.in
new file mode 100644
index 0000000000..703cb682b3
--- /dev/null
+++ b/package/modsecurity2/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_MODSECURITY2
+	bool "modsecurity2"
+	depends on BR2_PACKAGE_APACHE
+	select BR2_PACKAGE_LIBXML2
+	help
+	  ModSecurity is an open source, cross-platform web application
+	  firewall (WAF) module. Known as the "Swiss Army Knife" of
+	  WAFs, it enables web application defenders to gain visibility
+	  into HTTP(S) traffic and provides a power rules language and
+	  API to implement advanced protections.
+
+	  https://github.com/SpiderLabs/ModSecurity
diff --git a/package/modsecurity2/modsecurity2.hash b/package/modsecurity2/modsecurity2.hash
new file mode 100644
index 0000000000..1501b5642e
--- /dev/null
+++ b/package/modsecurity2/modsecurity2.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  686695c650449a338757711254ea78c67dedb1d258e03e5c8686f869388fff8c  modsecurity2-2.9.4.tar.gz
+sha256  2c564f5a67e49e74c80e5a7dcacd1904e7408f1fd6a95218b38c04f012d94cb9  LICENSE
diff --git a/package/modsecurity2/modsecurity2.mk b/package/modsecurity2/modsecurity2.mk
new file mode 100644
index 0000000000..b9a5a93057
--- /dev/null
+++ b/package/modsecurity2/modsecurity2.mk
@@ -0,0 +1,21 @@
+################################################################################
+#
+# modsecurity2
+#
+################################################################################
+
+MODSECURITY2_VERSION = 2.9.4
+MODSECURITY2_SITE = $(call github,SpiderLabs,ModSecurity,v$(MODSECURITY2_VERSION))
+MODSECURITY2_LICENSE = Apache-2.0
+MODSECURITY2_LICENSE_FILES = LICENSE
+MODSECURITY2_INSTALL_STAGING = YES
+MODSECURITY2_DEPENDENCIES = apache libxml2
+MODSECURITY2_AUTORECONF = YES
+
+MODSECURITY2_CONF_OPTS += --with-pcre=$(STAGING_DIR)/usr/bin/pcre-config \
+	--with-libxml=$(STAGING_DIR)/usr \
+	--with-apr=$(STAGING_DIR)/usr/bin/apr-1-config \
+	--with-apu=$(STAGING_DIR)/usr/bin/apu-1-config \
+	--with-apxs=$(STAGING_DIR)/usr/bin/apxs
+
+$(eval $(autotools-package))
-- 
2.31.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/modsecurity2: new package
  2021-10-18 13:25 [Buildroot] [PATCH 1/1] package/modsecurity2: new package Herve Codina
@ 2021-12-17 20:47 ` Thomas Petazzoni
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2021-12-17 20:47 UTC (permalink / raw)
  To: Herve Codina; +Cc: Tom Marcuzzi, Matthew Weber, buildroot

Hello,

On Mon, 18 Oct 2021 15:25:31 +0200
Herve Codina <herve.codina@bootlin.com> wrote:

> The modsecurity2 package provides an Apache module implementing
> a web application firewall (WAF) module.
> 
> Based on initial work from Tom Marcuzzi <tom.marcuzzi@orolia.com>
> and Nicolas Carrier <nicolas.carrier@orolia.com>
> 
> modsecurity2 will be superseeded sooner or later by modsecurity v3
> ie. libmodsecurity [1] and its Apache connector [2]. libmodsecurity
> is already supported in Buildroot with its Nginx connector.
> According to the Apache connector web page and the discussion [3],
> the Apache connector is not ready for production use.
> 
>   [1] https://github.com/SpiderLabs/ModSecurity
>   [2] https://github.com/SpiderLabs/ModSecurity-apache
>   [3] https://github.com/SpiderLabs/ModSecurity-apache/issues/80
> 
> The best we can do now is to still use modsecurity2 (v2.9.x) for
> Apache:
>   https://github.com/SpiderLabs/ModSecurity/tree/v2/master
> 
> Signed-off-by: Herve Codina <herve.codina@bootlin.com>

Thanks, I've applied after:

 * Adding a bunch of additional --without-<something> to disable
   optional dependencies that are not handled

 * Adding a dependency on pcre, which even if it is already guaranteed
   to be there from Apache, is used directly by modsecurity2, so it
   makes sense to express this dependency.

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] package/modsecurity2: new package
  2019-11-21 20:14 ` Matthew Weber
@ 2019-11-22 10:57   ` Tom Marcuzzi
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Marcuzzi @ 2019-11-22 10:57 UTC (permalink / raw)
  To: buildroot

Matthew,

Le 21/11/2019 ? 21:14, Matthew Weber a ?crit?:
> Tom,
> 
> On Thu, Nov 21, 2019 at 2:05 PM Tom Marcuzzi <tom.marcuzzi@orolia.com> wrote:
>>
>> From: Tom Marcuzzi <tom.marcuzzi@orolia.com>
>>
>> Signed-off-by: Tom Marcuzzi <tom.marcuzzi@orolia.com>
>> ---
>>   package/Config.in                      |  5 +++++
>>   package/modsecurity2/Config.in         | 12 ++++++++++++
>>   package/modsecurity2/modsecurity2.hash |  4 ++++
>>   package/modsecurity2/modsecurity2.mk   | 22 ++++++++++++++++++++++
>>   4 files changed, 43 insertions(+)
>>   create mode 100644 package/modsecurity2/Config.in
>>   create mode 100644 package/modsecurity2/modsecurity2.hash
>>   create mode 100644 package/modsecurity2/modsecurity2.mk
>>
>> diff --git a/package/Config.in b/package/Config.in
>> index f72c77b416..c056c210fb 100644
>> --- a/package/Config.in
>> +++ b/package/Config.in
>> @@ -1888,6 +1888,11 @@ menu "Networking applications"
>>          source "package/aircrack-ng/Config.in"
>>          source "package/aoetools/Config.in"
>>          source "package/apache/Config.in"
>> +if BR2_PACKAGE_APACHE
>> +menu "External Apache modules"
>> +       source "package/modsecurity2/Config.in"
>> +endmenu
>> +endif
>>          source "package/argus/Config.in"
>>          source "package/arp-scan/Config.in"
>>          source "package/arptables/Config.in"
>> diff --git a/package/modsecurity2/Config.in b/package/modsecurity2/Config.in
>> new file mode 100644
>> index 0000000000..7d99a42552
>> --- /dev/null
>> +++ b/package/modsecurity2/Config.in
>> @@ -0,0 +1,12 @@
>> +config BR2_PACKAGE_MODSECURITY2
>> +       bool "modsecurity2"
>> +       depends on BR2_PACKAGE_APACHE
>> +       select BR2_PACKAGE_LIBXML2
>> +       help
>> +         ModSecurity is an open source, cross-platform web application
>> +         firewall (WAF) module. Known as the "Swiss Army Knife" of
>> +         WAFs, it enables web application defenders to gain visibility
>> +         into HTTP(S) traffic and provides a power rules language and
>> +         API to implement advanced protections.
>> +
>> +         http://modsecurity.org
>> diff --git a/package/modsecurity2/modsecurity2.hash b/package/modsecurity2/modsecurity2.hash
>> new file mode 100644
>> index 0000000000..c7f80c8957
>> --- /dev/null
>> +++ b/package/modsecurity2/modsecurity2.hash
>> @@ -0,0 +1,4 @@
>> +# From https://www.modsecurity.org/tarball/2.9.3/modsecurity-2.9.3.tar.gz.sha256
>> +sha256 4192019d169d3f1dd82cc4714db6986df54c6ceb4ee1c8f253de78d1a6b62118 modsecurity-2.9.3.tar.gz
>> +# Locally computed
>> +sha256 2c564f5a67e49e74c80e5a7dcacd1904e7408f1fd6a95218b38c04f012d94cb9 LICENSE
>> diff --git a/package/modsecurity2/modsecurity2.mk b/package/modsecurity2/modsecurity2.mk
>> new file mode 100644
>> index 0000000000..05fe12fd0e
>> --- /dev/null
>> +++ b/package/modsecurity2/modsecurity2.mk
>> @@ -0,0 +1,22 @@
>> +################################################################################
>> +#
>> +# modsecurity2
>> +#
>> +################################################################################
>> +
>> +MODSECURITY2_VERSION = 2.9.3
>> +MODSECURITY2_SOURCE = modsecurity-$(MODSECURITY2_VERSION).tar.gz
>> +MODSECURITY2_SITE = https://www.modsecurity.org/tarball/$(MODSECURITY2_VERSION)
>> +MODSECURITY2_LICENSE = Apache-2.0
>> +MODSECURITY2_LICENSE_FILES = LICENSE
>> +MODSECURITY2_INSTALL_STAGING = YES
>> +
>> +MODSECURITY2_DEPENDENCIES += apache libxml2
> 
> Does this pkg provide a libmodsecurity library that can be used for
> apache or nginx?   My understanding was nginx required an additional
> connector plugin but it used this same package.
>

This package is the version 2 of ModSecurity, which is an apache module 
that can be built as a standalone module for nginx (not the case here). 
This requires nginx to be compiled with this specific module.
The version 3 of ModSecurity provides indeed a libmodsecurity library
than can be used through connectors with apache and nginx.

>> +
>> +MODSECURITY2_CONF_OPTS += --with-pcre=$(STAGING_DIR)/usr/bin/pcre-config \
>> +       --with-libxml=$(STAGING_DIR)/usr \
>> +       --with-apr=$(STAGING_DIR)/usr/bin/apr-1-config \
>> +       --with-apu=$(STAGING_DIR)/usr/bin/apu-1-config \
>> +       --with-apxs=$(STAGING_DIR)/usr/bin/apxs
>> +
>> +$(eval $(autotools-package))
>> --
>> 2.17.1
>>
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
> 
> 
> 
> --
> 
> Matthew Weber | Associate Director Software Engineer | Commercial Avionics
> 
> COLLINS AEROSPACE
> 
> 400 Collins Road NE, Cedar Rapids, Iowa 52498, USA
> 
> Tel: +1 319 295 7349 | FAX: +1 319 263 6099
> 
> matthew.weber at collins.com | collinsaerospace.com
> 
> 
> 
> CONFIDENTIALITY WARNING: This message may contain proprietary and/or
> privileged information of Collins Aerospace and its affiliated
> companies. If you are not the intended recipient, please 1) Do not
> disclose, copy, distribute or use this message or its contents. 2)
> Advise the sender by return email. 3) Delete all copies (including all
> attachments) from your computer. Your cooperation is greatly
> appreciated.
> 
> 
> Any export restricted material should be shared using my
> matthew.weber at corp.rockwellcollins.com address.
> ATTENTION: This email came from an external source.
> Do not open attachments or click on links from unknown senders or unexpected emails.
> 

--

Tom Marcuzzi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] package/modsecurity2: new package
  2019-11-21 17:30 Tom Marcuzzi
@ 2019-11-21 20:14 ` Matthew Weber
  2019-11-22 10:57   ` Tom Marcuzzi
  0 siblings, 1 reply; 5+ messages in thread
From: Matthew Weber @ 2019-11-21 20:14 UTC (permalink / raw)
  To: buildroot

Tom,

On Thu, Nov 21, 2019 at 2:05 PM Tom Marcuzzi <tom.marcuzzi@orolia.com> wrote:
>
> From: Tom Marcuzzi <tom.marcuzzi@orolia.com>
>
> Signed-off-by: Tom Marcuzzi <tom.marcuzzi@orolia.com>
> ---
>  package/Config.in                      |  5 +++++
>  package/modsecurity2/Config.in         | 12 ++++++++++++
>  package/modsecurity2/modsecurity2.hash |  4 ++++
>  package/modsecurity2/modsecurity2.mk   | 22 ++++++++++++++++++++++
>  4 files changed, 43 insertions(+)
>  create mode 100644 package/modsecurity2/Config.in
>  create mode 100644 package/modsecurity2/modsecurity2.hash
>  create mode 100644 package/modsecurity2/modsecurity2.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index f72c77b416..c056c210fb 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1888,6 +1888,11 @@ menu "Networking applications"
>         source "package/aircrack-ng/Config.in"
>         source "package/aoetools/Config.in"
>         source "package/apache/Config.in"
> +if BR2_PACKAGE_APACHE
> +menu "External Apache modules"
> +       source "package/modsecurity2/Config.in"
> +endmenu
> +endif
>         source "package/argus/Config.in"
>         source "package/arp-scan/Config.in"
>         source "package/arptables/Config.in"
> diff --git a/package/modsecurity2/Config.in b/package/modsecurity2/Config.in
> new file mode 100644
> index 0000000000..7d99a42552
> --- /dev/null
> +++ b/package/modsecurity2/Config.in
> @@ -0,0 +1,12 @@
> +config BR2_PACKAGE_MODSECURITY2
> +       bool "modsecurity2"
> +       depends on BR2_PACKAGE_APACHE
> +       select BR2_PACKAGE_LIBXML2
> +       help
> +         ModSecurity is an open source, cross-platform web application
> +         firewall (WAF) module. Known as the "Swiss Army Knife" of
> +         WAFs, it enables web application defenders to gain visibility
> +         into HTTP(S) traffic and provides a power rules language and
> +         API to implement advanced protections.
> +
> +         http://modsecurity.org
> diff --git a/package/modsecurity2/modsecurity2.hash b/package/modsecurity2/modsecurity2.hash
> new file mode 100644
> index 0000000000..c7f80c8957
> --- /dev/null
> +++ b/package/modsecurity2/modsecurity2.hash
> @@ -0,0 +1,4 @@
> +# From https://www.modsecurity.org/tarball/2.9.3/modsecurity-2.9.3.tar.gz.sha256
> +sha256 4192019d169d3f1dd82cc4714db6986df54c6ceb4ee1c8f253de78d1a6b62118 modsecurity-2.9.3.tar.gz
> +# Locally computed
> +sha256 2c564f5a67e49e74c80e5a7dcacd1904e7408f1fd6a95218b38c04f012d94cb9 LICENSE
> diff --git a/package/modsecurity2/modsecurity2.mk b/package/modsecurity2/modsecurity2.mk
> new file mode 100644
> index 0000000000..05fe12fd0e
> --- /dev/null
> +++ b/package/modsecurity2/modsecurity2.mk
> @@ -0,0 +1,22 @@
> +################################################################################
> +#
> +# modsecurity2
> +#
> +################################################################################
> +
> +MODSECURITY2_VERSION = 2.9.3
> +MODSECURITY2_SOURCE = modsecurity-$(MODSECURITY2_VERSION).tar.gz
> +MODSECURITY2_SITE = https://www.modsecurity.org/tarball/$(MODSECURITY2_VERSION)
> +MODSECURITY2_LICENSE = Apache-2.0
> +MODSECURITY2_LICENSE_FILES = LICENSE
> +MODSECURITY2_INSTALL_STAGING = YES
> +
> +MODSECURITY2_DEPENDENCIES += apache libxml2

Does this pkg provide a libmodsecurity library that can be used for
apache or nginx?   My understanding was nginx required an additional
connector plugin but it used this same package.

> +
> +MODSECURITY2_CONF_OPTS += --with-pcre=$(STAGING_DIR)/usr/bin/pcre-config \
> +       --with-libxml=$(STAGING_DIR)/usr \
> +       --with-apr=$(STAGING_DIR)/usr/bin/apr-1-config \
> +       --with-apu=$(STAGING_DIR)/usr/bin/apu-1-config \
> +       --with-apxs=$(STAGING_DIR)/usr/bin/apxs
> +
> +$(eval $(autotools-package))
> --
> 2.17.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot



-- 

Matthew Weber | Associate Director Software Engineer | Commercial Avionics

COLLINS AEROSPACE

400 Collins Road NE, Cedar Rapids, Iowa 52498, USA

Tel: +1 319 295 7349 | FAX: +1 319 263 6099

matthew.weber at collins.com | collinsaerospace.com



CONFIDENTIALITY WARNING: This message may contain proprietary and/or
privileged information of Collins Aerospace and its affiliated
companies. If you are not the intended recipient, please 1) Do not
disclose, copy, distribute or use this message or its contents. 2)
Advise the sender by return email. 3) Delete all copies (including all
attachments) from your computer. Your cooperation is greatly
appreciated.


Any export restricted material should be shared using my
matthew.weber at corp.rockwellcollins.com address.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] package/modsecurity2: new package
@ 2019-11-21 17:30 Tom Marcuzzi
  2019-11-21 20:14 ` Matthew Weber
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Marcuzzi @ 2019-11-21 17:30 UTC (permalink / raw)
  To: buildroot

From: Tom Marcuzzi <tom.marcuzzi@orolia.com>

Signed-off-by: Tom Marcuzzi <tom.marcuzzi@orolia.com>
---
 package/Config.in                      |  5 +++++
 package/modsecurity2/Config.in         | 12 ++++++++++++
 package/modsecurity2/modsecurity2.hash |  4 ++++
 package/modsecurity2/modsecurity2.mk   | 22 ++++++++++++++++++++++
 4 files changed, 43 insertions(+)
 create mode 100644 package/modsecurity2/Config.in
 create mode 100644 package/modsecurity2/modsecurity2.hash
 create mode 100644 package/modsecurity2/modsecurity2.mk

diff --git a/package/Config.in b/package/Config.in
index f72c77b416..c056c210fb 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1888,6 +1888,11 @@ menu "Networking applications"
 	source "package/aircrack-ng/Config.in"
 	source "package/aoetools/Config.in"
 	source "package/apache/Config.in"
+if BR2_PACKAGE_APACHE
+menu "External Apache modules"
+	source "package/modsecurity2/Config.in"
+endmenu
+endif
 	source "package/argus/Config.in"
 	source "package/arp-scan/Config.in"
 	source "package/arptables/Config.in"
diff --git a/package/modsecurity2/Config.in b/package/modsecurity2/Config.in
new file mode 100644
index 0000000000..7d99a42552
--- /dev/null
+++ b/package/modsecurity2/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_MODSECURITY2
+	bool "modsecurity2"
+	depends on BR2_PACKAGE_APACHE
+	select BR2_PACKAGE_LIBXML2
+	help
+	  ModSecurity is an open source, cross-platform web application
+	  firewall (WAF) module. Known as the "Swiss Army Knife" of
+	  WAFs, it enables web application defenders to gain visibility
+	  into HTTP(S) traffic and provides a power rules language and
+	  API to implement advanced protections.
+
+	  http://modsecurity.org
diff --git a/package/modsecurity2/modsecurity2.hash b/package/modsecurity2/modsecurity2.hash
new file mode 100644
index 0000000000..c7f80c8957
--- /dev/null
+++ b/package/modsecurity2/modsecurity2.hash
@@ -0,0 +1,4 @@
+# From https://www.modsecurity.org/tarball/2.9.3/modsecurity-2.9.3.tar.gz.sha256
+sha256 4192019d169d3f1dd82cc4714db6986df54c6ceb4ee1c8f253de78d1a6b62118 modsecurity-2.9.3.tar.gz
+# Locally computed
+sha256 2c564f5a67e49e74c80e5a7dcacd1904e7408f1fd6a95218b38c04f012d94cb9 LICENSE
diff --git a/package/modsecurity2/modsecurity2.mk b/package/modsecurity2/modsecurity2.mk
new file mode 100644
index 0000000000..05fe12fd0e
--- /dev/null
+++ b/package/modsecurity2/modsecurity2.mk
@@ -0,0 +1,22 @@
+################################################################################
+#
+# modsecurity2
+#
+################################################################################
+
+MODSECURITY2_VERSION = 2.9.3
+MODSECURITY2_SOURCE = modsecurity-$(MODSECURITY2_VERSION).tar.gz
+MODSECURITY2_SITE = https://www.modsecurity.org/tarball/$(MODSECURITY2_VERSION)
+MODSECURITY2_LICENSE = Apache-2.0
+MODSECURITY2_LICENSE_FILES = LICENSE
+MODSECURITY2_INSTALL_STAGING = YES
+
+MODSECURITY2_DEPENDENCIES += apache libxml2
+
+MODSECURITY2_CONF_OPTS += --with-pcre=$(STAGING_DIR)/usr/bin/pcre-config \
+	--with-libxml=$(STAGING_DIR)/usr \
+	--with-apr=$(STAGING_DIR)/usr/bin/apr-1-config \
+	--with-apu=$(STAGING_DIR)/usr/bin/apu-1-config \
+	--with-apxs=$(STAGING_DIR)/usr/bin/apxs
+
+$(eval $(autotools-package))
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-12-17 20:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-18 13:25 [Buildroot] [PATCH 1/1] package/modsecurity2: new package Herve Codina
2021-12-17 20:47 ` Thomas Petazzoni
  -- strict thread matches above, loose matches on Subject: below --
2019-11-21 17:30 Tom Marcuzzi
2019-11-21 20:14 ` Matthew Weber
2019-11-22 10:57   ` Tom Marcuzzi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.