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> |