Date: Sat, 5 Mar 2016 23:57:00 +0000 (UTC) From: John Marino <marino@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r410218 - head/www/mod_evasive Message-ID: <201603052357.u25Nv0Gj017909@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marino Date: Sat Mar 5 23:57:00 2016 New Revision: 410218 URL: https://svnweb.freebsd.org/changeset/ports/410218 Log: www/mod_evasive: Add support for Apache 2.4 The solution to fixing mod_evasive support for Apache 2.4 has been available on the internet for well over a year and it's trivial. Reported by: Bill Richter Approved by: just-fix-it Modified: head/www/mod_evasive/Makefile Modified: head/www/mod_evasive/Makefile ============================================================================== --- head/www/mod_evasive/Makefile Sat Mar 5 23:45:35 2016 (r410217) +++ head/www/mod_evasive/Makefile Sat Mar 5 23:57:00 2016 (r410218) @@ -16,20 +16,25 @@ LICENSE= GPLv2 WRKSRC= ${WRKDIR}/${PORTNAME} -USE_APACHE= 22 +USE_APACHE= 22+ AP_FAST_BUILD= yes AP_GENPLIST= yes MODULENAME= ${PORTNAME}20 PORTDOCS= README test.pl +.include <bsd.port.pre.mk> + post-patch: @${REINPLACE_CMD} -e "s|/bin/mail|/usr/bin/mail|g" \ ${WRKSRC}/mod_evasive.c ${WRKSRC}/mod_evasive20.c \ ${WRKSRC}/mod_evasiveNSAPI.c +.if ${APACHE_VERSION:M24} + ${REINPLACE_CMD} -e 's/remote_ip/client_ip/g' ${WRKSRC}/mod_evasive20.c +.endif post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} -.include <bsd.port.mk> +.include <bsd.port.post.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603052357.u25Nv0Gj017909>