svn commit: r410218 - head/www/mod_evasive

John Marino marino at FreeBSD.org
Sat Mar 5 23:57:02 UTC 2016


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>


More information about the svn-ports-all mailing list