From 5f5250daf773dbfd94c0d380a04916baa4b7dbf7 Mon Sep 17 00:00:00 2001 From: Ricardo Branco <rbra...@suse.de> Date: Sat, 1 Jun 2024 11:37:05 +0200 Subject: [PATCH] Add security/xhash
--- security/xhash/Makefile | 23 +++++++++++++++++++++ security/xhash/distinfo | 42 ++++++++++++++++++++++++++++++++++++++ security/xhash/modules.inc | 12 +++++++++++ security/xhash/pkg/DESCR | 1 + security/xhash/pkg/PLIST | 1 + 5 files changed, 79 insertions(+) create mode 100644 security/xhash/Makefile create mode 100644 security/xhash/distinfo create mode 100644 security/xhash/modules.inc create mode 100644 security/xhash/pkg/DESCR create mode 100644 security/xhash/pkg/PLIST diff --git a/security/xhash/Makefile b/security/xhash/Makefile new file mode 100644 index 00000000000..04eecbc90b6 --- /dev/null +++ b/security/xhash/Makefile @@ -0,0 +1,23 @@ +COMMENT = faster hashing using goroutines + +V = 3.4.0 +MODGO_MODNAME = github.com/ricardobranco777/xhash +MODGO_VERSION = v0.0.0-20240601062954-9bdefd997316 +DISTNAME = xhash-${V} + +CATEGORIES = security + +HOMEPAGE = https://github.com/ricardobranco777/xhash +MAINTAINER = Ricardo Branco <rbra...@suse.de> + +# MIT +PERMIT_PACKAGE = Yes + +WANTLIB += c pthread + +MODULES = lang/go +NO_TEST = Yes + +.include "modules.inc" + +.include <bsd.port.mk> diff --git a/security/xhash/distinfo b/security/xhash/distinfo new file mode 100644 index 00000000000..e2ee9373160 --- /dev/null +++ b/security/xhash/distinfo @@ -0,0 +1,42 @@ +SHA256 (go_modules/github.com/klauspost/cpuid/v2/@v/v2.0.12.mod) = aad6HA2aaPIerFlR+f5BQTBpl6go38ofHEjJU/0WVuE= +SHA256 (go_modules/github.com/klauspost/cpuid/v2/@v/v2.0.12.zip) = 1VhNbmOFUTFEAwjnH5HsVNORpQ6WU/bAmjnRVhDg0Lw= +SHA256 (go_modules/github.com/spf13/pflag/@v/v1.0.5.mod) = FsbfwOtY6zyRE84ZfUYMZyXGR+RoisJtMcjtafHrvGg= +SHA256 (go_modules/github.com/spf13/pflag/@v/v1.0.5.zip) = /G5wTy9qhN3Nzm3gQE5TQPogyGdhgb9dOBsXiIEHuoQ= +SHA256 (go_modules/github.com/zeebo/assert/@v/v1.1.0.mod) = y4zqaey8mWkq8h1EkJCD9Nli6V3Lety1/QZ2t3NYfpw= +SHA256 (go_modules/github.com/zeebo/assert/@v/v1.1.0.zip) = FHldieHZk3urnj1tVN83qHD7cO+3TYvB4avGdt6KMqM= +SHA256 (go_modules/github.com/zeebo/blake3/@v/v0.2.3.mod) = U4lEqKspe/im9yQErQlPglA7YcJ5DONA+adJDgKpYOM= +SHA256 (go_modules/github.com/zeebo/blake3/@v/v0.2.3.zip) = FQw0Na+vMmGG1s/dmhHXb0uQLFiHUvH3OTtDZzObjXw= +SHA256 (go_modules/github.com/zeebo/pcg/@v/v1.0.1.mod) = TVuz/sdIXlTBx9kRkJGq3dBx+fSolptsgqWI9MjggXk= +SHA256 (go_modules/github.com/zeebo/pcg/@v/v1.0.1.zip) = Of8Gm56x/W+e3ROLEjOKGwp2H0ewVE9BSNPSfddMUsA= +SHA256 (go_modules/golang.org/x/crypto/@v/v0.23.0.mod) = i77G1cwXKvJKSSTQVmVXoqZctKzKzBGb3r7yti5IGCU= +SHA256 (go_modules/golang.org/x/crypto/@v/v0.23.0.zip) = ZdIrn1Su9ffwZJANLs+NiyMXKa68RsO3ylb/iX+3C1c= +SHA256 (go_modules/golang.org/x/net/@v/v0.21.0.mod) = Du8+n+f2aL5bTSTI8SUcbFAtEWiVPICBrJ3D85nGTwY= +SHA256 (go_modules/golang.org/x/net/@v/v0.21.0.zip) = Tpy0ve0ZV+c/5wl0HCmHnqsFBHYXybFLcjcxT/kCSRM= +SHA256 (go_modules/golang.org/x/sys/@v/v0.20.0.mod) = 0iezJfYh9OvijTm6dz6pm4cPOTt8CcNFksNlsW3VYN4= +SHA256 (go_modules/golang.org/x/sys/@v/v0.20.0.zip) = P4JrGR6rHr2pJf61UdM0434bWGXRqnkPreRlmIEaixo= +SHA256 (go_modules/golang.org/x/term/@v/v0.20.0.mod) = popv0up5oDshapIJPgQ6AnvvRuJ19M4MpNIh3f0kTwE= +SHA256 (go_modules/golang.org/x/term/@v/v0.20.0.zip) = hA6swP+zBty0sPW/bgcckdLnlX/MYE7sTnPA/CLykgw= +SHA256 (go_modules/golang.org/x/text/@v/v0.15.0.mod) = lxV58X6avFkmq3YhT1M71RfPSSXIhSQ6xHVaGgp8ae8= +SHA256 (go_modules/golang.org/x/text/@v/v0.15.0.zip) = E/rufkbIoYyKKPPs7r8V221yS5oQjDwEgqbS5YunOnM= +SHA256 (xhash-3.4.0.zip) = fS7K/fLSrZI/yeiBVgs83gODPYM6SgWs7n3tT+ITr8w= +SIZE (go_modules/github.com/klauspost/cpuid/v2/@v/v2.0.12.mod) = 46 +SIZE (go_modules/github.com/klauspost/cpuid/v2/@v/v2.0.12.zip) = 352606 +SIZE (go_modules/github.com/spf13/pflag/@v/v1.0.5.mod) = 39 +SIZE (go_modules/github.com/spf13/pflag/@v/v1.0.5.zip) = 88931 +SIZE (go_modules/github.com/zeebo/assert/@v/v1.1.0.mod) = 40 +SIZE (go_modules/github.com/zeebo/assert/@v/v1.1.0.zip) = 998 +SIZE (go_modules/github.com/zeebo/blake3/@v/v0.2.3.mod) = 153 +SIZE (go_modules/github.com/zeebo/blake3/@v/v0.2.3.zip) = 109300 +SIZE (go_modules/github.com/zeebo/pcg/@v/v1.0.1.mod) = 77 +SIZE (go_modules/github.com/zeebo/pcg/@v/v1.0.1.zip) = 9144 +SIZE (go_modules/golang.org/x/crypto/@v/v0.23.0.mod) = 190 +SIZE (go_modules/golang.org/x/crypto/@v/v0.23.0.zip) = 1803625 +SIZE (go_modules/golang.org/x/net/@v/v0.21.0.mod) = 155 +SIZE (go_modules/golang.org/x/net/@v/v0.21.0.zip) = 1868726 +SIZE (go_modules/golang.org/x/sys/@v/v0.20.0.mod) = 33 +SIZE (go_modules/golang.org/x/sys/@v/v0.20.0.zip) = 1956163 +SIZE (go_modules/golang.org/x/term/@v/v0.20.0.mod) = 68 +SIZE (go_modules/golang.org/x/term/@v/v0.20.0.zip) = 19883 +SIZE (go_modules/golang.org/x/text/@v/v0.15.0.mod) = 197 +SIZE (go_modules/golang.org/x/text/@v/v0.15.0.zip) = 9235248 +SIZE (xhash-3.4.0.zip) = 22654 diff --git a/security/xhash/modules.inc b/security/xhash/modules.inc new file mode 100644 index 00000000000..fa1db25acdb --- /dev/null +++ b/security/xhash/modules.inc @@ -0,0 +1,12 @@ +MODGO_MODULES = \ + github.com/klauspost/cpuid/v2 v2.0.12 \ + github.com/spf13/pflag v1.0.5 \ + github.com/zeebo/assert v1.1.0 \ + github.com/zeebo/blake3 v0.2.3 \ + github.com/zeebo/pcg v1.0.1 \ + golang.org/x/crypto v0.23.0 \ + golang.org/x/net v0.21.0 \ + golang.org/x/sys v0.20.0 \ + golang.org/x/term v0.20.0 \ + golang.org/x/text v0.15.0 + diff --git a/security/xhash/pkg/DESCR b/security/xhash/pkg/DESCR new file mode 100644 index 00000000000..7a74739c6f0 --- /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. diff --git a/security/xhash/pkg/PLIST b/security/xhash/pkg/PLIST new file mode 100644 index 00000000000..2eac622d5c8 --- /dev/null +++ b/security/xhash/pkg/PLIST @@ -0,0 +1 @@ +@bin bin/xhash -- 2.45.1