From owner-svn-ports-head@freebsd.org Sat Mar 5 23:57:02 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0364FA929B7; Sat, 5 Mar 2016 23:57:02 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C5F9BD69; Sat, 5 Mar 2016 23:57:01 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u25Nv0fe017910; Sat, 5 Mar 2016 23:57:00 GMT (envelope-from marino@FreeBSD.org) Received: (from marino@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u25Nv0Gj017909; Sat, 5 Mar 2016 23:57:00 GMT (envelope-from marino@FreeBSD.org) Message-Id: <201603052357.u25Nv0Gj017909@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: marino set sender to marino@FreeBSD.org using -f From: John Marino Date: Sat, 5 Mar 2016 23:57:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r410218 - head/www/mod_evasive X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Mar 2016 23:57:02 -0000 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 + 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 +.include