From nobody Thu Apr 20 02:27:33 2023 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 4Q21lT5fKmz466CX; Thu, 20 Apr 2023 02:27:33 +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 4Q21lT4W3Gz3DD5; Thu, 20 Apr 2023 02:27:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681957653; 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=hjmdgQD8pjQqA5/PhBPWe6twdV63lCi4PZ8o0ZIV6BA=; b=AzQojH8czn8TSvc7CRfhYJvzCj75dCBG7YjrXdH+yEwH/GiIDoKVYewc/emkxbK9moOn1C 5JvWuK5FU21ViPaIcFzpJUro/ofS0nLcsdFSsBPjrQZQJc2rrVVBdbCHjLBw5PRsVpJ+r4 opNhBMFgd/eO+fZ7b3by11gdOFerez6IKxId5yR72apvN8xhpowDN3WdRc//UWg+9Tx6IE YJjs2tH8pqwBcUvMJ3ml7IInG7VNEHFF1KBVreqkKB2gHpGzhVyFj8lsuGh1UBKr5UztHN QvlWN9Lu6wfYZqcuquEWeeZyOg+KXxzahwJIWPvHKwjICJWZZiVVDCSQqL4ewg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681957653; 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=hjmdgQD8pjQqA5/PhBPWe6twdV63lCi4PZ8o0ZIV6BA=; b=IN/Jjgc/9ntVz4Yvs7izGEIgEF7akap98vDt/K5UBm2jxapxOCpyyEzFVSveCOHYraumtU 8BpHkzw96M9WsfJSNoMT3E9EPkLlqwsddVNboSX+9VxQ7brT+06P9zywWuDSg6LcOyfgSq o0pbh7Du0wB/tmomzD6+av1HlkqOAVCZeggY2m+1zDuydc971fwLhHwWrXXDzdeJyljoFK GhDd1tvvizKnRtZ6oVrWYcUKeGIv2l3PfEjLADF80ywSS3k2ivMoG+UOOjwb/xV3fe9kEo A38u6UEILs9aktCRwS1TXjZ29zs89impyVqu9e0VuHUsmwCgOwPYg0ti4CmQWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681957653; a=rsa-sha256; cv=none; b=W4E3JZtkSszrFDK+kcDDijN2EcI9sO1XLUTZ6IhwYgoJf8nTXDmrh/Wqi6pJ7MOv1aSQU4 7AfUsplYDi4N98CKJ3bwVp3uymWNEzOQ3aeGduMPtP+0lM5nCsR3ox9Qv2koQf7E/GQvky 0lkU+ron5xvSSWd2jNr+KrUaAGRr1CVD3hCAuqy/ZSSSNL+B8dp3+3syjmOAdHzHm7ouxx OjjVheC3obOpBbVqYdmWDjIQs565yWZF28qRm5WODtzfmoEBqy9bhdj8rBc/qzsmOUvZQQ 3y/o0jImGxPcO3qEpLXhLGnE/BjaMxdoZV6FyFljr+pzUhUhQejxFIo+H972HA== 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 4Q21lT3SmyzKK7; Thu, 20 Apr 2023 02:27:33 +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 33K2RXpg078444; Thu, 20 Apr 2023 02:27:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33K2RXPL078443; Thu, 20 Apr 2023 02:27:33 GMT (envelope-from git) Date: Thu, 20 Apr 2023 02:27:33 GMT Message-Id: <202304200227.33K2RXPL078443@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: ddef0735eee9 - main - security/py-dirhash: New port: Python module and CLI for hashing of file system directories 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: acm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ddef0735eee94237922e0e7b76d3f1566f5d10fb Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=ddef0735eee94237922e0e7b76d3f1566f5d10fb commit ddef0735eee94237922e0e7b76d3f1566f5d10fb Author: Jose Alonso Cardenas Marquez AuthorDate: 2023-04-20 02:26:22 +0000 Commit: Jose Alonso Cardenas Marquez CommitDate: 2023-04-20 02:26:22 +0000 security/py-dirhash: New port: Python module and CLI for hashing of file system directories A lightweight python module and CLI for computing the hash of any directory based on its files structure and content. - Supports all hashing algorithms of Python's built-in hashlib module. - Glob/wildcard (".gitignore style") path matching for expressive filtering of files to include/exclude. - Multiprocessing for up to 6x speed-up The hash is computed according to the Dirhash Standard, which is designed to allow for consistent and collision resistant generation/verification of directory hashes across implementations. --- security/Makefile | 1 + security/py-dirhash/Makefile | 19 +++++++++++++++++++ security/py-dirhash/distinfo | 3 +++ security/py-dirhash/pkg-descr | 11 +++++++++++ 4 files changed, 34 insertions(+) diff --git a/security/Makefile b/security/Makefile index a2aedd6eeacc..624766505d37 100644 --- a/security/Makefile +++ b/security/Makefile @@ -889,6 +889,7 @@ SUBDIR += py-dfdatetime SUBDIR += py-dfvfs SUBDIR += py-dfwinreg + SUBDIR += py-dirhash SUBDIR += py-django-auth-kerberos SUBDIR += py-docker-pycreds SUBDIR += py-ecdsa diff --git a/security/py-dirhash/Makefile b/security/py-dirhash/Makefile new file mode 100644 index 000000000000..5049e4526725 --- /dev/null +++ b/security/py-dirhash/Makefile @@ -0,0 +1,19 @@ +PORTNAME= dirhash +DISTVERSION= 0.2.1 +CATEGORIES= security python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= acm@FreeBSD.org +COMMENT= Python module and CLI for hashing of file system directories +WWW= https://github.com/andhus/dirhash-python + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scantree>0:devel/py-scantree@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist distutils + +.include diff --git a/security/py-dirhash/distinfo b/security/py-dirhash/distinfo new file mode 100644 index 000000000000..b9b4aa70f713 --- /dev/null +++ b/security/py-dirhash/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1681956003 +SHA256 (dirhash-0.2.1.tar.gz) = 31bf8192fbb6e09a2a7ff4de31b9eb127c58545af22125ca1fa67c91c8e2d898 +SIZE (dirhash-0.2.1.tar.gz) = 13833 diff --git a/security/py-dirhash/pkg-descr b/security/py-dirhash/pkg-descr new file mode 100644 index 000000000000..b9f6cbf20ec7 --- /dev/null +++ b/security/py-dirhash/pkg-descr @@ -0,0 +1,11 @@ +A lightweight python module and CLI for computing the hash of any directory +based on its files structure and content. + +- Supports all hashing algorithms of Python's built-in hashlib module. +- Glob/wildcard (".gitignore style") path matching for expressive filtering of + files to include/exclude. +- Multiprocessing for up to 6x speed-up + +The hash is computed according to the Dirhash Standard, which is designed to +allow for consistent and collision resistant generation/verification of +directory hashes across implementations.