Date: Tue, 29 Nov 2022 09:21:05 GMT From: Koichiro Iwao <meta@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 3f81d34c3eec - main - www/p5-HTML-Defang: New port: HTML::Defang - Cleans HTML as well as CSS of scripting Message-ID: <202211290921.2AT9L5fA043875@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by meta: URL: https://cgit.FreeBSD.org/ports/commit/?id=3f81d34c3eec1933b7802b2c2f5ea8a1f9883494 commit 3f81d34c3eec1933b7802b2c2f5ea8a1f9883494 Author: Martin Neubauer <m.ne@gmx.net> AuthorDate: 2022-11-19 19:29:56 +0000 Commit: Koichiro Iwao <meta@FreeBSD.org> 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 <bsd.port.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211290921.2AT9L5fA043875>