View | Details | Raw Unified | Return to bug 125789
Collapse All | Expand All

(-)/usr/home/cherry/svk/ports/www/mod_security/Makefile (+12 lines)
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)
(-)/usr/home/cherry/svk/ports/www/mod_security/files/patch-configure (+11 lines)
Line 0 Link Here
1
--- configure.orig	2008-06-04 09:32:50.000000000 +0900
2
+++ configure	2008-06-04 09:35:07.000000000 +0900
3
@@ -5132,7 +5132,7 @@
4
 
5
 
6
 LUA_CONFIG="pkg-config"
7
-LUA_PKGNAMES="lua5.1 lua5 lua"
8
+LUA_PKGNAMES="lua5.1 lua5 lua lua-%%LUA_VER%% "
9
 LUA_CFLAGS=""
10
 LUA_LIBS=""
11
 

Return to bug 125789