d0ac78c5c7
- Makefile cleanup - remove unused variables - use explicit OPTIONSFILE - mlogc is build and installed unless explicit disabled, remove useless Makefile instructions - pass MAINTAINER to submitter [1] Changelog: https://raw.github.com/SpiderLabs/ModSecurity/master/CHANGES PR: ports/186524 [1] Submitted by: Walter Hop <walter@lifeforms.nl> (new port maintainer)
69 lines
1.7 KiB
Makefile
69 lines
1.7 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= mod_security
|
|
PORTVERSION= 2.7.7
|
|
CATEGORIES= www security
|
|
MASTER_SITES= http://www.modsecurity.org/tarball/${PORTVERSION}/
|
|
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
|
|
DISTNAME= ${PORTNAME:S/_//:S/2//}-apache_${PORTVERSION}
|
|
|
|
MAINTAINER= walter@lifeforms.nl
|
|
COMMENT= Intrusion detection and prevention engine
|
|
|
|
LICENSE= APACHE20
|
|
|
|
LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre \
|
|
libapr-1.so:${PORTSDIR}/devel/apr1
|
|
|
|
USE_APACHE= 22+
|
|
USE_GNOME= libxml2
|
|
GNU_CONFIGURE= yes
|
|
|
|
AP_GENPLIST= yes
|
|
AP_INC= ${LOCALBASE}/include/libxml2
|
|
AP_LIB= ${LOCALBASE}/lib
|
|
MODULENAME= mod_security2
|
|
SRC_FILE= *.c
|
|
|
|
PORTDOCS= *
|
|
DOCSDIR= ${PREFIX}/share/doc/${MODULENAME}
|
|
|
|
SUB_FILES+= mod_security2.conf
|
|
SUB_LIST+= APACHEETCDIR="${APACHEETCDIR}"
|
|
|
|
PLIST_FILES= etc/modsecurity.conf-example \
|
|
${APACHEMODDIR}/mod_security2.so \
|
|
bin/rules-updater.pl \
|
|
lib/mod_security2.so
|
|
|
|
OPTIONS_DEFINE= LUA MLOGC
|
|
|
|
LUA_CONFIGURE_ON= --with-lua=${LOCALBASE}
|
|
LUA_CONFIGURE_OFF+= --without-lua
|
|
LUA_USE= LUA=5.1+
|
|
|
|
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
|
|
|
|
# ap2x- prefix OPTIONSFILE fix
|
|
OPTIONSFILE= ${PORT_DBDIR}/www_mod_security/options
|
|
.include <bsd.port.options.mk>
|
|
|
|
REINPLACE_ARGS= -i ""
|
|
AP_EXTRAS+= -DWITH_LIBXML2
|
|
CONFIGURE_ARGS+= --with-apxs=${APXS} --with-pcre=${LOCALBASE}
|
|
|
|
pre-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/modsecurity.conf-recommended \
|
|
${STAGEDIR}${PREFIX}/etc/modsecurity.conf-example
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} "doc" ${STAGEDIR}${DOCSDIR})
|
|
|
|
.include <bsd.port.mk>
|