Date: Sun, 20 Jul 2008 08:00:39 +0900 (JST) From: Tomoyuki Sakurai <cherry@trombik.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: araujo@FreeBSD.org Subject: ports/125789: [PATCH] www/mod_security: SecRuleScript (lua) support Message-ID: <20080719230039.0DFC51CC0D@spica.trombik.org> Resent-Message-ID: <200807192310.m6JNA2um074739@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 125789 >Category: ports >Synopsis: [PATCH] www/mod_security: SecRuleScript (lua) support >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jul 19 23:10:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Tomoyuki Sakurai >Release: FreeBSD 7.0-STABLE amd64 >Organization: >Environment: System: FreeBSD spica.trombik.org 7.0-STABLE FreeBSD 7.0-STABLE #5: Thu Jul 10 22:29:26 JST 2008 >Description: Add SecRuleScript (lua) support. Tested on amd64 only. Added file(s): - files/patch-configure Port maintainer (araujo@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- mod_security-2.5.5_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/www/mod_security/Makefile /usr/home/cherry/svk/ports/www/mod_security/Makefile --- /usr/ports/www/mod_security/Makefile 2008-07-08 07:50:42.000000000 +0900 +++ /usr/home/cherry/svk/ports/www/mod_security/Makefile 2008-07-20 07:27:03.000000000 +0900 @@ -35,6 +35,7 @@ SUB_FILES+= mod_security2.conf SUB_LIST+= APACHEETCDIR="${APACHEETCDIR}" PLIST_FILES+= ${APACHEMODDIR}/mod_security2.so +OPTIONS= LUA "Embedded Lua language support (EXPERIMENTAL)" off .if !defined(SKIP_RULES) SUB_FILES+= pkg-message.rules @@ -64,6 +65,14 @@ .endif +.if defined(WITH_LUA) +USE_LUA= 5.1+ +CONFIGURE_ARGS+= --with-lua=${LOCALBASE} +LIB_DEPENDS+= lua.1:${PORTSDIR}/lang/lua +.else +CONFIGURE_ARGS+= --without-lua +.endif + REINPLACE_ARGS= -i "" post-patch: @@ -73,6 +82,9 @@ 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 +.if defined(WITH_LUA) + ${REINPLACE_CMD} -e 's|%%LUA_VER%%|${LUA_VER}|' ${WRKSRC}/configure +.endif post-install: .if !defined(NOPORTDOCS) diff -ruN --exclude=CVS /usr/ports/www/mod_security/files/patch-configure /usr/home/cherry/svk/ports/www/mod_security/files/patch-configure --- /usr/ports/www/mod_security/files/patch-configure 1970-01-01 09:00:00.000000000 +0900 +++ /usr/home/cherry/svk/ports/www/mod_security/files/patch-configure 2008-07-20 06:49:42.000000000 +0900 @@ -0,0 +1,11 @@ +--- configure.orig 2008-06-04 09:32:50.000000000 +0900 ++++ configure 2008-06-04 09:35:07.000000000 +0900 +@@ -5132,7 +5132,7 @@ + + + LUA_CONFIG="pkg-config" +-LUA_PKGNAMES="lua5.1 lua5 lua" ++LUA_PKGNAMES="lua5.1 lua5 lua lua-%%LUA_VER%% " + LUA_CFLAGS="" + LUA_LIBS="" + --- mod_security-2.5.5_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080719230039.0DFC51CC0D>