From nobody Tue Feb 08 04:00:24 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3392719C1D9E; Tue, 8 Feb 2022 04:00:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jt8Rs0WV8z4Yqg; Tue, 8 Feb 2022 04:00:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644292825; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Fvk4KFWxhfu/gzZbMlKDCDKfWpf7QDWmWTyX2P5MzRE=; b=ioVgCKG3V/hpaylVuXRB0fc53zdbYn51IO+7RDKa8tj3NvwKD39PELlTIj3FSS2KxpWzww v0aoIFX80g0dkoPL9vujpy9mTEx/Djj6t6GJ+FM8yidJ+1nWAUeRH/7MKOyTChKqx8JHeh SNWJKS/Q7CRgMcqoq7RGoSMROS+OzAYl8gN77QSWky5NBTwq9Cs4xMe3xgYXt3p5QwX4Uc UVBa2jm3iYEyjSHLeG+l5TOVgiaEu9XnYAkDAhx4nwcnmJ8C9CsIoZ4tKvabIzvnd2jMuU 2TIUyZ/1MocmJ7+s/ZJBKxos/d/8oUaPUqWznxweGd49H1uTwnMrfE6Y0CQXeg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E609F129AE; Tue, 8 Feb 2022 04:00:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21840OqT023585; Tue, 8 Feb 2022 04:00:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21840OM5023584; Tue, 8 Feb 2022 04:00:24 GMT (envelope-from git) Date: Tue, 8 Feb 2022 04:00:24 GMT Message-Id: <202202080400.21840OM5023584@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Li-Wen Hsu Subject: git: c1e76f67587e - main - Add www/mod_defensible: Apache 2.4 module aiming to block IP listed in DNSBL List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c1e76f67587e0de95a4f7695a8fb881557de29b8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644292825; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Fvk4KFWxhfu/gzZbMlKDCDKfWpf7QDWmWTyX2P5MzRE=; b=ygpDQVyg7VZzGGUViylhHG48NWHZHBAr/dwfFzQHHWD340gZY35IQdsUAecKV0X9oP2k+J zqwdhobBu+5f1aNH3jRwfgC3AlTGz5uFUI89x1HxI2kM7jmSKIwE9xt0DW5aG/h36rbTvM /pfgpkqlIFXxx6xQo/B9VmJK/hDcVjwOSsWmaRNo66AKHndN1JwQrY08p1LeM1dQtMbixQ nyuV+xeBz7KRuOT/UjKW7AiG9VQ4eYnyjIUNhhEKK0jEcTTbHWD1V23YQC5mzHAoK0Q4dR U8QMN8Uo1M/OY1+KAjW4kOMHk2qXSvz3oHu7Z8hrYRv7PuKUx4fJEm4Of87NjQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644292825; a=rsa-sha256; cv=none; b=b2gvM/ej8GSZWE+KmYOegTXdy5qidDqcJENcgglHXIsf/o08GnqWngFA18rxxETdTUPJpa U7Z3QndygXYrJxiaIZZ5KMV98AFQMcm8HvyQhYd/o3WQJHdzDM5Vi8V6Rtp2CiTvjAJh/C tXCktEqrG1Ug+yraG8meOikSQUseGmwuVqvgUt4hgZ93uMdRbCDUd6pI5A2jdd4+3lmXrV hynPWUvzLWCWRn0i8h/hQ8l9Vz2SI46W7XOKl82t2o2DLT9oFkJ9slVv/w5A6w02TUteNo hgrbDz+zMSLmzZFRpIKGqCwtq0mzKVslNrfO7S9bAoLDp4CXoGWgQ2dsZf2Lqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=c1e76f67587e0de95a4f7695a8fb881557de29b8 commit c1e76f67587e0de95a4f7695a8fb881557de29b8 Author: Peter Libassi AuthorDate: 2022-02-08 03:58:16 +0000 Commit: Li-Wen Hsu CommitDate: 2022-02-08 03:59:10 +0000 Add www/mod_defensible: Apache 2.4 module aiming to block IP listed in DNSBL PR: 261236 --- www/Makefile | 1 + www/mod_defensible/Makefile | 28 +++++++++++++++++++++++++ www/mod_defensible/distinfo | 3 +++ www/mod_defensible/files/patch-mod_defensible.c | 12 +++++++++++ www/mod_defensible/pkg-descr | 11 ++++++++++ 5 files changed, 55 insertions(+) diff --git a/www/Makefile b/www/Makefile index 52c0026078ab..22b4097b1b56 100644 --- a/www/Makefile +++ b/www/Makefile @@ -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 diff --git a/www/mod_defensible/Makefile b/www/mod_defensible/Makefile new file mode 100644 index 000000000000..d7d175d2b6b4 --- /dev/null +++ b/www/mod_defensible/Makefile @@ -0,0 +1,28 @@ +# Created by: Peter Libassi + +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 diff --git a/www/mod_defensible/distinfo b/www/mod_defensible/distinfo new file mode 100644 index 000000000000..590722605ac6 --- /dev/null +++ b/www/mod_defensible/distinfo @@ -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 diff --git a/www/mod_defensible/files/patch-mod_defensible.c b/www/mod_defensible/files/patch-mod_defensible.c new file mode 100644 index 000000000000..d8352b3011b8 --- /dev/null +++ b/www/mod_defensible/files/patch-mod_defensible.c @@ -0,0 +1,12 @@ +--- mod_defensible.c.orig 2012-04-03 14:50:25 UTC ++++ mod_defensible.c +@@ -19,7 +19,8 @@ + * + */ + +-#include ++/*#include */ ++#define VERSION "%%PORTVERSION%%" + + #include "apr_strings.h" + diff --git a/www/mod_defensible/pkg-descr b/www/mod_defensible/pkg-descr new file mode 100644 index 000000000000..03588c109368 --- /dev/null +++ b/www/mod_defensible/pkg-descr @@ -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