pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
modsecurity: Update to 2.9.13 (cleaning required)
Module Name: pkgsrc-wip
Committed By: Marcin Gondek <drixter%e-utp.net@localhost>
Pushed By: drixter
Date: Sun Jul 5 10:27:28 2026 +0200
Changeset: bbba3f705d8513e7ad385a0cee9abe320e061d27
Modified Files:
Makefile
Added Files:
ap-modsecurity2/DESCR
ap-modsecurity2/MESSAGE
ap-modsecurity2/Makefile
ap-modsecurity2/PLIST
ap-modsecurity2/TODO
ap-modsecurity2/distinfo
ap-modsecurity2/options.mk
Log Message:
modsecurity: Update to 2.9.13 (cleaning required)
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=bbba3f705d8513e7ad385a0cee9abe320e061d27
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
ap-modsecurity2/DESCR | 7 +++++++
ap-modsecurity2/MESSAGE | 26 +++++++++++++++++++++++
ap-modsecurity2/Makefile | 52 ++++++++++++++++++++++++++++++++++++++++++++++
ap-modsecurity2/PLIST | 10 +++++++++
ap-modsecurity2/TODO | 2 ++
ap-modsecurity2/distinfo | 5 +++++
ap-modsecurity2/options.mk | 17 +++++++++++++++
8 files changed, 120 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index accbe1b8a4..bbc0d97e36 100644
--- a/Makefile
+++ b/Makefile
@@ -211,6 +211,7 @@ SUBDIR+= apk-tools
SUBDIR+= apple-codesign
SUBDIR+= apstget
SUBDIR+= apvlv
+SUBDIR+= ap-modsecurity2
SUBDIR+= aqemu
SUBDIR+= aquaria
SUBDIR+= aquatone
diff --git a/ap-modsecurity2/DESCR b/ap-modsecurity2/DESCR
new file mode 100644
index 0000000000..d36a29a74f
--- /dev/null
+++ b/ap-modsecurity2/DESCR
@@ -0,0 +1,7 @@
+ModSecurity is an open source intrusion detection and prevention engine for
+web applications (or a web application firewall). Operating as an Apache Web
+server module or standalone, the purpose of ModSecurity is to increase web
+application security, protecting web applications from known and unknown
+attacks.
+
+This version is usable with apache 2.2 and 2.4.
diff --git a/ap-modsecurity2/MESSAGE b/ap-modsecurity2/MESSAGE
new file mode 100644
index 0000000000..c359d6714a
--- /dev/null
+++ b/ap-modsecurity2/MESSAGE
@@ -0,0 +1,26 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.3 2018/01/29 09:48:45 he Exp $
+
+In order to use this module in your Apache installation, you will need
+to add the following to your httpd.conf file:
+
+ LoadModule security2_module lib/httpd/mod_security2.so
+
+In addition to this you will need to specify mod_security configuration
+directives in your httpd.conf. This can be achieved by adding the
+following to your httpd.conf:
+
+ <IfModule mod_security2.c>
+ Include ${PKG_SYSCONFDIR}/httpd/modsecurity.conf
+ </IfModule>
+
+Example configuration files for modsecurity are available:
+
+ ${PREFIX}/share/examples/ap-modsecurity/
+
+In order to use the XML support in your Apache installation, you will need
+to add the following to your httpd.conf file:
+
+ LoadFile ${PREFIX}/lib/libxml2.so
+
+===========================================================================
diff --git a/ap-modsecurity2/Makefile b/ap-modsecurity2/Makefile
new file mode 100644
index 0000000000..9fa10b843a
--- /dev/null
+++ b/ap-modsecurity2/Makefile
@@ -0,0 +1,52 @@
+# $NetBSD: Makefile,v 1.75 2026/05/14 16:41:59 ryoon Exp $
+
+DISTNAME= modsecurity-v2.9.13
+PKGNAME= ${APACHE_PKG_PREFIX}-modsecurity-2.9.13
+CATEGORIES= www security
+MASTER_SITES= ${MASTER_SITE_GITHUB:=owasp-modsecurity/ModSecurity/releases/download/v${PKGVERSION_NOREV}/}
+
+MAINTAINER= drixter%e-utp.net@localhost
+HOMEPAGE= https://github.com/owasp-modsecurity/ModSecurity/
+COMMENT= Intrusion detection and prevention engine for web applications
+LICENSE= apache-2.0
+
+APACHE_MODULE= yes
+USE_APR= yes
+USE_LANGUAGES= c++ c
+
+.include "../../mk/apache.mk"
+.include "options.mk"
+
+GNU_CONFIGURE= YES
+USE_TOOLS+= pax pkg-config
+USE_LIBTOOL= yes
+BUILD_DIRS= apache2
+
+CONFIGURE_ARGS+= --with-apxs=${APXS}
+CONFIGURE_ARGS+= --with-pcre=${BUILDLINK_PREFIX.pcre}
+CONFIGURE_ARGS+= --with-libxml=${BUILDLINK_PREFIX.libxml2}
+CONFIGURE_ARGS+= --with-lua=${BUILDLINK_PREFIX.lua51}
+CONFIGURE_ARGS+= --with-apr=${BUILDLINK_PREFIX.apr}
+CONFIGURE_ARGS+= --with-apu=${BUILDLINK_PREFIX.apr-util}
+
+INSTALLATION_DIRS+= lib/httpd
+
+EGDIR= share/examples/ap-modsecurity
+DOCDIR= share/doc/ap-modsecurity
+INSTALLATION_DIRS+= ${EGDIR} ${DOCDIR}
+
+CONF_FILES= ${PREFIX}/${EGDIR}/modsecurity.conf-recommended \
+ ${PKG_SYSCONFDIR}/httpd/modsecurity.conf
+
+post-install:
+ ${RM} -f ${DESTDIR}${PREFIX}/lib/mod_security2.so
+ ${INSTALL_DATA} ${WRKSRC}/modsecurity.conf-recommended \
+ ${DESTDIR}${PREFIX}/${EGDIR}
+ cd ${WRKSRC}/doc && \
+ pax -rw . ${DESTDIR}${PREFIX}/${DOCDIR}
+
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
+.include "../../lang/lua51/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/ap-modsecurity2/PLIST b/ap-modsecurity2/PLIST
new file mode 100644
index 0000000000..ed0551cb2e
--- /dev/null
+++ b/ap-modsecurity2/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD$
+lib/httpd/mod_security2.so
+share/doc/ap-modsecurity/Makefile.am
+share/doc/ap-modsecurity/Makefile.in
+share/doc/ap-modsecurity/README.txt
+share/doc/ap-modsecurity/doxygen-apache.in
+share/doc/ap-modsecurity/doxygen-iis.in
+share/doc/ap-modsecurity/doxygen-logo.png
+share/doc/ap-modsecurity/doxygen-standalone.in
+share/examples/ap-modsecurity/modsecurity.conf-recommended
diff --git a/ap-modsecurity2/TODO b/ap-modsecurity2/TODO
new file mode 100644
index 0000000000..119c97364a
--- /dev/null
+++ b/ap-modsecurity2/TODO
@@ -0,0 +1,2 @@
+Just make it compile and working, require cleaning and checking
+
diff --git a/ap-modsecurity2/distinfo b/ap-modsecurity2/distinfo
new file mode 100644
index 0000000000..25e94c7274
--- /dev/null
+++ b/ap-modsecurity2/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.12 2021/10/26 11:16:59 nia Exp $
+
+BLAKE2s (modsecurity-v2.9.13.tar.gz) = fead1fae167d34c71714acafbcd37a1130d8ba6c52d23daa13a5fd080306be16
+SHA512 (modsecurity-v2.9.13.tar.gz) = a3f565341a6c553966648e9c442d0e8baa297bd15e7f88d5dfef4b60f7d205ce0c8732abb7014f35511823779a704264e9447b9b6bbad68f5104291e3a572076
+Size (modsecurity-v2.9.13.tar.gz) = 6513217 bytes
diff --git a/ap-modsecurity2/options.mk b/ap-modsecurity2/options.mk
new file mode 100644
index 0000000000..f43004ac2d
--- /dev/null
+++ b/ap-modsecurity2/options.mk
@@ -0,0 +1,17 @@
+# $NetBSD: options.mk,v 1.4 2011/03/19 13:31:52 obache Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.ap-modsecurity2
+
+PKG_SUPPORTED_OPTIONS= curl
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Bring in support for curl
+###
+.if !empty(PKG_OPTIONS:Mcurl)
+. include "../../www/curl/buildlink3.mk"
+CONFIGURE_ARGS+= --with-curl=${BUILDLINK_PREFIX.curl}
+.else
+CONFIGURE_ARGS+= --without-curl
+.endif
Home |
Main Index |
Thread Index |
Old Index