From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/modsecurity/
Date: Tue, 19 Jul 2022 17:21:17 +0000 (UTC) [thread overview]
Message-ID: <1658251242.10414bf03e312ad3f46e5639c270aaadf3eb181c.conikost@gentoo> (raw)
commit: 10414bf03e312ad3f46e5639c270aaadf3eb181c
Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Thu Jul 14 12:38:43 2022 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Tue Jul 19 17:20:42 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10414bf0
dev-libs/modsecurity: new package
Modsecurity is a library that can be used by Nginx:
https://github.com/SpiderLabs/ModSecurity-nginx
For Apache, Modsecurity 2.x is still recommended.
Bug: https://bugs.gentoo.org/726614
Closes: https://bugs.gentoo.org/718358
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
dev-libs/modsecurity/Manifest | 1 +
dev-libs/modsecurity/metadata.xml | 35 ++++++++++++
dev-libs/modsecurity/modsecurity-3.0.7.ebuild | 80 +++++++++++++++++++++++++++
3 files changed, 116 insertions(+)
diff --git a/dev-libs/modsecurity/Manifest b/dev-libs/modsecurity/Manifest
new file mode 100644
index 000000000000..30ec689bf75f
--- /dev/null
+++ b/dev-libs/modsecurity/Manifest
@@ -0,0 +1 @@
+DIST modsecurity-v3.0.7.tar.gz 3333372 BLAKE2B f391e2057b95a26a16efaa5f9d86acdd030b2f32d3da3ebac4e5eccdae7c9c6453bdb6b4e2d7f49ce189760d5c5de7d656aa5796fe2723e2e6f5493c93420913 SHA512 d8caf5946b598b16c4481938f22c1116595286811cfdb01d95db95ab061f7045751f2aa98e515df239bceb3f1a6dce2ecd5b24c954bddc27997fa64e9e429730
diff --git a/dev-libs/modsecurity/metadata.xml b/dev-libs/modsecurity/metadata.xml
new file mode 100644
index 000000000000..dac598b1ea55
--- /dev/null
+++ b/dev-libs/modsecurity/metadata.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>hydrapolic@gmail.com</email>
+ <name>Tomáš Mózes</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <use>
+ <flag name="fuzzyhash">
+ Support fuzzy hash computations (to detect malware, for example)
+ using the <pkg>app-crypt/ssdeep</pkg> package.
+ </flag>
+ <flag name="geoip2">
+ Pull in <pkg>dev-libs/libmaxminddb</pkg> for use by the SecGeoLookupDb
+ directive.
+ </flag>
+ <flag name="json">
+ Suppose JSON in the request body parser through
+ <pkg>dev-libs/yajl</pkg>.
+ </flag>
+ <flag name="lmdb">
+ Add LMDB backend support
+ </flag>
+ <flag name="pcre2">
+ Use <pkg>dev-libs/libpcre2</pkg> as regex implementation
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="github">SpiderLabs/ModSecurity</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-libs/modsecurity/modsecurity-3.0.7.ebuild b/dev-libs/modsecurity/modsecurity-3.0.7.ebuild
new file mode 100644
index 000000000000..cd66bb0b989d
--- /dev/null
+++ b/dev-libs/modsecurity/modsecurity-3.0.7.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1..4} )
+
+inherit lua-single
+
+MY_P=${PN}-v${PV}
+
+DESCRIPTION="Application firewall and intrusion detection"
+HOMEPAGE="https://github.com/SpiderLabs/ModSecurity"
+SRC_URI="https://github.com/SpiderLabs/ModSecurity/releases/download/v${PV}/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc fuzzyhash geoip geoip2 json lmdb lua pcre2"
+
+REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )"
+RDEPEND="dev-libs/libpcre:=
+ dev-libs/libxml2
+ net-misc/curl
+ fuzzyhash? ( app-crypt/ssdeep )
+ geoip? ( dev-libs/geoip )
+ geoip2? ( dev-libs/libmaxminddb )
+ json? ( dev-libs/yajl )
+ lmdb? ( dev-db/lmdb )
+ lua? ( ${LUA_DEPS} )
+ pcre2? ( dev-libs/libpcre2:= )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig
+ doc? ( app-doc/doxygen[dot] )"
+
+DOCS=( AUTHORS CHANGES README.md modsecurity.conf-recommended unicode.mapping )
+
+pkg_setup() {
+ use lua && lua-single_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ # 2 tests fail without portage too
+ # https://github.com/SpiderLabs/ModSecurity/issues/2772
+ sed -i '/test\/test-cases\/regression\/auditlog.json \\/d' Makefile.in || die
+ sed -i '/test\/test-cases\/regression\/issue-2000.json \\/d' Makefile.in || die
+ sed -i '/test\/test-cases\/regression\/config-secremoterules.json \\/d' Makefile.in || die
+ sed -i '/test\/test-cases\/regression\/operator-ipMatchFromFile.json \\/d' Makefile.in || die
+}
+
+src_configure() {
+ local myconf=(
+ $(use_with fuzzyhash ssdeep)
+ $(use_with geoip )
+ $(use_with geoip2 maxmind)
+ $(use_with json yajl)
+ $(use_with lmdb)
+ $(use_with lua)
+ $(use_with pcre2)
+ )
+
+ econf "${myconf[@]}"
+}
+
+src_compile() {
+ default
+
+ if use doc; then
+ cd doc && doxygen doxygen.cfg || die
+ fi
+}
+
+src_install() {
+ default
+ use doc && dodoc -r doc/html
+ find "${ED}" -name '*.la' -delete || die
+}
next reply other threads:[~2022-07-19 17:21 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-19 17:21 Conrad Kostecki [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-07-19 20:20 [gentoo-commits] repo/gentoo:master commit in: dev-libs/modsecurity/ Jakov Smolić
2022-07-19 21:38 Sam James
2022-07-20 17:01 Sam James
2022-07-27 8:11 Sam James
2022-09-09 7:34 Agostino Sarubbo
2022-09-09 7:36 Agostino Sarubbo
2022-09-09 7:36 Agostino Sarubbo
2022-09-10 6:43 Jakov Smolić
2022-11-10 16:15 Joonas Niilola
2022-12-02 3:23 Sam James
2022-12-02 3:23 Sam James
2022-12-02 3:34 Sam James
2022-12-02 3:38 Sam James
2022-12-02 17:19 John Helmert III
2023-04-26 4:03 Sam James
2023-06-23 20:03 Sam James
2023-06-23 20:03 Sam James
2023-06-23 20:16 Sam James
2023-06-23 20:28 Sam James
2023-09-01 17:19 Arthur Zamarin
2023-09-01 17:19 Arthur Zamarin
2023-09-05 10:01 Sam James
2023-09-05 10:01 Sam James
2023-09-05 10:01 Sam James
2023-09-05 10:01 Sam James
2024-01-05 5:24 Sam James
2024-01-11 14:06 Joonas Niilola
2024-02-06 3:26 Sam James
2024-02-06 5:04 Sam James
2024-02-06 5:04 Sam James
2024-02-06 5:18 Sam James
2024-02-06 5:18 Sam James
2024-10-21 12:42 Joonas Niilola
2024-10-21 12:42 Joonas Niilola
2024-10-21 12:42 Joonas Niilola
2024-11-29 22:01 Sam James
2024-11-30 0:58 Sam James
2024-11-30 10:46 Arthur Zamarin
2025-03-10 2:54 Sam James
2025-03-10 2:54 Sam James
2025-03-10 17:42 Arthur Zamarin
2025-03-10 17:42 Arthur Zamarin
2025-03-10 22:43 Sam James
2025-05-22 15:59 Sam James
2025-07-22 7:55 Sam James
2025-07-22 7:55 Sam James
2025-07-22 7:55 Sam James
2025-07-25 23:42 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1658251242.10414bf03e312ad3f46e5639c270aaadf3eb181c.conikost@gentoo \
--to=conikost@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox