- Add WITH_MLOGC knob. [0]
- Update to 2.5.7. PR: ports/126559 [0] Submitted by: Tomoyuki Sakurai <cherry@trombik.org>
This commit is contained in:
parent
c92db5ef92
commit
85503f3114
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=223999
2 changed files with 29 additions and 10 deletions
|
@ -6,8 +6,7 @@
|
|||
#
|
||||
|
||||
PORTNAME= mod_security
|
||||
PORTVERSION= 2.5.5
|
||||
PORTREVISION= 2
|
||||
PORTVERSION= 2.5.7
|
||||
CATEGORIES= www security
|
||||
MASTER_SITES= http://www.modsecurity.org/download/
|
||||
DISTNAME= ${PORTNAME:S/_//:S/2//}-apache_${PORTVERSION}
|
||||
|
@ -20,8 +19,8 @@ LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre \
|
|||
|
||||
USE_APACHE= 2.0+
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
AP_GENPLIST= yes
|
||||
AP_EXTRAS+= -DWITH_LIBXML2
|
||||
AP_INC= ${LOCALBASE}/include/libxml2
|
||||
AP_LIB= ${LOCALBASE}/lib
|
||||
USE_GNOME= libxml2
|
||||
|
@ -35,11 +34,16 @@ DOCSDIR= ${PREFIX}/share/doc/${MODULENAME}
|
|||
SUB_FILES+= mod_security2.conf
|
||||
SUB_LIST+= APACHEETCDIR="${APACHEETCDIR}"
|
||||
PLIST_FILES+= ${APACHEMODDIR}/mod_security2.so
|
||||
OPTIONS= LUA "Embedded Lua language support (EXPERIMENTAL)" off
|
||||
OPTIONS= LUA "Embedded Lua language support" off \
|
||||
MLOGC "Build ModSecurity Log Collector" off
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if !defined(SKIP_RULES)
|
||||
SUB_FILES+= pkg-message.rules
|
||||
|
||||
.if defined(WITH_MLOGC)
|
||||
PLIST_FILES+= ${PREFIX}/bin/mlogc
|
||||
.endif
|
||||
PLIST_DIRS+= ${APACHEETCDIR}/Includes/mod_security2/optional_rules
|
||||
PLIST_DIRS+= ${APACHEETCDIR}/Includes/mod_security2
|
||||
|
||||
|
@ -72,8 +76,14 @@ LIB_DEPENDS+= lua.1:${PORTSDIR}/lang/lua
|
|||
.else
|
||||
CONFIGURE_ARGS+= --without-lua
|
||||
.endif
|
||||
|
||||
.if defined(WITH_MLOGC)
|
||||
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
|
||||
CONFIGURE_ARGS+= --with-curl=${LOCALBASE}
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-curl
|
||||
.endif
|
||||
REINPLACE_ARGS= -i ""
|
||||
AP_EXTRAS+= -DWITH_LIBXML2
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '\
|
||||
|
@ -86,15 +96,24 @@ post-patch:
|
|||
${REINPLACE_CMD} -e 's|%%LUA_VER%%|${LUA_VER}|' ${WRKSRC}/configure
|
||||
.endif
|
||||
|
||||
post-build:
|
||||
.if defined(WITH_MLOGC)
|
||||
# XXX there is "mlogc-static" target in the Makefile, too
|
||||
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} mlogc
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@(cd ${WRKSRCTOP} && ${COPYTREE_SHARE} "doc rules" ${DOCSDIR}/)
|
||||
.endif
|
||||
.if defined(WITH_MLOGC)
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/mlogc-src/mlogc ${PREFIX}/bin/
|
||||
.endif
|
||||
.if !defined(SKIP_RULES)
|
||||
@${INSTALL_DATA} ${WRKDIR}/mod_security2.conf ${PREFIX}/${APACHEETCDIR}/Includes/
|
||||
@cd ${WRKSRCTOP} && ${PAX} -rw -pe -s +rules+mod_security2+ rules ${PREFIX}/${APACHEETCDIR}/Includes
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
MD5 (modsecurity-apache_2.5.5.tar.gz) = 8bd027fe079ff2516e3c722a3be6cd4c
|
||||
SHA256 (modsecurity-apache_2.5.5.tar.gz) = 626909c8408e2fd9e387f592f49e9d2c6501513b4cdc18dd89a8e9f3e124d959
|
||||
SIZE (modsecurity-apache_2.5.5.tar.gz) = 1073723
|
||||
MD5 (modsecurity-apache_2.5.7.tar.gz) = 049509c4d76048ce02cfb558d6598761
|
||||
SHA256 (modsecurity-apache_2.5.7.tar.gz) = 581b81e39fe23bae75f460547b8d4c172ffaa54ff913ccf94b62cc56b4fb3d9a
|
||||
SIZE (modsecurity-apache_2.5.7.tar.gz) = 1117167
|
||||
|
|
Loading…
Reference in a new issue