git: 036d500ef682 - main - shells/shell-hist: New port: Inspect your shell history

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 06 Jan 2023 09:00:25 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=036d500ef682b71ec8c5816b921a64ed8af48ce1

commit 036d500ef682b71ec8c5816b921a64ed8af48ce1
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-01-06 08:59:37 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-01-06 09:00:20 +0000

    shells/shell-hist: New port: Inspect your shell history
---
 shells/Makefile             |   1 +
 shells/shell-hist/Makefile  |  81 +++++++++++++++++++++++++++++++
 shells/shell-hist/distinfo  | 113 ++++++++++++++++++++++++++++++++++++++++++++
 shells/shell-hist/pkg-descr |   2 +
 4 files changed, 197 insertions(+)

diff --git a/shells/Makefile b/shells/Makefile
index f8dbce986479..fd3bdc21cd5e 100644
--- a/shells/Makefile
+++ b/shells/Makefile
@@ -46,6 +46,7 @@
     SUBDIR += rush
     SUBDIR += sash
     SUBDIR += scponly
+    SUBDIR += shell-hist
     SUBDIR += shellharden
     SUBDIR += starship
     SUBDIR += switchBashZsh
diff --git a/shells/shell-hist/Makefile b/shells/shell-hist/Makefile
new file mode 100644
index 000000000000..5a1e79349d7a
--- /dev/null
+++ b/shells/shell-hist/Makefile
@@ -0,0 +1,81 @@
+PORTNAME=	shell-hist
+DISTVERSION=	g20190515
+CATEGORIES=	shells
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Inspect your shell history
+WWW=		https://github.com/jamesmunns/shell-hist
+
+LICENSE=	APACHE20 MIT
+LICENSE_COMB=	dual
+LICENSE_FILE_APACHE20=	${WRKSRC}/LICENSE-APACHE
+LICENSE_FILE_MIT=	${WRKSRC}/LICENSE-MIT
+
+USES=		cargo
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	jamesmunns
+GH_TAGNAME=	b2f1c3f
+
+CARGO_CRATES=	aho-corasick-0.7.3 \
+		ansi_term-0.11.0 \
+		argon2rs-0.2.5 \
+		arrayvec-0.4.10 \
+		atty-0.2.11 \
+		autocfg-0.1.2 \
+		backtrace-0.3.15 \
+		backtrace-sys-0.1.28 \
+		bitflags-1.0.4 \
+		blake2-rfc-0.2.18 \
+		cc-1.0.36 \
+		cfg-if-0.1.7 \
+		clap-2.33.0 \
+		cloudabi-0.0.3 \
+		constant_time_eq-0.1.3 \
+		dirs-1.0.5 \
+		failure-0.1.5 \
+		failure_derive-0.1.5 \
+		fuchsia-cprng-0.1.1 \
+		heck-0.3.1 \
+		lazy_static-1.3.0 \
+		libc-0.2.54 \
+		memchr-2.2.0 \
+		nodrop-0.1.13 \
+		numtoa-0.1.0 \
+		proc-macro2-0.4.30 \
+		quote-0.6.12 \
+		rand_core-0.3.1 \
+		rand_core-0.4.0 \
+		rand_os-0.1.3 \
+		rdrand-0.4.0 \
+		redox_syscall-0.1.54 \
+		redox_termios-0.1.1 \
+		redox_users-0.3.0 \
+		regex-1.1.6 \
+		regex-syntax-0.6.6 \
+		rustc-demangle-0.1.14 \
+		scoped_threadpool-0.1.9 \
+		strsim-0.8.0 \
+		structopt-0.2.15 \
+		structopt-derive-0.2.15 \
+		syn-0.15.34 \
+		synstructure-0.10.1 \
+		termion-1.5.2 \
+		textwrap-0.11.0 \
+		thread_local-0.3.6 \
+		ucd-util-0.1.3 \
+		unicode-segmentation-1.2.1 \
+		unicode-width-0.1.5 \
+		unicode-xid-0.1.0 \
+		utf8-ranges-1.0.2 \
+		vec_map-0.8.1 \
+		winapi-0.3.7 \
+		winapi-i686-pc-windows-gnu-0.4.0 \
+		winapi-x86_64-pc-windows-gnu-0.4.0
+
+PLIST_FILES=	bin/${PORTNAME}
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/shells/shell-hist/distinfo b/shells/shell-hist/distinfo
new file mode 100644
index 000000000000..b8ad0e235010
--- /dev/null
+++ b/shells/shell-hist/distinfo
@@ -0,0 +1,113 @@
+TIMESTAMP = 1672995365
+SHA256 (rust/crates/aho-corasick-0.7.3.crate) = e6f484ae0c99fec2e858eb6134949117399f222608d84cadb3f58c1f97c2364c
+SIZE (rust/crates/aho-corasick-0.7.3.crate) = 55093
+SHA256 (rust/crates/ansi_term-0.11.0.crate) = ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b
+SIZE (rust/crates/ansi_term-0.11.0.crate) = 17087
+SHA256 (rust/crates/argon2rs-0.2.5.crate) = 3f67b0b6a86dae6e67ff4ca2b6201396074996379fba2b92ff649126f37cb392
+SIZE (rust/crates/argon2rs-0.2.5.crate) = 353096
+SHA256 (rust/crates/arrayvec-0.4.10.crate) = 92c7fb76bc8826a8b33b4ee5bb07a247a81e76764ab4d55e8f73e3a4d8808c71
+SIZE (rust/crates/arrayvec-0.4.10.crate) = 26133
+SHA256 (rust/crates/atty-0.2.11.crate) = 9a7d5b8723950951411ee34d271d99dddcc2035a16ab25310ea2c8cfd4369652
+SIZE (rust/crates/atty-0.2.11.crate) = 5916
+SHA256 (rust/crates/autocfg-0.1.2.crate) = a6d640bee2da49f60a4068a7fae53acde8982514ab7bae8b8cea9e88cbcfd799
+SIZE (rust/crates/autocfg-0.1.2.crate) = 10444
+SHA256 (rust/crates/backtrace-0.3.15.crate) = f106c02a3604afcdc0df5d36cc47b44b55917dbaf3d808f71c163a0ddba64637
+SIZE (rust/crates/backtrace-0.3.15.crate) = 33807
+SHA256 (rust/crates/backtrace-sys-0.1.28.crate) = 797c830ac25ccc92a7f8a7b9862bde440715531514594a6154e3d4a54dd769b6
+SIZE (rust/crates/backtrace-sys-0.1.28.crate) = 522603
+SHA256 (rust/crates/bitflags-1.0.4.crate) = 228047a76f468627ca71776ecdebd732a3423081fcf5125585bcd7c49886ce12
+SIZE (rust/crates/bitflags-1.0.4.crate) = 15282
+SHA256 (rust/crates/blake2-rfc-0.2.18.crate) = 5d6d530bdd2d52966a6d03b7a964add7ae1a288d25214066fd4b600f0f796400
+SIZE (rust/crates/blake2-rfc-0.2.18.crate) = 15676
+SHA256 (rust/crates/cc-1.0.36.crate) = a0c56216487bb80eec9c4516337b2588a4f2a2290d72a1416d930e4dcdb0c90d
+SIZE (rust/crates/cc-1.0.36.crate) = 44483
+SHA256 (rust/crates/cfg-if-0.1.7.crate) = 11d43355396e872eefb45ce6342e4374ed7bc2b3a502d1b28e36d6e23c05d1f4
+SIZE (rust/crates/cfg-if-0.1.7.crate) = 7360
+SHA256 (rust/crates/clap-2.33.0.crate) = 5067f5bb2d80ef5d68b4c87db81601f0b75bca627bc2ef76b141d7b846a3c6d9
+SIZE (rust/crates/clap-2.33.0.crate) = 196458
+SHA256 (rust/crates/cloudabi-0.0.3.crate) = ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f
+SIZE (rust/crates/cloudabi-0.0.3.crate) = 22156
+SHA256 (rust/crates/constant_time_eq-0.1.3.crate) = 8ff012e225ce166d4422e0e78419d901719760f62ae2b7969ca6b564d1b54a9e
+SIZE (rust/crates/constant_time_eq-0.1.3.crate) = 1279
+SHA256 (rust/crates/dirs-1.0.5.crate) = 3fd78930633bd1c6e35c4b42b1df7b0cbc6bc191146e512bb3bedf243fcc3901
+SIZE (rust/crates/dirs-1.0.5.crate) = 12908
+SHA256 (rust/crates/failure-0.1.5.crate) = 795bd83d3abeb9220f257e597aa0080a508b27533824adf336529648f6abf7e2
+SIZE (rust/crates/failure-0.1.5.crate) = 36749
+SHA256 (rust/crates/failure_derive-0.1.5.crate) = ea1063915fd7ef4309e222a5a07cf9c319fb9c7836b1f89b85458672dbb127e1
+SIZE (rust/crates/failure_derive-0.1.5.crate) = 4884
+SHA256 (rust/crates/fuchsia-cprng-0.1.1.crate) = a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba
+SIZE (rust/crates/fuchsia-cprng-0.1.1.crate) = 2950
+SHA256 (rust/crates/heck-0.3.1.crate) = 20564e78d53d2bb135c343b3f47714a56af2061f1c928fdb541dc7b9fdd94205
+SIZE (rust/crates/heck-0.3.1.crate) = 54666
+SHA256 (rust/crates/lazy_static-1.3.0.crate) = bc5729f27f159ddd61f4df6228e827e86643d4d3e7c32183cb30a1c08f604a14
+SIZE (rust/crates/lazy_static-1.3.0.crate) = 10616
+SHA256 (rust/crates/libc-0.2.54.crate) = c6785aa7dd976f5fbf3b71cfd9cd49d7f783c1ff565a858d71031c6c313aa5c6
+SIZE (rust/crates/libc-0.2.54.crate) = 401259
+SHA256 (rust/crates/memchr-2.2.0.crate) = 2efc7bc57c883d4a4d6e3246905283d8dae951bb3bd32f49d6ef297f546e1c39
+SIZE (rust/crates/memchr-2.2.0.crate) = 20939
+SHA256 (rust/crates/nodrop-0.1.13.crate) = 2f9667ddcc6cc8a43afc9b7917599d7216aa09c463919ea32c59ed6cac8bc945
+SIZE (rust/crates/nodrop-0.1.13.crate) = 7508
+SHA256 (rust/crates/numtoa-0.1.0.crate) = b8f8bdf33df195859076e54ab11ee78a1b208382d3a26ec40d142ffc1ecc49ef
+SIZE (rust/crates/numtoa-0.1.0.crate) = 8999
+SHA256 (rust/crates/proc-macro2-0.4.30.crate) = cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759
+SIZE (rust/crates/proc-macro2-0.4.30.crate) = 34731
+SHA256 (rust/crates/quote-0.6.12.crate) = faf4799c5d274f3868a4aae320a0a182cbd2baee377b378f080e16a23e9d80db
+SIZE (rust/crates/quote-0.6.12.crate) = 17541
+SHA256 (rust/crates/rand_core-0.3.1.crate) = 7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b
+SIZE (rust/crates/rand_core-0.3.1.crate) = 15483
+SHA256 (rust/crates/rand_core-0.4.0.crate) = d0e7a549d590831370895ab7ba4ea0c1b6b011d106b5ff2da6eee112615e6dc0
+SIZE (rust/crates/rand_core-0.4.0.crate) = 20326
+SHA256 (rust/crates/rand_os-0.1.3.crate) = 7b75f676a1e053fc562eafbb47838d67c84801e38fc1ba459e8f180deabd5071
+SIZE (rust/crates/rand_os-0.1.3.crate) = 18965
+SHA256 (rust/crates/rdrand-0.4.0.crate) = 678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2
+SIZE (rust/crates/rdrand-0.4.0.crate) = 6456
+SHA256 (rust/crates/redox_syscall-0.1.54.crate) = 12229c14a0f65c4f1cb046a3b52047cdd9da1f4b30f8a39c5063c8bae515e252
+SIZE (rust/crates/redox_syscall-0.1.54.crate) = 15668
+SHA256 (rust/crates/redox_termios-0.1.1.crate) = 7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76
+SIZE (rust/crates/redox_termios-0.1.1.crate) = 3227
+SHA256 (rust/crates/redox_users-0.3.0.crate) = 3fe5204c3a17e97dde73f285d49be585df59ed84b50a872baf416e73b62c3828
+SIZE (rust/crates/redox_users-0.3.0.crate) = 12766
+SHA256 (rust/crates/regex-1.1.6.crate) = 8f0a0bcab2fd7d1d7c54fa9eae6f43eddeb9ce2e7352f8518a814a4f65d60c58
+SIZE (rust/crates/regex-1.1.6.crate) = 243429
+SHA256 (rust/crates/regex-syntax-0.6.6.crate) = dcfd8681eebe297b81d98498869d4aae052137651ad7b96822f09ceb690d0a96
+SIZE (rust/crates/regex-syntax-0.6.6.crate) = 273068
+SHA256 (rust/crates/rustc-demangle-0.1.14.crate) = ccc78bfd5acd7bf3e89cffcf899e5cb1a52d6fafa8dec2739ad70c9577a57288
+SIZE (rust/crates/rustc-demangle-0.1.14.crate) = 18721
+SHA256 (rust/crates/scoped_threadpool-0.1.9.crate) = 1d51f5df5af43ab3f1360b429fa5e0152ac5ce8c0bd6485cae490332e96846a8
+SIZE (rust/crates/scoped_threadpool-0.1.9.crate) = 7800
+SHA256 (rust/crates/strsim-0.8.0.crate) = 8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a
+SIZE (rust/crates/strsim-0.8.0.crate) = 9309
+SHA256 (rust/crates/structopt-0.2.15.crate) = 3d0760c312538987d363c36c42339b55f5ee176ea8808bbe4543d484a291c8d1
+SIZE (rust/crates/structopt-0.2.15.crate) = 25564
+SHA256 (rust/crates/structopt-derive-0.2.15.crate) = 528aeb7351d042e6ffbc2a6fb76a86f9b622fdf7c25932798e7a82cb03bc94c6
+SIZE (rust/crates/structopt-derive-0.2.15.crate) = 12486
+SHA256 (rust/crates/syn-0.15.34.crate) = a1393e4a97a19c01e900df2aec855a29f71cf02c402e2f443b8d2747c25c5dbe
+SIZE (rust/crates/syn-0.15.34.crate) = 149802
+SHA256 (rust/crates/synstructure-0.10.1.crate) = 73687139bf99285483c96ac0add482c3776528beac1d97d444f6e91f203a2015
+SIZE (rust/crates/synstructure-0.10.1.crate) = 17836
+SHA256 (rust/crates/termion-1.5.2.crate) = dde0593aeb8d47accea5392b39350015b5eccb12c0d98044d856983d89548dea
+SIZE (rust/crates/termion-1.5.2.crate) = 22076
+SHA256 (rust/crates/textwrap-0.11.0.crate) = d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060
+SIZE (rust/crates/textwrap-0.11.0.crate) = 17322
+SHA256 (rust/crates/thread_local-0.3.6.crate) = c6b53e329000edc2b34dbe8545fd20e55a333362d0a321909685a19bd28c3f1b
+SIZE (rust/crates/thread_local-0.3.6.crate) = 12388
+SHA256 (rust/crates/ucd-util-0.1.3.crate) = 535c204ee4d8434478593480b8f86ab45ec9aae0e83c568ca81abf0fd0e88f86
+SIZE (rust/crates/ucd-util-0.1.3.crate) = 25897
+SHA256 (rust/crates/unicode-segmentation-1.2.1.crate) = aa6024fc12ddfd1c6dbc14a80fa2324d4568849869b779f6bd37e5e4c03344d1
+SIZE (rust/crates/unicode-segmentation-1.2.1.crate) = 68223
+SHA256 (rust/crates/unicode-width-0.1.5.crate) = 882386231c45df4700b275c7ff55b6f3698780a650026380e72dabe76fa46526
+SIZE (rust/crates/unicode-width-0.1.5.crate) = 15761
+SHA256 (rust/crates/unicode-xid-0.1.0.crate) = fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc
+SIZE (rust/crates/unicode-xid-0.1.0.crate) = 16000
+SHA256 (rust/crates/utf8-ranges-1.0.2.crate) = 796f7e48bef87609f7ade7e06495a87d5cd06c7866e6a5cbfceffc558a243737
+SIZE (rust/crates/utf8-ranges-1.0.2.crate) = 8510
+SHA256 (rust/crates/vec_map-0.8.1.crate) = 05c78687fb1a80548ae3250346c3db86a80a7cdd77bda190189f2d0a0987c81a
+SIZE (rust/crates/vec_map-0.8.1.crate) = 14959
+SHA256 (rust/crates/winapi-0.3.7.crate) = f10e386af2b13e47c89e7236a7a14a086791a2b88ebad6df9bf42040195cf770
+SIZE (rust/crates/winapi-0.3.7.crate) = 1075776
+SHA256 (rust/crates/winapi-i686-pc-windows-gnu-0.4.0.crate) = ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6
+SIZE (rust/crates/winapi-i686-pc-windows-gnu-0.4.0.crate) = 2918815
+SHA256 (rust/crates/winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f
+SIZE (rust/crates/winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 2947998
+SHA256 (jamesmunns-shell-hist-g20190515-b2f1c3f_GH0.tar.gz) = 98246ba1836dc1e67ad91fb7c6e5ea54d3c6dbdfa1823859a64116353a9b8318
+SIZE (jamesmunns-shell-hist-g20190515-b2f1c3f_GH0.tar.gz) = 81437
diff --git a/shells/shell-hist/pkg-descr b/shells/shell-hist/pkg-descr
new file mode 100644
index 000000000000..dce2068e867b
--- /dev/null
+++ b/shells/shell-hist/pkg-descr
@@ -0,0 +1,2 @@
+shell-hist allows to take a look at your most common shell commands, based on
+your history file.