Date: Tue, 8 Jun 2021 18:22:03 GMT From: Lewis Cook <lcook@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: a79a79b08ea0 - main - sysutils/gdu: New port: Disk usage analyzer with console interface written in Go Message-ID: <202106081822.158IM3Mg006488@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by lcook: URL: https://cgit.FreeBSD.org/ports/commit/?id=a79a79b08ea0c7cd9fb552050aedfdb3fdfd96ab commit a79a79b08ea0c7cd9fb552050aedfdb3fdfd96ab Author: Lewis Cook <lcook@FreeBSD.org> AuthorDate: 2021-06-08 18:20:40 +0000 Commit: Lewis Cook <lcook@FreeBSD.org> CommitDate: 2021-06-08 18:21:18 +0000 sysutils/gdu: New port: Disk usage analyzer with console interface written in Go --- sysutils/gdu/Makefile | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++ sysutils/gdu/distinfo | 43 ++++++++++++++++++++++++++++++++++ sysutils/gdu/pkg-descr | 7 ++++++ 3 files changed, 113 insertions(+) diff --git a/sysutils/gdu/Makefile b/sysutils/gdu/Makefile new file mode 100644 index 000000000000..1360645b6d57 --- /dev/null +++ b/sysutils/gdu/Makefile @@ -0,0 +1,63 @@ +PORTNAME= gdu +DISTVERSIONPREFIX= v +DISTVERSION= 5.1.0 +CATEGORIES= sysutils + +MAINTAINER= lcook@FreeBSD.org +COMMENT= Disk usage analyzer with console interface written in Go + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +USES= go:modules +USE_GITHUB= yes +GH_ACCOUNT= dundee +GH_TUPLE= davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \ + fatih:color:v1.10.0:fatih_color/vendor/github.com/fatih/color \ + gdamore:encoding:v1.0.0:gdamore_encoding/vendor/github.com/gdamore/encoding \ + gdamore:tcell:v2.3.3:gdamore_tcell_v2/vendor/github.com/gdamore/tcell/v2 \ + go-yaml:yaml:9f266ea9e77c:go_yaml_yaml/vendor/gopkg.in/yaml.v3 \ + golang:sys:35b2ab0089ea:golang_sys/vendor/golang.org/x/sys \ + golang:term:a79de5458b56:golang_term/vendor/golang.org/x/term \ + golang:text:v0.3.6:golang_text/vendor/golang.org/x/text \ + inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \ + lucasb-eyer:go-colorful:v1.2.0:lucasb_eyer_go_colorful/vendor/github.com/lucasb-eyer/go-colorful \ + mattn:go-colorable:v0.1.8:mattn_go_colorable/vendor/github.com/mattn/go-colorable \ + mattn:go-isatty:v0.0.12:mattn_go_isatty/vendor/github.com/mattn/go-isatty \ + mattn:go-runewidth:v0.0.13:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \ + pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \ + rivo:tview:8a8f78a6dd01:rivo_tview/vendor/github.com/rivo/tview \ + rivo:uniseg:v0.2.0:rivo_uniseg/vendor/github.com/rivo/uniseg \ + sirupsen:logrus:v1.8.1:sirupsen_logrus/vendor/github.com/sirupsen/logrus \ + spf13:cobra:v1.1.3:spf13_cobra/vendor/github.com/spf13/cobra \ + spf13:pflag:v1.0.5:spf13_pflag/vendor/github.com/spf13/pflag \ + stretchr:testify:v1.6.1:stretchr_testify/vendor/github.com/stretchr/testify + +_BUILD_VERSION= ${DISTVERSIONFULL} +_BUILD_MAJOR= ${_BUILD_VERSION:C/\..*$//} +_BUILD_DATE= $$(date +%Y-%m-%d) + +GO_TARGET= ./cmd/${PORTNAME} +GO_BUILDFLAGS= -ldflags "\ + -s -w \ + -X github.com/${GH_ACCOUNT}/${GH_PROJECT}/${_BUILD_MAJOR}/build.Version=${_BUILD_VERSION} \ + -X github.com/${GH_ACCOUNT}/${GH_PROJECT}/${_BUILD_MAJOR}/build.Time=${_BUILD_DATE}" + +PLIST_FILES= bin/${PORTNAME} +PORTDOCS= README.md + +OPTIONS_DEFINE= DOCS MANPAGES +OPTIONS_DEFAULT= MANPAGES + +MANPAGES_PLIST_FILES= man/man1/${PORTNAME}.1.gz + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} \ + ${STAGEDIR}${DOCSDIR} + +post-install-MANPAGES-on: + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 \ + ${STAGEDIR}${MAN1PREFIX}/man/man1 + +.include <bsd.port.mk> diff --git a/sysutils/gdu/distinfo b/sysutils/gdu/distinfo new file mode 100644 index 000000000000..4a099767c320 --- /dev/null +++ b/sysutils/gdu/distinfo @@ -0,0 +1,43 @@ +TIMESTAMP = 1623174395 +SHA256 (dundee-gdu-v5.1.0_GH0.tar.gz) = d51b1204f7d2132ef8d9d5dd20327630b6c9d8ab45d9f9c1c131334c73f28fe4 +SIZE (dundee-gdu-v5.1.0_GH0.tar.gz) = 45862 +SHA256 (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 7d82b9bb7291adbe7498fe946920ab3e7fc9e6cbfc3b2294693fad00bf0dd17e +SIZE (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 42152 +SHA256 (fatih-color-v1.10.0_GH0.tar.gz) = a00342a7ffb8b119346dce56e152a111cbb9eab3970c429cc2ed4272aec2858e +SIZE (fatih-color-v1.10.0_GH0.tar.gz) = 1267532 +SHA256 (gdamore-encoding-v1.0.0_GH0.tar.gz) = 8fb8593a69cd86f16233d63dd6d74181136ec8f22900c509e961a25eb4b2e013 +SIZE (gdamore-encoding-v1.0.0_GH0.tar.gz) = 10886 +SHA256 (gdamore-tcell-v2.3.3_GH0.tar.gz) = 3429cbda0818afa0c553b128545e612f5aba2c87afcf223ee8a950f7a2043163 +SIZE (gdamore-tcell-v2.3.3_GH0.tar.gz) = 153349 +SHA256 (go-yaml-yaml-9f266ea9e77c_GH0.tar.gz) = 63efc9aabcbb56b2c9469927784fd67ecb3a79720c4fa754c511335a04156d04 +SIZE (go-yaml-yaml-9f266ea9e77c_GH0.tar.gz) = 86898 +SHA256 (golang-sys-35b2ab0089ea_GH0.tar.gz) = ae3263474cd4232035eca625e6382d0bf27ee2367ff683a9722cf38d40fe44ac +SIZE (golang-sys-35b2ab0089ea_GH0.tar.gz) = 1197183 +SHA256 (golang-term-a79de5458b56_GH0.tar.gz) = e2456003e6399902c70947a068f3e0f043de033c8ade1713d8d7294a5c6521ab +SIZE (golang-term-a79de5458b56_GH0.tar.gz) = 14927 +SHA256 (golang-text-v0.3.6_GH0.tar.gz) = f66bebcf21985b0a713d67c6c35dfc9800d3b6d00d62b83ed0ce5b2ed4cb9760 +SIZE (golang-text-v0.3.6_GH0.tar.gz) = 8351095 +SHA256 (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 5edc7731c819c305623568e317aa253d342be3447def97f1fa9e10eb5ad819f6 +SIZE (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 2290 +SHA256 (lucasb-eyer-go-colorful-v1.2.0_GH0.tar.gz) = b3ee835cc398287452377266313edcc231043bae4168f8d2706e5d34ce1ce755 +SIZE (lucasb-eyer-go-colorful-v1.2.0_GH0.tar.gz) = 970830 +SHA256 (mattn-go-colorable-v0.1.8_GH0.tar.gz) = 1027954f9abbe06b6e117e3047af70204dd0eb4f8c27fcd459fb2574b279755f +SIZE (mattn-go-colorable-v0.1.8_GH0.tar.gz) = 9571 +SHA256 (mattn-go-isatty-v0.0.12_GH0.tar.gz) = addbdc341d7685ed4cc8d2d8a8fd2bd9b784bde00d0ea99fb251039fc10c611c +SIZE (mattn-go-isatty-v0.0.12_GH0.tar.gz) = 4548 +SHA256 (mattn-go-runewidth-v0.0.13_GH0.tar.gz) = 9b2aeafa5d95a40b32067ba22accdf42cc83414ec5b433ea7de330791beaa196 +SIZE (mattn-go-runewidth-v0.0.13_GH0.tar.gz) = 17353 +SHA256 (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 28f3dc1b5c0efd61203ab07233f774740d3bf08da4d8153fb5310db6cea0ebda +SIZE (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 11398 +SHA256 (rivo-tview-8a8f78a6dd01_GH0.tar.gz) = d8a58cd0ca07d37616f032c5a270f93da181eba3f735d40bb68634d098c35ae5 +SIZE (rivo-tview-8a8f78a6dd01_GH0.tar.gz) = 2872081 +SHA256 (rivo-uniseg-v0.2.0_GH0.tar.gz) = 3ad738b5c9162ede110d75b23564b6e40e52dd9150ebbced402f4f70be106197 +SIZE (rivo-uniseg-v0.2.0_GH0.tar.gz) = 44036 +SHA256 (sirupsen-logrus-v1.8.1_GH0.tar.gz) = e9492c08ac8f202b438ccfb992bf81b7860739cf8f2266958e0c574c7abfdd74 +SIZE (sirupsen-logrus-v1.8.1_GH0.tar.gz) = 47161 +SHA256 (spf13-cobra-v1.1.3_GH0.tar.gz) = e5f93c61e1236e61c7fc45882d2a03b81f46ebebdf70628ebb64b0b5fe34f6fa +SIZE (spf13-cobra-v1.1.3_GH0.tar.gz) = 146580 +SHA256 (spf13-pflag-v1.0.5_GH0.tar.gz) = 9a2cae1f8e8ab0d2cc8ebe468e871af28d9ac0962cf0520999e3ba85f0c7b808 +SIZE (spf13-pflag-v1.0.5_GH0.tar.gz) = 50796 +SHA256 (stretchr-testify-v1.6.1_GH0.tar.gz) = 40fd7204ab72ca9d8759f1cc3604dd17f556a0f9177f6fc05dd0cad9f06e708f +SIZE (stretchr-testify-v1.6.1_GH0.tar.gz) = 84215 diff --git a/sysutils/gdu/pkg-descr b/sysutils/gdu/pkg-descr new file mode 100644 index 000000000000..68d38ce9083c --- /dev/null +++ b/sysutils/gdu/pkg-descr @@ -0,0 +1,7 @@ +Pretty fast disk usage analyzer written in Go. + +Gdu is intended primarily for SSD disks where it +can fully utilize parallel processing. However HDDs +work as well, but the performance gain is not so huge. + +WWW: https://github.com/dundee/gdu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106081822.158IM3Mg006488>