From nobody Wed Jan 1 22:08:43 2025 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 4YNkWH70LZz5jH48; Wed, 01 Jan 2025 22:08:43 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YNkWH65zcz4rSb; Wed, 1 Jan 2025 22:08:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735769323; 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=KkF+yfdxW+d3k7YR0MrPF49pRjm2d20GmjZH/IGbM/U=; b=qwvvOMl3Qzg2vb7N11AFiDylkAdwllvKptnxebu/xkSVRBccYCatNWRR+tUDI94gCaJefK bnAfffachUuFQDXcdpRK8iRT2dG8O0Sd4VXQhViV2o34kONbfA2AEGHrWCNeToIaUhgL1q IW10zOLk2nl1+0Z5OeJ+XP1X/4zf9jOG7OSe4KSxqPHfL0s+zj/SR1yEuMxZ5rzMRWhiQO FCbxxhXAs0jTyLObxNo4Hul3zmMm+gfRifbSqGqFGygf4PtT91egMR0tZKqnbI79wzZ4e+ p8F+O4vlPJzt14kxMm4HZGe0rO7Iwq+hSYg5XDfcpQ+j0A3nAJz/cIHf7/xq2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735769323; 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=KkF+yfdxW+d3k7YR0MrPF49pRjm2d20GmjZH/IGbM/U=; b=uC7W+rl6ri5IF1Y9wJ4WC44GfsAFHOpnQaUOnEQwFOYPBPszh6wCjO/KSox2fxD4Jtg3j8 al5xYAnPEfK3J04ejgX48C2itagHm00wSwtIWyw34TAuVHrqTmURdcrdLO2hytTfgk2nSK CY7R/TMHNJ0TczgFrzbqU3SN6WXi+dmq9CfRO5ewpd5cefoqLD5dPrCCZTsJL/UAKWVchN 3JfMFX5V3JiEDWb/6CH14IsUfxTOFc+hccdWQiuddCw7g2NfgbehG3iuo8GFreaNZ0qRG/ S7J129MWnRywydn3cwqJ44JSbRhYQrckToiKFq5eJpphat4vclao3BR2snn8Sg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735769323; a=rsa-sha256; cv=none; b=H97I0Q1krh/lcZaQbnVZKkGOzzuw+t9GIczcNUT3dT/tUiZry46fQxsHhYyAC0C/muxJsy vAPXKDMXqBF0vQB0GHjDC5kVGxhKJknPv4HvwsrbUiIrURWlZP+ZlKQf4QFR5rWqLa1gjE ZFjb0valC36QMY3AMB73caT6PcckxG1C6XJNPkiG5OLEzTlwqIQTHo2I3IiYky7Nq9r9gp nMM+YICK6hyp4GUm1pNpvcEHZkgiukvDCULg+TRw8pRC5zl/9F8jNbjqiey680EzCJghh+ HnfTjhE1HKUFJMpUs4jxl+bJMnZZXggzr21YKe0IdlktEvXvaVHTJuPiP5dCXw== 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 4YNkWH5hfwzhvp; Wed, 1 Jan 2025 22:08:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 501M8hpB078888; Wed, 1 Jan 2025 22:08:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 501M8hkU078885; Wed, 1 Jan 2025 22:08:43 GMT (envelope-from git) Date: Wed, 1 Jan 2025 22:08:43 GMT Message-Id: <202501012208.501M8hkU078885@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jose Alonso Cardenas Marquez Subject: git: fa73c670c2b2 - main - devel/py-lxml-html-clean: New port: HTML cleaner from lxml project 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: acm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fa73c670c2b296be88b8dcc998d264959669c0cb Auto-Submitted: auto-generated The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=fa73c670c2b296be88b8dcc998d264959669c0cb commit fa73c670c2b296be88b8dcc998d264959669c0cb Author: Jose Alonso Cardenas Marquez AuthorDate: 2025-01-01 22:07:30 +0000 Commit: Jose Alonso Cardenas Marquez CommitDate: 2025-01-01 22:07:30 +0000 devel/py-lxml-html-clean: New port: HTML cleaner from lxml project This project was initially a part of lxml. Because HTML cleaner is designed as blocklist-based, many reports about possible security vulnerabilities were filed for lxml and that make the project problematic for security-sensitive environments. Therefore we decided to extract the problematic part to a separate project. Important: the HTML Cleaner in lxml_html_clean is not considered appropriate for security sensitive environments. See e.g. bleach for an alternative. --- devel/Makefile | 1 + devel/py-lxml-html-clean/Makefile | 18 ++++++++++++++++++ devel/py-lxml-html-clean/distinfo | 3 +++ devel/py-lxml-html-clean/pkg-descr | 8 ++++++++ 4 files changed, 30 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index d588d164261e..d21c9e61a8fc 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5191,6 +5191,7 @@ SUBDIR += py-lsprotocol SUBDIR += py-lunardate SUBDIR += py-lxml + SUBDIR += py-lxml-html-clean SUBDIR += py-lxml-stubs SUBDIR += py-lxml5 SUBDIR += py-mac-vendor-lookup diff --git a/devel/py-lxml-html-clean/Makefile b/devel/py-lxml-html-clean/Makefile new file mode 100644 index 000000000000..c08fdf824640 --- /dev/null +++ b/devel/py-lxml-html-clean/Makefile @@ -0,0 +1,18 @@ +PORTNAME= lxml-html-clean +PORTVERSION= 0.4.1 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/g}-${PORTVERSION} + +MAINTAINER= acm@FreeBSD.org +COMMENT= HTML cleaner from lxml project +WWW= https://github.com/fedora-python/lxml_html_clean/ + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= python +USE_PYTHON= autoplist distutils + +.include diff --git a/devel/py-lxml-html-clean/distinfo b/devel/py-lxml-html-clean/distinfo new file mode 100644 index 000000000000..31b97fbde7f6 --- /dev/null +++ b/devel/py-lxml-html-clean/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1735764422 +SHA256 (lxml_html_clean-0.4.1.tar.gz) = 40c838bbcf1fc72ba4ce811fbb3135913017b27820d7c16e8bc412ae1d8bc00b +SIZE (lxml_html_clean-0.4.1.tar.gz) = 21378 diff --git a/devel/py-lxml-html-clean/pkg-descr b/devel/py-lxml-html-clean/pkg-descr new file mode 100644 index 000000000000..6de7cc0cd0b1 --- /dev/null +++ b/devel/py-lxml-html-clean/pkg-descr @@ -0,0 +1,8 @@ +This project was initially a part of lxml. Because HTML cleaner is designed as +blocklist-based, many reports about possible security vulnerabilities were +filed for lxml and that make the project problematic for security-sensitive +environments. Therefore we decided to extract the problematic part to a +separate project. + +Important: the HTML Cleaner in lxml_html_clean is not considered appropriate +for security sensitive environments. See e.g. bleach for an alternative.