freebsd-ports/www/mod_evasive/Makefile
John Marino 89a819df06 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
2016-03-05 23:57:00 +00:00

40 lines
961 B
Makefile

# Created by: Xavier Beaudouin <kiwi@oav.net>
# $FreeBSD$
PORTNAME= mod_evasive
PORTVERSION= 1.10.1
PORTREVISION= 1
CATEGORIES= www security
MASTER_SITES= http://www.zdziarski.com/blog/wp-content/uploads/2010/02/
DISTNAME= mod_evasive_${PORTVERSION}
DIST_SUBDIR= apache2
MAINTAINER= kiwi@oav.net
COMMENT= Apache module to try to protect the HTTP Server from DoS/DDoS attacks
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/${PORTNAME}
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.post.mk>