From nobody Sat Dec 25 10:44:41 2021 X-Original-To: dev-commits-ports-main@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 920DC19174FA; Sat, 25 Dec 2021 10:44: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JLgY54t0Sz4cTf; Sat, 25 Dec 2021 10:44:41 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 295DB15E1F; Sat, 25 Dec 2021 10:44:41 +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 1BPAif83010777; Sat, 25 Dec 2021 10:44:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BPAifwV010776; Sat, 25 Dec 2021 10:44:41 GMT (envelope-from git) Date: Sat, 25 Dec 2021 10:44:41 GMT Message-Id: <202112251044.1BPAifwV010776@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: 61ee054ee8a0 - main - misc/fq: new port had been added (+) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 61ee054ee8a02c9712dd8a0b289d02652ef49452 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640429081; 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=0ZfK4gka6h9smUxgekiPr6Kal3j280SV8rmbJxiDjno=; b=DNnN4Hrtm9prdiAdsfsWdOzx3Jww1Bu0mh4zelelM4bLVx15BwluCEzuWNe4q9ECK14peH U8SQnDthQsocbGvEyd1WVJfyLiTFtNew5w4gc61rbb8BWKdBbFSiJrEbllODc1yLHe8C0l DEAlPH7uDcuE4ZAuInNz0GUpXbTLxT8O5wpZs5R1xF6dDSbklkBLMve6W2M4uAoVbeftIF FOyF2WKHyA2QCrsVjdjfuYkwHJ/zIGrbZ8fT3vQxIwBGALE83gDgz3ro40FmNKhNAL/pwJ GoB+Ku7Nz9UZtS/W40rdyN/+cNamfCdy4nT5NMgVAA4c+Uoi9Sfb85v4lA1DYw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640429081; a=rsa-sha256; cv=none; b=rnzJzVf3TA3VnLlF2R108B/rzxzqqSCYiHWqHv8pxUjAB4COT6YJ8iSa2sgGmIJLo4tRzQ 1Qtkf7nYoBzZomQHupqydCRXFs3VhE/Zk8g5/esToKdd/74j09hbxtqNBaU78Oda4QTp1i 5L7OdtbLar942fYUVfUaV30y89hlnUZaez4mBRFZJlEbFaIda1uvelK4Nv9SVZkM1BcW4k 1U6GnxJyd7aXNDOHtweEbhOiJfCeRyIT6RIzUK1k5B8LOKsdYH67XrEfMHLXfPrGGpjA+W p3xttdmE2g+B0YgSKYYYEwwqao2rqqiFBE3Uv84hnjo2Il9q5ambWCCSVJ/fwQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=61ee054ee8a02c9712dd8a0b289d02652ef49452 commit 61ee054ee8a02c9712dd8a0b289d02652ef49452 Author: Alexey Dokuchaev AuthorDate: 2021-12-25 10:43:08 +0000 Commit: Alexey Dokuchaev CommitDate: 2021-12-25 10:43:08 +0000 misc/fq: new port had been added (+) Tool, language, and decoders for inspecting binary data. Requested by: Vyacheslav Olkhovchenkov --- misc/Makefile | 1 + misc/fq/Makefile | 29 +++++++++++++++++++++++++++++ misc/fq/distinfo | 19 +++++++++++++++++++ misc/fq/files/patch-pkg_checksum_crc.go | 20 ++++++++++++++++++++ misc/fq/pkg-descr | 8 ++++++++ 5 files changed, 77 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index c6c918089688..e587403a517a 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -106,6 +106,7 @@ SUBDIR += fortune-mod-psalms SUBDIR += fortuneit SUBDIR += fpc-chm + SUBDIR += fq SUBDIR += free42 SUBDIR += freebsd-doc-all SUBDIR += freebsd-doc-bn diff --git a/misc/fq/Makefile b/misc/fq/Makefile new file mode 100644 index 000000000000..783b9baff035 --- /dev/null +++ b/misc/fq/Makefile @@ -0,0 +1,29 @@ +# Created by: Alexey Dokuchaev + +PORTNAME= fq +PORTVERSION= 0.0.2 +DISTVERSIONPREFIX= v +CATEGORIES= misc + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Tool, language, and decoders for inspecting binary data + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:modules +USE_GITHUB= yes +GH_ACCOUNT= wader +GH_TUPLE= \ + golang:sys:fe61309f8881:golang_sys/vendor/golang.org/x/sys \ + golang:text:v0.3.7:golang_text/vendor/golang.org/x/text \ + google:gopacket:v1.1.19:google_gopacket/vendor/github.com/google/gopacket \ + itchyny:timefmt-go:v0.1.3:itchyny_timefmt_go/vendor/github.com/itchyny/timefmt-go \ + mitchellh:mapstructure:v1.4.3:mitchellh_mapstructure/vendor/github.com/mitchellh/mapstructure \ + pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \ + wader:gojq:3894ded312be:wader_gojq/vendor/github.com/wader/gojq \ + wader:readline:5a81f7707bac:wader_readline/vendor/github.com/wader/readline + +PLIST_FILES= bin/${PORTNAME} + +.include diff --git a/misc/fq/distinfo b/misc/fq/distinfo new file mode 100644 index 000000000000..49161be54be6 --- /dev/null +++ b/misc/fq/distinfo @@ -0,0 +1,19 @@ +TIMESTAMP = 1640017267 +SHA256 (wader-fq-v0.0.2_GH0.tar.gz) = 1bb7b968ba4ffe6f0dc8b080a2051719caebb96c244606468aecb2786640937b +SIZE (wader-fq-v0.0.2_GH0.tar.gz) = 1299179 +SHA256 (golang-sys-fe61309f8881_GH0.tar.gz) = 246a4b2f59ab8d7b4434b15d973e7d86ccb65c3dd3e616e4784d4ab9b50c9898 +SIZE (golang-sys-fe61309f8881_GH0.tar.gz) = 1253640 +SHA256 (golang-text-v0.3.7_GH0.tar.gz) = 7cab2f6c3133ac1d422edd952b0dd2082fa55a73c2663fb2defd9bf83d649b26 +SIZE (golang-text-v0.3.7_GH0.tar.gz) = 8354718 +SHA256 (google-gopacket-v1.1.19_GH0.tar.gz) = 31efa87cc9d2b41e5e66c7daa8839d841d2a43cc477bf595c9e8c24ef6903830 +SIZE (google-gopacket-v1.1.19_GH0.tar.gz) = 950745 +SHA256 (itchyny-timefmt-go-v0.1.3_GH0.tar.gz) = 546455b1d3e13affcca36ff0e868126353e8ae77ed8565a68393f77d7f788932 +SIZE (itchyny-timefmt-go-v0.1.3_GH0.tar.gz) = 12820 +SHA256 (mitchellh-mapstructure-v1.4.3_GH0.tar.gz) = 06198bdaa6782f68990134b88b5f0c1db44757cf81721c619fff5626d97fffc4 +SIZE (mitchellh-mapstructure-v1.4.3_GH0.tar.gz) = 28418 +SHA256 (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 28f3dc1b5c0efd61203ab07233f774740d3bf08da4d8153fb5310db6cea0ebda +SIZE (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 11398 +SHA256 (wader-gojq-3894ded312be_GH0.tar.gz) = 79566384d7a05118a41ea897d417d458b62f95d3c75d2ffe62c7f4f8934d25dc +SIZE (wader-gojq-3894ded312be_GH0.tar.gz) = 124812 +SHA256 (wader-readline-5a81f7707bac_GH0.tar.gz) = 693f0da571687045c12c3ee0353e55d71a786c952dc9761c630ad40cde86390d +SIZE (wader-readline-5a81f7707bac_GH0.tar.gz) = 38433 diff --git a/misc/fq/files/patch-pkg_checksum_crc.go b/misc/fq/files/patch-pkg_checksum_crc.go new file mode 100644 index 000000000000..631fc43ac1be --- /dev/null +++ b/misc/fq/files/patch-pkg_checksum_crc.go @@ -0,0 +1,20 @@ +--- pkg/checksum/crc.go.orig 2021-12-20 16:21:07 UTC ++++ pkg/checksum/crc.go +@@ -8,7 +8,7 @@ import ( + + type Table [256]uint + +-func MakeTable(poly int, bits int) Table { ++func MakeTable(poly uint, bits int) Table { + table := [256]uint{} + mask := uint((1 << bits) - 1) + +@@ -17,7 +17,7 @@ func MakeTable(poly int, bits int) Table { + crc := uint(i << (bits - 8)) + for j := 0; j < 8; j++ { + if crc&(1<<(bits-1)) != 0 { +- crc = ((crc << 1) ^ uint(poly)) & mask ++ crc = ((crc << 1) ^ poly) & mask + } else { + crc = (crc << 1) & mask + } diff --git a/misc/fq/pkg-descr b/misc/fq/pkg-descr new file mode 100644 index 000000000000..71d646ac4190 --- /dev/null +++ b/misc/fq/pkg-descr @@ -0,0 +1,8 @@ +Tool, language, and decoders for inspecting binary data. + +In most cases fq works the same way as jq but instead of reading JSON it +reads binary data. The result is a JSON-compatible structures where each +value has a bit range, symbolic interpretations, and knows how to present +itself in a useful way. + +WWW: https://github.com/wader/fq