From nobody Sun Feb 25 09:11:59 2024
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 4TjJ0b6jZrz5C3Rq;
Sun, 25 Feb 2024 09:11:59 +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 4TjJ0b6Dh9z4bbm;
Sun, 25 Feb 2024 09:11:59 +0000 (UTC)
(envelope-from git@FreeBSD.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
t=1708852319;
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=aJuzHvXhJT8kKh+v6cAF7i9ewmJnE1Iavc7T8CP7WXU=;
b=fC2ZlC3Rsd/JgQY+6fHyr7ZfHtDePd39HkIgWxQ9vIcT1us8quqRLfAMHAO1BVzSJIDf8q
wskHzW3DqNCBjasQZSnj4a6SgeXzMZA25hGNSgwLaD353Mk8g8l9CfkGFtXdBcE9RnAYIy
FXd9vR7lnOOILU1LoaK122S98yPAK3CCDREDXpTEgg7/sKdRD4ykw5dR6tYQ6Zrh1GkpPH
8gagXsvX4ksxmbQxSgDkl+uj/YCPlRcL8+hp/O7fSR/yJFDZhu9KjdEQM2P/L/DE82zR+J
IWWIot67jkOQqF8XE8yzraD/7CUVvzXdthtJmCOPqjVgo9s9ZnJv16DL3Uf+tQ==
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708852319; a=rsa-sha256; cv=none;
b=keVQJj+vAC/WFLPOCOTiWKx9Jkd3s38Ov9zxX2Zq0dUbSGigrUtSgSPQSXxkFUKXFT2Lii
GCgnhbyBcUs27Lh3F27ozQ7wrnhpf+OZCCVhP2W6ZSEHPSf94ND5FXpNFwJ0bAukzh0f8Y
fd6i0y6GnYFmV6s9g2Ok162RKSm6G4NybCP8WiBB/zdBeEDsl/R7AEhki5BsiJIfDdcjum
8tUTMYPliek8Tv4zfCehR3XQqfPOOZtfmf9FdBCkFyWJ1oud4KlwKe0oYZp0DcJCoL4ucA
JZ6Vu6KdQ60NGUvtA8X8rTGyqiSutkVDKLHqXRLogdSmS9w2jfc19q3ioBkiXw==
ARC-Authentication-Results: i=1;
mx1.freebsd.org;
none
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
s=dkim; t=1708852319;
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=aJuzHvXhJT8kKh+v6cAF7i9ewmJnE1Iavc7T8CP7WXU=;
b=jvLGhCfPiE4ioatMiASQ06hCtdtDYD2xlvVQLXDWzHzF/EXrLu1LzOsrMqpK5vKJJdbzr7
cDNMoxb2xJCoX979qDt9DrVRwrikQrQ0l8dGzWK+maQCPpcphEXbArrPhI1OphFKt10QTT
DWYC/vpqR5CWULw4DYYFfnxzZZ2jmxlQJkpk0cT6ajxy4FsXSnmPWaTg8/nX5cGMFJg6WN
3MMqmUq3rwEfpttGgSGZfawkRwIxQO5TXUdPFqsA6e6hT8/vFRhS5e4+Q1UaR9/8RQG6rN
5rP25ZiV/UiLq7ztfOKMkf8Ji6Q6zKTP4ZH1zgd9TotrI9pdQUx4z1ZNtw1cUg==
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 4TjJ0b5HwNzdH6;
Sun, 25 Feb 2024 09:11:59 +0000 (UTC)
(envelope-from git@FreeBSD.org)
Received: from gitrepo.freebsd.org ([127.0.1.44])
by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41P9Bx9O025979;
Sun, 25 Feb 2024 09:11:59 GMT
(envelope-from git@gitrepo.freebsd.org)
Received: (from git@localhost)
by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41P9BxmV025976;
Sun, 25 Feb 2024 09:11:59 GMT
(envelope-from git)
Date: Sun, 25 Feb 2024 09:11:59 GMT
Message-Id: <202402250911.41P9BxmV025976@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: fb87692eb494 - main - security/xhash: add new port
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: fb87692eb4940d1f18ed7319c7551b1d9fc5ab4c
Auto-Submitted: auto-generated
The branch main has been updated by meta:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fb87692eb4940d1f18ed7319c7551b1d9fc5ab4c
commit fb87692eb4940d1f18ed7319c7551b1d9fc5ab4c
Author: Ricardo Branco
AuthorDate: 2024-02-22 19:00:12 +0000
Commit: Koichiro Iwao
CommitDate: 2024-02-25 09:07:38 +0000
security/xhash: add new port
PR: 277279
Pull Request: https://github.com/freebsd/freebsd-ports/pull/237
---
security/Makefile | 1 +
security/xhash/Makefile | 26 ++++++++++++++++++++++++++
security/xhash/distinfo | 13 +++++++++++++
security/xhash/pkg-descr | 1 +
4 files changed, 41 insertions(+)
diff --git a/security/Makefile b/security/Makefile
index c0405584553f..064426129312 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -1379,6 +1379,7 @@
SUBDIR += xmlsec1
SUBDIR += xorsearch
SUBDIR += xray-core
+ SUBDIR += xhash
SUBDIR += yafic
SUBDIR += yapet
SUBDIR += yara
diff --git a/security/xhash/Makefile b/security/xhash/Makefile
new file mode 100644
index 000000000000..6d6aefe9bba5
--- /dev/null
+++ b/security/xhash/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= xhash
+DISTVERSIONPREFIX= v
+DISTVERSION= 3.3.1
+CATEGORIES= security
+
+MAINTAINER= rbranco@suse.de
+COMMENT= Calculate hashes on files using goroutines
+WWW= https://github.com/ricardobranco777/xhash/
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= go:modules,1.21
+USE_GITHUB= yes
+GH_ACCOUNT= ricardobranco777
+#GO_MODULE= github.com/ricardobranco777/xhash
+GH_TUPLE= \
+ golang:crypto:v0.19.0:golang_crypto/vendor/golang.org/x/crypto \
+ golang:sys:v0.17.0:golang_sys/vendor/golang.org/x/sys \
+ klauspost:cpuid:v2.0.12:klauspost_cpuid_v2/vendor/github.com/klauspost/cpuid/v2 \
+ spf13:pflag:v1.0.5:spf13_pflag/vendor/github.com/spf13/pflag \
+ zeebo:blake3:v0.2.3:zeebo_blake3/vendor/github.com/zeebo/blake3
+
+PLIST_FILES= bin/xhash
+
+.include
diff --git a/security/xhash/distinfo b/security/xhash/distinfo
new file mode 100644
index 000000000000..03cf1bdeae2d
--- /dev/null
+++ b/security/xhash/distinfo
@@ -0,0 +1,13 @@
+TIMESTAMP = 1708629232
+SHA256 (ricardobranco777-xhash-v3.3.1_GH0.tar.gz) = 13a25ec167734c64a6d8d13b243714269b80f33ceb5e68f5203d7834447e500e
+SIZE (ricardobranco777-xhash-v3.3.1_GH0.tar.gz) = 14728
+SHA256 (golang-crypto-v0.19.0_GH0.tar.gz) = 0e1d6c17f9c6f529d2d06e43030695ba135115ee401fda5316d6b30423087bb2
+SIZE (golang-crypto-v0.19.0_GH0.tar.gz) = 1810389
+SHA256 (golang-sys-v0.17.0_GH0.tar.gz) = ac396e3c66940e34fdd1d422a9628ab2a5118249118f2a36f65082d32e709e7a
+SIZE (golang-sys-v0.17.0_GH0.tar.gz) = 1446309
+SHA256 (klauspost-cpuid-v2.0.12_GH0.tar.gz) = ac723eecde24ff08a2fa4b3989b602ab2ecd607f132845b66c26aae896f7130a
+SIZE (klauspost-cpuid-v2.0.12_GH0.tar.gz) = 343262
+SHA256 (spf13-pflag-v1.0.5_GH0.tar.gz) = 9a2cae1f8e8ab0d2cc8ebe468e871af28d9ac0962cf0520999e3ba85f0c7b808
+SIZE (spf13-pflag-v1.0.5_GH0.tar.gz) = 50796
+SHA256 (zeebo-blake3-v0.2.3_GH0.tar.gz) = fef93a1e03d60c0b11fbf11a36110ae87b3105e1c5cfa3b7bbb4af9b87bd2a4b
+SIZE (zeebo-blake3-v0.2.3_GH0.tar.gz) = 110842
diff --git a/security/xhash/pkg-descr b/security/xhash/pkg-descr
new file mode 100644
index 000000000000..7a74739c6f0e
--- /dev/null
+++ b/security/xhash/pkg-descr
@@ -0,0 +1 @@
+This Go program uses goroutines to calculate multiple hashes on strings, files and directories. By default it reads from standard input. It can be used as a drop-in replacement for the GNU **coreutils** when hard-linked as **md5sum**, etc. and it actually supports the `--zero` option with `--check`. The output format is fully configurable.