diff options
author | pawel <pawel@FreeBSD.org> | 2014-02-04 23:40:39 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-02-04 23:40:39 +0800 |
commit | 69013c23bcd3428e19426e53a7a1456e7bb8d5de (patch) | |
tree | 41796e32b9c60e44d51d40097ee72d42add5cbc0 /www | |
parent | 0e021fa85c17f0aed783d1f2897ac4a7fb135b0b (diff) | |
download | freebsd-ports-gnome-69013c23bcd3428e19426e53a7a1456e7bb8d5de.tar.gz freebsd-ports-gnome-69013c23bcd3428e19426e53a7a1456e7bb8d5de.tar.zst freebsd-ports-gnome-69013c23bcd3428e19426e53a7a1456e7bb8d5de.zip |
- Fix build when LUA=on [1]
- Remove leading article from COMMENT
- Convert to LIB_DEPENDS format
- Use option helpers
- Support stage
PR: ports/182894 [1]
Submitted by: Matthew X. Economou <xenophon+fbsdports@irtnog.org>
Diffstat (limited to 'www')
-rw-r--r-- | www/mod_security/Makefile | 48 |
1 files changed, 21 insertions, 27 deletions
diff --git a/www/mod_security/Makefile b/www/mod_security/Makefile index 93e34b1c2cda..2fa2882d3df5 100644 --- a/www/mod_security/Makefile +++ b/www/mod_security/Makefile @@ -9,12 +9,12 @@ PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX} DISTNAME= ${PORTNAME:S/_//:S/2//}-apache_${PORTVERSION} MAINTAINER= ports@FreeBSD.org -COMMENT= An intrusion detection and prevention engine +COMMENT= Intrusion detection and prevention engine LICENSE= APACHE20 -LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre \ - apr-1:${PORTSDIR}/devel/apr1 +LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre \ + libapr-1.so:${PORTSDIR}/devel/apr1 USE_APACHE= 22+ GNU_CONFIGURE= yes @@ -35,26 +35,18 @@ PLIST_FILES= etc/modsecurity.conf-example \ lib/mod_security2.so OPTIONS_DEFINE= LUA MLOGC -MLOGC_DESC= Build ModSecurity Log Collector -NO_STAGE= yes -.include <bsd.port.pre.mk> +LUA_CONFIGURE_ON= --with-lua=${LOCALBASE} +LUA_CONFIGURE_OFF+= --without-lua +LUA_USE= LUA=5.1+ -.if ${PORT_OPTIONS:MMLOGC} -LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl -CONFIGURE_ARGS+= --with-curl=${LOCALBASE} --disable-errors -PLIST_FILES+= bin/mlogc bin/mlogc-batch-load.pl -.else -CONFIGURE_ARGS+= --disable-mlogc -.endif +MLOGC_DESC= Build ModSecurity Log Collector +MLOGC_CONFIGURE_ON= --with-curl=${LOCALBASE} --disable-errors +MLOGC_CONFIGURE_OFF= --disable-mlogc +MLOGC_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl +MLOGC_PLIST_FILES= bin/mlogc bin/mlogc-batch-load.pl -.if ${PORT_OPTIONS:MLUA} -USE_LUA= 5.1+ -CONFIGURE_ARGS+= --with-lua=${LOCALBASE} -LIB_DEPENDS+= lua-5.1.5:${PORTSDIR}/lang/lua -.else -CONFIGURE_ARGS+= --without-lua -.endif +.include <bsd.port.options.mk> REINPLACE_ARGS= -i "" AP_EXTRAS+= -DWITH_LIBXML2 @@ -66,14 +58,16 @@ post-build: cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} mlogc .endif +pre-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR} + post-install: - ${INSTALL_DATA} ${WRKSRC}/modsecurity.conf-recommended ${PREFIX}/etc/modsecurity.conf-example -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @(cd ${WRKSRC} && ${COPYTREE_SHARE} "doc" ${DOCSDIR}/) -.endif + ${INSTALL_DATA} ${WRKSRC}/modsecurity.conf-recommended \ + ${STAGEDIR}${PREFIX}/etc/modsecurity.conf-example + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${COPYTREE_SHARE} "doc" ${STAGEDIR}${DOCSDIR}) .if ${PORT_OPTIONS:MMLOGC} - ${INSTALL_PROGRAM} ${WRKSRC}/mlogc/mlogc ${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/mlogc/mlogc ${STAGEDIR}${PREFIX}/bin .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |