From nobody Tue Nov 29 09:21:05 2022
X-Original-To: dev-commits-ports-all@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 4NLxf945Rxz4jKly;
Tue, 29 Nov 2022 09:21:05 +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 4NLxf93R3Nz3nqN;
Tue, 29 Nov 2022 09:21:05 +0000 (UTC)
(envelope-from git@FreeBSD.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
t=1669713665;
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=RAC5WC/rgpoCZXEhXzbJ0wlf0iztqqH6gphjjKWbq2Q=;
b=KJMC0dRF1Z1hbLojviV29OwzGe2zd+6v+X3DZ0LU/F41pgZZ/+N3ibI0V1P3UqVVtsA2IR
2dEOAONb08a6/+e4nVckU82tQSz3HjArlM6dI567KAtnN03MkFVegRwVeAfTtPnM18x+oB
7ArGpIkkFbcziS0k70sx+M/OGpCnS7/tLryy5lgtOb7BAaHizAuHGofwbOY3dMe2Uxl5ac
24RHIqFkp+VreznNLeIE6mny91UozHF+B5+Fsw+5c/GqCXNRbOoc/0d3aEdDNlaDoGPyYv
FZ5xYMsn6ooN+x5qpipZA+M4/1dlFKh5xcBNbC470sx61zL/vvCAqTUicJ/uVw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
s=dkim; t=1669713665;
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=RAC5WC/rgpoCZXEhXzbJ0wlf0iztqqH6gphjjKWbq2Q=;
b=PxpZemn++0ycuuY3847P5+7uST2e62M8w3Ps/MkRuuYvvIpxm1ad+dxOU3SqsIFvslSKME
1HOxVNtai1LRS2nhiyF8aBTe2FAbEuv6Z0HYDSgzWyftQkoPKrP5R0wjBdOmUhCAfVXvJi
0ul2OmgB17PvvwOJ0vW7Q37RI7RdzzlnKcOsmL6+pn52kvSRJq5nQXhYtCAyboMrqo3oxj
PtG3tqJ/7V4WkwWpN3qI3mf0iSahDqrtg3l+QHnnbiNDVoLFOsRNe4kKIc7riJD4IsDvFg
dMRdkhk71EoCuC8rdjaUYkAeHnSZ2YL04ikIBUp6fKAd74l68qfdcI0HVFg9BQ==
ARC-Authentication-Results: i=1;
mx1.freebsd.org;
none
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669713665; a=rsa-sha256; cv=none;
b=gmrv47bPXa+4H0naj/UBcheEM3cd6EZshLAKv139yQGbZVYpXUM9kE7J/aJgxLhRN5RALs
pFS0VLcijjhzucjyz7raeDi5UsT+DgY8IWnOKTsqBaVDSRq7WDRvJSreuRPOR9lN71ZDg8
1Q3Ikm8TJMbHV6ti0Fm+QDGu+nHarg60ObTVNnCmBgwOrQU8v6V/gLyizljuJfYADAxmH2
sW7qutZ/g08z9OGSvJ7LczzKY4dmYvTEF0rHSzMwUWSVFBn060BkPMgg0bgZfRTLSpSU+J
0qHYO7veh4zLiyW0xDjFSmSxxLxZvOzNbo3ZFUFfxC+YBm27nloakbrgFE+oTg==
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 4NLxf92BVLz1Br2;
Tue, 29 Nov 2022 09:21:05 +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 2AT9L5so043876;
Tue, 29 Nov 2022 09:21:05 GMT
(envelope-from git@gitrepo.freebsd.org)
Received: (from git@localhost)
by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AT9L5fA043875;
Tue, 29 Nov 2022 09:21:05 GMT
(envelope-from git)
Date: Tue, 29 Nov 2022 09:21:05 GMT
Message-Id: <202211290921.2AT9L5fA043875@gitrepo.freebsd.org>
To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org,
dev-commits-ports-main@FreeBSD.org
From: Koichiro Iwao
Subject: git: 3f81d34c3eec - main - www/p5-HTML-Defang: New port: HTML::Defang - Cleans HTML as well as CSS of scripting
List-Id: Commit messages for all branches of the ports repository
List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all
List-Help:
List-Post:
List-Subscribe:
List-Unsubscribe:
Sender: owner-dev-commits-ports-all@freebsd.org
X-BeenThere: dev-commits-ports-all@freebsd.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Git-Committer: meta
X-Git-Repository: ports
X-Git-Refname: refs/heads/main
X-Git-Reftype: branch
X-Git-Commit: 3f81d34c3eec1933b7802b2c2f5ea8a1f9883494
Auto-Submitted: auto-generated
X-ThisMailContainsUnwantedMimeParts: N
The branch main has been updated by meta:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3f81d34c3eec1933b7802b2c2f5ea8a1f9883494
commit 3f81d34c3eec1933b7802b2c2f5ea8a1f9883494
Author: Martin Neubauer
AuthorDate: 2022-11-19 19:29:56 +0000
Commit: Koichiro Iwao
CommitDate: 2022-11-29 09:20:09 +0000
www/p5-HTML-Defang: New port: HTML::Defang - Cleans HTML as well as CSS of scripting
This module accepts an input HTML and/or CSS string and removes any
executable code including scripting, embedded objects, applets, etc.,
and neutralises any XSS attacks. A whitelist based approach is used
which means only HTML known to be safe is allowed through.
PR: 267880
---
www/Makefile | 1 +
www/p5-HTML-Defang/Makefile | 19 +++++++++++++++++++
www/p5-HTML-Defang/distinfo | 3 +++
www/p5-HTML-Defang/pkg-descr | 4 ++++
www/p5-HTML-Defang/pkg-plist | 2 ++
5 files changed, 29 insertions(+)
diff --git a/www/Makefile b/www/Makefile
index 9725bfcd69da..4350f0cb660e 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -788,6 +788,7 @@
SUBDIR += p5-HTML-ContentExtractor
SUBDIR += p5-HTML-DOM
SUBDIR += p5-HTML-Declare
+ SUBDIR += p5-HTML-Defang
SUBDIR += p5-HTML-Defaultify
SUBDIR += p5-HTML-Diff
SUBDIR += p5-HTML-Display
diff --git a/www/p5-HTML-Defang/Makefile b/www/p5-HTML-Defang/Makefile
new file mode 100644
index 000000000000..7dfed473e357
--- /dev/null
+++ b/www/p5-HTML-Defang/Makefile
@@ -0,0 +1,19 @@
+PORTNAME= HTML-Defang
+PORTVERSION= 1.07
+CATEGORIES= www perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= m.ne@gmx.net
+COMMENT= Cleans HTML of executable contents, and neutralises XSS attacks
+WWW= https://metacpan.org/dist/HTML-Defang
+
+LICENSE= ART10 GPLv1+
+LICENSE_COMB= dual
+
+USES= perl5
+USE_PERL5= configure
+
+NO_ARCH= yes
+
+.include
diff --git a/www/p5-HTML-Defang/distinfo b/www/p5-HTML-Defang/distinfo
new file mode 100644
index 000000000000..87885ed23e88
--- /dev/null
+++ b/www/p5-HTML-Defang/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1667040189
+SHA256 (HTML-Defang-1.07.tar.gz) = 882dc4a9dcfae8799235f4bad0062ee55ddbe408be1a5e4a7574b262e3fe07ce
+SIZE (HTML-Defang-1.07.tar.gz) = 46222
diff --git a/www/p5-HTML-Defang/pkg-descr b/www/p5-HTML-Defang/pkg-descr
new file mode 100644
index 000000000000..44b395a6e94b
--- /dev/null
+++ b/www/p5-HTML-Defang/pkg-descr
@@ -0,0 +1,4 @@
+This module accepts an input HTML and/or CSS string and removes any
+executable code including scripting, embedded objects, applets, etc.,
+and neutralises any XSS attacks. A whitelist based approach is used
+which means only HTML known to be safe is allowed through.
diff --git a/www/p5-HTML-Defang/pkg-plist b/www/p5-HTML-Defang/pkg-plist
new file mode 100644
index 000000000000..2f4ebb8beff0
--- /dev/null
+++ b/www/p5-HTML-Defang/pkg-plist
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/HTML/Defang.pm
+%%PERL5_MAN3%%/HTML::Defang.3.gz