1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

Add www/mod_defensible: Apache 2.4 module aiming to block IP listed in DNSBL

PR:		261236
This commit is contained in:
Peter Libassi 2022-02-08 11:58:16 +08:00 committed by Li-Wen Hsu
parent 3c626f52f8
commit c1e76f6758
No known key found for this signature in database
GPG Key ID: 82B261B14D3BC7AF
5 changed files with 55 additions and 0 deletions

View File

@ -374,6 +374,7 @@
SUBDIR += mod_cfg_ldap
SUBDIR += mod_cloudflare
SUBDIR += mod_dav_svn
SUBDIR += mod_defensible
SUBDIR += mod_dnssd
SUBDIR += mod_evasive
SUBDIR += mod_fastcgi

View File

@ -0,0 +1,28 @@
# Created by: Peter Libassi <peter@libassi.se>
PORTNAME= mod_defensible
DISTVERSIONPREFIX= v
DISTVERSION= 1.5
CATEGORIES= www
MAINTAINER= peter@libassi.se
COMMENT= Apache 2.4 module aiming to block IP listed in DNSBL
LICENSE= APACHE20
USES= apache:2.4+
USE_GITHUB= yes
GH_ACCOUNT= jd
AP_FAST_BUILD= yes
AP_GENPLIST= yes
SHORTMODNAME= defensible
SRC_FILE= mod_defensible.c
post-patch:
${REINPLACE_CMD} 's,%%PORTVERSION%%,${PORTVERSION},' \
${WRKSRC}/mod_defensible.c
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1642253279
SHA256 (jd-mod_defensible-v1.5_GH0.tar.gz) = 030f5cc41c80d6973eb893f1fbbe24427cd03855a89009d198384164c02a4082
SIZE (jd-mod_defensible-v1.5_GH0.tar.gz) = 5416

View File

@ -0,0 +1,12 @@
--- mod_defensible.c.orig 2012-04-03 14:50:25 UTC
+++ mod_defensible.c
@@ -19,7 +19,8 @@
*
*/
-#include <config.h>
+/*#include <config.h>*/
+#define VERSION "%%PORTVERSION%%"
#include "apr_strings.h"

View File

@ -0,0 +1,11 @@
mod_defensible is a Apache 2.x module aiming to forbid IP listed
in DNSBL.
httpd.conf configuration example:
DnsblUse On
DnsblServers bsb.spamlookup.net bl.blbl.org opm.blitzed.org sbl-xbl.spamhaus.org
No UDNS support in this FreeBSD port version
WWW: https://github.com/jd/mod_defensible