Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 2014 16:41:09 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r355416 - head/www/mod_security
Message-ID:  <201405261641.s4QGf99J040047@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Mon May 26 16:41:08 2014
New Revision: 355416
URL: http://svnweb.freebsd.org/changeset/ports/355416
QAT: https://qat.redports.org/buildarchive/r355416/

Log:
  Prefer lua 5.2 over lua 5.1

Modified:
  head/www/mod_security/Makefile

Modified: head/www/mod_security/Makefile
==============================================================================
--- head/www/mod_security/Makefile	Mon May 26 16:35:58 2014	(r355415)
+++ head/www/mod_security/Makefile	Mon May 26 16:41:08 2014	(r355416)
@@ -2,7 +2,7 @@
 
 PORTNAME=	mod_security
 PORTVERSION=	2.7.7
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www security
 MASTER_SITES=	http://www.modsecurity.org/tarball/${PORTVERSION}/
 PKGNAMEPREFIX=	${APACHE_PKGNAMEPREFIX}
@@ -19,6 +19,7 @@ LIB_DEPENDS+=	libpcre.so:${PORTSDIR}/dev
 USE_APACHE=	22+
 USE_GNOME=	libxml2
 GNU_CONFIGURE=	yes
+USES=		perl5
 
 AP_GENPLIST=	yes
 AP_INC=	${LOCALBASE}/include/libxml2
@@ -41,7 +42,7 @@ OPTIONS_DEFINE=	LUA MLOGC
 
 LUA_CONFIGURE_ON=	--with-lua=${LOCALBASE}
 LUA_CONFIGURE_OFF+=	--without-lua
-LUA_USE=		LUA=5.1+
+LUA_USES=		lua
 
 MLOGC_DESC=		Build ModSecurity Log Collector
 MLOGC_CONFIGURE_ON=	--with-curl=${LOCALBASE} --disable-errors
@@ -57,6 +58,9 @@ REINPLACE_ARGS=	-i ""
 AP_EXTRAS+=	-DWITH_LIBXML2
 CONFIGURE_ARGS+=	--with-apxs=${APXS} --with-pcre=${LOCALBASE}
 
+post-patch:
+	@${REINPLACE_CMD} -e "s/lua5.1/lua-${LUA_VER}/g" ${WRKSRC}/configure
+
 pre-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405261641.s4QGf99J040047>