FreeBSD Bugzilla – Attachment 89585 Details for
Bug 126559
[PATCH] www/mod_security: add WITH_MLOGC knob, ModSecurity Log Collector
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
mod_security-2.5.5_3.patch
mod_security-2.5.5_3.patch (text/plain), 2.48 KB, created by
Tomoyuki Sakurai
on 2008-08-16 02:30:01 UTC
(
hide
)
Description:
mod_security-2.5.5_3.patch
Filename:
MIME Type:
Creator:
Tomoyuki Sakurai
Created:
2008-08-16 02:30:01 UTC
Size:
2.48 KB
patch
obsolete
>diff -ruN --exclude=CVS /usr/ports/www/mod_security/Makefile /usr/home/cherry/svk/ports/www/mod_security/Makefile >--- /usr/ports/www/mod_security/Makefile 2008-07-21 02:59:44.000000000 +0900 >+++ /usr/home/cherry/svk/ports/www/mod_security/Makefile 2008-08-16 10:10:16.000000000 +0900 >@@ -7,7 +7,7 @@ > > PORTNAME= mod_security > PORTVERSION= 2.5.5 >-PORTREVISION= 2 >+PORTREVISION= 3 > CATEGORIES= www security > MASTER_SITES= http://www.modsecurity.org/download/ > DISTNAME= ${PORTNAME:S/_//:S/2//}-apache_${PORTVERSION} >@@ -20,8 +20,8 @@ > > 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 +35,19 @@ > 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 (EXPERIMENTAL)" off \ >+ MLOGC "build ModSecurity Log Collector (mlogc)" off >+ >+.include <bsd.port.pre.mk> >+ >+# XXX make portlint happy >+AP_EXTRAS+= -DWITH_LIBXML2 > > .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,7 +80,12 @@ > .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 "" > > post-patch: >@@ -86,15 +99,24 @@ > ${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>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 126559
: 89585