git: 61ee054ee8a0 - main - misc/fq: new port had been added (+)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 25 Dec 2021 10:44:41 UTC
The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=61ee054ee8a02c9712dd8a0b289d02652ef49452 commit 61ee054ee8a02c9712dd8a0b289d02652ef49452 Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2021-12-25 10:43:08 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> 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 <danfe@FreeBSD.org> + +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 <bsd.port.mk> 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