View | Details | Raw Unified | Return to bug 109855 | Differences between
and this patch

Collapse All | Expand All

(-)mod_security2/Makefile (-1 / +39 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	mod_security2
8
PORTNAME=	mod_security2
9
PORTVERSION=	2.0.4
9
PORTVERSION=	2.1.0
10
CATEGORIES=	www security
10
CATEGORIES=	www security
11
MASTER_SITES=	http://www.modsecurity.org/download/
11
MASTER_SITES=	http://www.modsecurity.org/download/
12
DISTNAME=	${PORTNAME:S/_//:S/2//}-apache_${PORTVERSION}
12
DISTNAME=	${PORTNAME:S/_//:S/2//}-apache_${PORTVERSION}
Lines 24-29 Link Here
24
PORTDOCS=	*
24
PORTDOCS=	*
25
DOCS=		CHANGES LICENSE README.TXT modsecurity.conf-minimal doc
25
DOCS=		CHANGES LICENSE README.TXT modsecurity.conf-minimal doc
26
DOCSDIR=	${TARGETDIR}/share/doc/${MODULENAME}
26
DOCSDIR=	${TARGETDIR}/share/doc/${MODULENAME}
27
SUB_FILES+=mod_security2.conf
28
SUB_LIST+=APACHEETCDIR="${APACHEETCDIR}"
29
30
.if !defined(SKIP_RULES)
31
SUB_FILES+=pkg-message.rules
32
33
PLIST_DIRS+=${APACHEETCDIR}/Includes/mod_security2/blocking
34
PLIST_DIRS+=${APACHEETCDIR}/Includes/mod_security2
35
36
PLIST_FILES+=${APACHEETCDIR}/Includes/mod_security2.conf
37
PLIST_FILES+=${APACHEETCDIR}/Includes/mod_security2/CHANGELOG
38
PLIST_FILES+=${APACHEETCDIR}/Includes/mod_security2/LICENSE
39
PLIST_FILES+=${APACHEETCDIR}/Includes/mod_security2/README
40
PLIST_FILES+=${APACHEETCDIR}/Includes/mod_security2/blocking/modsecurity_crs_20_protocol_violations.conf
41
PLIST_FILES+=${APACHEETCDIR}/Includes/mod_security2/blocking/modsecurity_crs_21_protocol_anomalies.conf
42
PLIST_FILES+=${APACHEETCDIR}/Includes/mod_security2/blocking/modsecurity_crs_40_generic_attacks.conf
43
PLIST_FILES+=${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_10_config.conf
44
PLIST_FILES+=${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_20_protocol_violations.conf
45
PLIST_FILES+=${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_21_protocol_anomalies.conf
46
PLIST_FILES+=${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_30_http_policy.conf
47
PLIST_FILES+=${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_35_bad_robots.conf
48
PLIST_FILES+=${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_40_generic_attacks.conf
49
PLIST_FILES+=${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_45_trojans.conf
50
PLIST_FILES+=${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_50_outbound.conf
51
PLIST_FILES+=${APACHEETCDIR}/Includes/mod_security2/modsecurity_crs_55_marketing.conf
52
.endif
27
53
28
.if defined(WITH_LIBXML2)
54
.if defined(WITH_LIBXML2)
29
AP_EXTRAS+=	-DWITH_LIBXML2
55
AP_EXTRAS+=	-DWITH_LIBXML2
Lines 32-41 Link Here
32
USE_GNOME=	libxml2
58
USE_GNOME=	libxml2
33
.endif
59
.endif
34
60
61
post-patch:
62
	@${REINPLACE_CMD}	-e 's|SecRuleEngine On|SecRuleEngine DetectionOnly|' \
63
						-e 's|SecAuditLog.*logs/modsec_audit.log|SecAuditLog /var/log/httpd-modsec2_audit.log|' \
64
						-e 's|SecDebugLog.*logs/modsec_debug.log|SecAuditLog /var/log/httpd-modsec2_debug.log|' \
65
						-e 's|SecServerSignature "Apache/2.2.0 (Fedora)"|SecServerSignature "Apache/${APACHE_VERSION:C/[0-9]/\0./g}x (${OPSYS})"|' \
66
		${WRKSRCTOP}/rules/modsecurity_crs_10_config.conf
67
35
post-install:
68
post-install:
36
.if !defined(NOPORTDOCS)
69
.if !defined(NOPORTDOCS)
37
	@${MKDIR} ${DOCSDIR}
70
	@${MKDIR} ${DOCSDIR}
38
	@(cd ${WRKSRCTOP} && ${TAR} cf - ${DOCS}) | (cd ${DOCSDIR} && ${TAR} xpof -)
71
	@(cd ${WRKSRCTOP} && ${TAR} cf - ${DOCS}) | (cd ${DOCSDIR} && ${TAR} xpof -)
72
.endif
73
.if !defined(SKIP_RULES)
74
	@${INSTALL_DATA} ${WRKDIR}/mod_security2.conf ${PREFIX}/${APACHEETCDIR}/Includes/
75
	@cd ${WRKSRCTOP} && ${PAX} -rw -pe -s +rules+mod_security2+ rules  ${PREFIX}/${APACHEETCDIR}/Includes
76
	@${CAT} ${PKGMESSAGE}
39
.endif
77
.endif
40
78
41
.include <bsd.port.mk>
79
.include <bsd.port.mk>
(-)mod_security2/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (modsecurity-apache_2.0.4.tar.gz) = b63f093c7a24b766e6e8c9c8ffc13084
1
MD5 (modsecurity-apache_2.1.0.tar.gz) = 2e919766f2878c4ee46334816004dd15
2
SHA256 (modsecurity-apache_2.0.4.tar.gz) = 622c3478515c951189334aa9a60ae7e71dfbbc671d983bf2f4b732a5fdd230a1
2
SHA256 (modsecurity-apache_2.1.0.tar.gz) = fd37d64f7ffe193101da20f6e6e2016105de62948f3976aceaa96f636606fe74
3
SIZE (modsecurity-apache_2.0.4.tar.gz) = 303477
3
SIZE (modsecurity-apache_2.1.0.tar.gz) = 650133
(-)mod_security2/files/mod_security2.conf.in (+5 lines)
Line 0 Link Here
1
<IfModule security2_module>
2
3
        Include %%APACHEETCDIR%%/Includes/mod_security2/*.conf
4
5
</IfModule>
(-)mod_security2/files/pkg-message.rules.in (+10 lines)
Line 0 Link Here
1
2
The modsecurity 2 Core Rules have been installed in 
3
4
%%PREFIX%%/%%APACHEETCDIR%%/Includes/mod_security2/
5
6
and run in "DetectionOnly" mode as not to disturb operatings.
7
8
Please read http://www.modsecurity.org/projects/rules/index.html
9
10
logging is done to /var/log/httpd-modsec-*.log

Return to bug 109855