|
Lines 35-40
Link Here
|
| 35 |
SUB_FILES+= mod_security2.conf |
35 |
SUB_FILES+= mod_security2.conf |
| 36 |
SUB_LIST+= APACHEETCDIR="${APACHEETCDIR}" |
36 |
SUB_LIST+= APACHEETCDIR="${APACHEETCDIR}" |
| 37 |
PLIST_FILES+= ${APACHEMODDIR}/mod_security2.so |
37 |
PLIST_FILES+= ${APACHEMODDIR}/mod_security2.so |
|
|
38 |
OPTIONS= LUA "Embedded Lua language support (EXPERIMENTAL)" off |
| 38 |
|
39 |
|
| 39 |
.if !defined(SKIP_RULES) |
40 |
.if !defined(SKIP_RULES) |
| 40 |
SUB_FILES+= pkg-message.rules |
41 |
SUB_FILES+= pkg-message.rules |
|
Lines 64-69
Link Here
|
| 64 |
|
65 |
|
| 65 |
.endif |
66 |
.endif |
| 66 |
|
67 |
|
|
|
68 |
.if defined(WITH_LUA) |
| 69 |
USE_LUA= 5.1+ |
| 70 |
CONFIGURE_ARGS+= --with-lua=${LOCALBASE} |
| 71 |
LIB_DEPENDS+= lua.1:${PORTSDIR}/lang/lua |
| 72 |
.else |
| 73 |
CONFIGURE_ARGS+= --without-lua |
| 74 |
.endif |
| 75 |
|
| 67 |
REINPLACE_ARGS= -i "" |
76 |
REINPLACE_ARGS= -i "" |
| 68 |
|
77 |
|
| 69 |
post-patch: |
78 |
post-patch: |
|
Lines 73-78
Link Here
|
| 73 |
s|SecDebugLog.*logs/modsec_debug.log|SecDebugLog /var/log/httpd-modsec2_debug.log|; \ |
82 |
s|SecDebugLog.*logs/modsec_debug.log|SecDebugLog /var/log/httpd-modsec2_debug.log|; \ |
| 74 |
s|SecServerSignature "Apache/2.2.0 (Fedora)"|SecServerSignature "Apache/${APACHE_VERSION:C/[0-9]/\0./g}x (${OPSYS})"|; \ |
83 |
s|SecServerSignature "Apache/2.2.0 (Fedora)"|SecServerSignature "Apache/${APACHE_VERSION:C/[0-9]/\0./g}x (${OPSYS})"|; \ |
| 75 |
' ${WRKSRCTOP}/rules/modsecurity_crs_10_config.conf |
84 |
' ${WRKSRCTOP}/rules/modsecurity_crs_10_config.conf |
|
|
85 |
.if defined(WITH_LUA) |
| 86 |
${REINPLACE_CMD} -e 's|%%LUA_VER%%|${LUA_VER}|' ${WRKSRC}/configure |
| 87 |
.endif |
| 76 |
|
88 |
|
| 77 |
post-install: |
89 |
post-install: |
| 78 |
.if !defined(NOPORTDOCS) |
90 |
.if !defined(NOPORTDOCS) |