ports/142267: [patch] port www/mod_security make devel/apr optional
olli hauer
ohauer at gmx.de
Sun Jan 3 16:40:02 UTC 2010
>Number: 142267
>Category: ports
>Synopsis: [patch] port www/mod_security make devel/apr optional
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sun Jan 03 16:40:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: olli hauer <ohauer at gmx.de>
>Release:
>Organization:
>Environment:
>Description:
make devel/apr optional, for example latest apache22 contains already
# httpd -V
Server version: Apache/2.2.14 (FreeBSD)
Server built: Oct 24 2009 14:39:49
Server's Module Magic Number: 20051115:23
Server loaded: APR 1.3.9, APR-Util 1.3.9
Compiled using: APR 1.3.9, APR-Util 1.3.9
which is the same version as devel/apr.
Maybe there is another solution to check if devel/apr is really needed.
The devel/apr port will install happily and mess up your apache22.
>How-To-Repeat:
>Fix:
--- patch_mod_security.txt begins here ---
--- Makefile
+++ Makefile
@@ -16,8 +16,7 @@
MAKE_JOBS_SAFE= yes
-LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre \
- apr-1.3:${PORTSDIR}/devel/apr
+LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
USE_APACHE= 2.0+
GNU_CONFIGURE= yes
@@ -37,7 +36,8 @@
SUB_LIST+= APACHEETCDIR="${APACHEETCDIR}"
PLIST_FILES+= ${APACHEMODDIR}/mod_security2.so
OPTIONS= LUA "Embedded Lua language support" off \
- MLOGC "Build ModSecurity Log Collector" off
+ MLOGC "Build ModSecurity Log Collector" off \
+ APR "build with devel/apr" off
.include <bsd.port.pre.mk>
@@ -90,6 +90,9 @@
PLIST_FILES+= ${APACHEETCDIR}/Includes/mod_security2/base_rules/modsecurity_crs_60_correlation.conf
.endif
+.if defined(WITH_APR)
+LIB_DEPENDS+= apr-1.3:${PORTSDIR}/devel/apr
+.endif
.if defined(WITH_LUA)
USE_LUA= 5.1+
CONFIGURE_ARGS+= --with-lua=${LOCALBASE}
--- patch_mod_security.txt ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list