aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_security21
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2007-03-09 17:46:21 +0800
committerrafan <rafan@FreeBSD.org>2007-03-09 17:46:21 +0800
commite645eefdd25a9869f369210e63517afd459f2fbc (patch)
tree2236527974d3ffce3d4750c9031f0c5835a5a5e3 /www/mod_security21
parent0831dd89786fdbe5febfd1481b9831939e6871eb (diff)
downloadfreebsd-ports-gnome-e645eefdd25a9869f369210e63517afd459f2fbc.tar.gz
freebsd-ports-gnome-e645eefdd25a9869f369210e63517afd459f2fbc.tar.zst
freebsd-ports-gnome-e645eefdd25a9869f369210e63517afd459f2fbc.zip
- Add missing files in previous update
- Correct debug log file name PR: pports/110121 Submitted by: Dominic Mitchell <dom at happygiraffe.net> (maintainer) Pointy hat to: rafan
Diffstat (limited to 'www/mod_security21')
-rw-r--r--www/mod_security21/Makefile2
-rw-r--r--www/mod_security21/files/mod_security2.conf.in3
-rw-r--r--www/mod_security21/files/pkg-message.rules.in10
3 files changed, 14 insertions, 1 deletions
diff --git a/www/mod_security21/Makefile b/www/mod_security21/Makefile
index 2d80b16dcfd9..df5d574fa293 100644
--- a/www/mod_security21/Makefile
+++ b/www/mod_security21/Makefile
@@ -64,7 +64,7 @@ post-patch:
@${REINPLACE_CMD} -e '\
s|SecRuleEngine On|SecRuleEngine DetectionOnly|; \
s|SecAuditLog.*logs/modsec_audit.log|SecAuditLog /var/log/httpd-modsec2_audit.log|; \
- s|SecDebugLog.*logs/modsec_debug.log|SecAuditLog /var/log/httpd-modsec2_debug.log|; \
+ s|SecDebugLog.*logs/modsec_debug.log|SecDebugLog /var/log/httpd-modsec2_debug.log|; \
s|SecServerSignature "Apache/2.2.0 (Fedora)"|SecServerSignature "Apache/${APACHE_VERSION:C/[0-9]/\0./g}x (${OPSYS})"|; \
' ${WRKSRCTOP}/rules/modsecurity_crs_10_config.conf
diff --git a/www/mod_security21/files/mod_security2.conf.in b/www/mod_security21/files/mod_security2.conf.in
new file mode 100644
index 000000000000..9553e12a1cc2
--- /dev/null
+++ b/www/mod_security21/files/mod_security2.conf.in
@@ -0,0 +1,3 @@
+<IfModule security2_module>
+ Include %%APACHEETCDIR%%/Includes/mod_security2/*.conf
+</IfModule>
diff --git a/www/mod_security21/files/pkg-message.rules.in b/www/mod_security21/files/pkg-message.rules.in
new file mode 100644
index 000000000000..206d2f1aae54
--- /dev/null
+++ b/www/mod_security21/files/pkg-message.rules.in
@@ -0,0 +1,10 @@
+
+The modsecurity 2 Core Rules have been installed in
+
+ %%PREFIX%%/%%APACHEETCDIR%%/Includes/mod_security2/
+
+and run in "DetectionOnly" mode as not to disturb operatings.
+
+Please read http://www.modsecurity.org/projects/rules/index.html
+
+Logging is done to /var/log/httpd-modsec-*.log