head 1.6; access; symbols pkgsrc-2026Q3:1.4.0.2 pkgsrc-2026Q3-base:1.4 pkgsrc-2026Q2:1.3.0.6 pkgsrc-2026Q2-base:1.3 pkgsrc-2026Q1:1.3.0.4 pkgsrc-2026Q1-base:1.3 pkgsrc-2025Q4:1.3.0.2 pkgsrc-2025Q4-base:1.3 pkgsrc-2025Q3:1.1.0.4 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.2 pkgsrc-2025Q2-base:1.1; locks; strict; comment @# @; 1.6 date 2026.09.29.06.07.19; author wiz; state Exp; branches; next 1.5; commitid qal4xgy1mkCzPtXG; 1.5 date 2026.09.27.11.38.21; author tnn; state Exp; branches; next 1.4; commitid QJQtnAYom0oZIfXG; 1.4 date 2026.09.02.19.04.13; author wiz; state Exp; branches; next 1.3; commitid vXszxoxOqka005UG; 1.3 date 2025.10.23.20.39.04; author wiz; state Exp; branches; next 1.2; commitid 1V2hBZn9ypXaCJfG; 1.2 date 2025.09.30.16.07.39; author wiz; state Exp; branches; next 1.1; commitid B311XLQVo25qSKcG; 1.1 date 2025.05.30.17.31.48; author jschauma; state Exp; branches; next ; commitid GYk4TjxafaiuiXWF; desc @@ 1.6 log @*: recursive bump for pcre2 10.49 @ text @# $NetBSD: Makefile,v 1.5 2026/09/27 11:38:21 tnn Exp $ DISTNAME= ${GITHUB_PROJECT}-2.4.0 PKGNAME= ${DISTNAME:S/mod/${APACHE_PKG_PREFIX}/:S/_/-/g} PKGREVISION= 4 CATEGORIES= security www MASTER_SITES= ${MASTER_SITE_GITHUB:=jvdmr/} GITHUB_PROJECT= mod_evasive GITHUB_TAG= refs/tags/${PKGVERSION_NOREV} WRKSRC= ${WRKDIR}/${DISTNAME} MAINTAINER= jschauma@@NetBSD.org HOMEPAGE= https://github.com/jvdmr/mod_evasive COMMENT= Apache Evasive Maneuvers Module LICENSE= gnu-gpl-v2 AP_VERSION= 24 APACHE_MODULE= YES APACHE_MODULE_NAME= ${DISTNAME:C|-.*||}.so APACHE_MODULE_SRC= ${DISTNAME:C|-.*||}.c APACHE_MODULE_LA= ${DISTNAME:C|-.*||}.la USE_TOOLS+= mail SUBST_CLASSES+= mailer SUBST_STAGE.mailer= pre-configure SUBST_FILES.mailer= ${GITHUB_PROJECT}${AP_VERSION}.c SUBST_SED.mailer= -e s,/bin/mail,${MAIL_CMD}, SUBST_MESSAGE.mailer= Fixing mail command path. do-build: mv ${WRKSRC}/${DISTNAME:C|-.*||}${AP_VERSION}.c ${WRKSRC}/${APACHE_MODULE_SRC} cd ${WRKSRC} && ${APXS} -c -n ${APACHE_MODULE_NAME} ${APACHE_MODULE_SRC} do-install: ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/httpd cd ${WRKSRC} && ${APXS} -S LIBEXECDIR=${DESTDIR}${PREFIX}/lib/httpd -i -n ${APACHE_MODULE_NAME} ${APACHE_MODULE_LA} ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/httpd/ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/httpd/manual/mod ${INSTALL_DATA} ${WRKSRC}/mod_evasive.conf ${DESTDIR}${PREFIX}/share/examples/httpd/mod_evasive.conf ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/httpd/manual/mod/mod_evasive.md .include "../../mk/apache.mk" .include "../../devel/pcre2/buildlink3.mk" .include "../../mk/bsd.pkg.mk" @ 1.5 log @*: revbump for pcre2 symbol versioning change @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2026/09/02 19:04:13 wiz Exp $ d5 1 a5 1 PKGREVISION= 3 @ 1.4 log @*: recursive bump for pcre2 10.48 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2025/10/23 20:39:04 wiz Exp $ d5 1 a5 1 PKGREVISION= 2 @ 1.3 log @*: recursive bump for pcre2 Running an old binary against the new pcre doesn't work: /usr/pkg/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/pkg/lib/libglib-2.0.so.0 not defined @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2025/09/30 16:07:39 wiz Exp $ d5 1 a5 1 PKGREVISION= 1 @ 1.2 log @*: use ${DESTDIR}${PREFIX} instead of ${DESTDIR}/${PREFIX} @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2025/05/30 17:31:48 jschauma Exp $ d5 1 @ 1.1 log @add mod_evasive mod_evasive is an evasive maneuvers module for Apache to provide evasive action in the event of an HTTP DoS or DDoS attack or brute force attack. It is also designed to be a detection tool, and can be easily configured to talk to ipchains, firewalls, routers, and etcetera. Detection is performed by creating an internal dynamic hash table of IP Addresses and URIs, and denying any single IP address from any of the following: * Requesting the same page more than a few times per second * Making more than 50 concurrent requests on the same child per second * Making any requests while temporarily blacklisted (on a blocking list) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.66 2024/05/29 16:34:13 adam Exp $ d36 1 a36 1 ${INSTALL_DATA_DIR} ${DESTDIR}/${PREFIX}/lib/httpd d38 4 a41 4 ${INSTALL_DATA_DIR} ${DESTDIR}/${PREFIX}/share/examples/httpd/ ${INSTALL_DATA_DIR} ${DESTDIR}/${PREFIX}/share/httpd/manual/mod ${INSTALL_DATA} ${WRKSRC}/mod_evasive.conf ${DESTDIR}/${PREFIX}/share/examples/httpd/mod_evasive.conf ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}/${PREFIX}/share/httpd/manual/mod/mod_evasive.md @