From 60b427c02a39e4802c5e47c519bc89a49ddb2f0e Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Wed, 30 Sep 2020 06:41:24 +0000 Subject: [PATCH] Add sysutils/duf: Disk Usage/Free Utility PR: 250000 Submitted by: Lewis Cook --- sysutils/Makefile | 1 + sysutils/duf/Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++ sysutils/duf/distinfo | 17 +++++++++++++++++ sysutils/duf/pkg-descr | 9 +++++++++ 4 files changed, 69 insertions(+) create mode 100644 sysutils/duf/Makefile create mode 100644 sysutils/duf/distinfo create mode 100644 sysutils/duf/pkg-descr diff --git a/sysutils/Makefile b/sysutils/Makefile index df2a844aa57d..cbe5eecaea55 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -276,6 +276,7 @@ SUBDIR += dtrace-toolkit SUBDIR += du2ps SUBDIR += dua-cli + SUBDIR += duf SUBDIR += duff SUBDIR += dunst SUBDIR += dupd diff --git a/sysutils/duf/Makefile b/sysutils/duf/Makefile new file mode 100644 index 000000000000..430e6d5fa36a --- /dev/null +++ b/sysutils/duf/Makefile @@ -0,0 +1,42 @@ +# $FreeBSD$ + +PORTNAME= duf +DISTVERSIONPREFIX= v +DISTVERSION= 0.3.1 +CATEGORIES= sysutils + +MAINTAINER= vulcan@wired.sh +COMMENT= Disk Usage/Free Utility + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:modules +USE_GITHUB= yes +GH_ACCOUNT= muesli +GH_TUPLE= golang:crypto:5c72a883971a:golang_crypto/vendor/golang.org/x/crypto \ + golang:sys:af09f7315aff:golang_sys/vendor/golang.org/x/sys \ + jedib0t:go-pretty:v6.0.4:jedib0t_go_pretty_v6/vendor/github.com/jedib0t/go-pretty/v6 \ + lucasb-eyer:go-colorful:v1.0.3:lucasb_eyer_go_colorful/vendor/github.com/lucasb-eyer/go-colorful \ + mattn:go-isatty:v0.0.12:mattn_go_isatty/vendor/github.com/mattn/go-isatty \ + mattn:go-runewidth:v0.0.9:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \ + muesli:termenv:v0.7.2:muesli_termenv/vendor/github.com/muesli/termenv + +_BUILD_VERSION= ${DISTVERSION} +_BUILD_SHA= b9f0e24 + +GO_BUILDFLAGS= -ldflags "\ + -s -w \ + -X main.Version=${_BUILD_VERSION} \ + -X main.CommitSHA=${_BUILD_SHA}" + +PLIST_FILES= bin/${PORTNAME} +PORTDOCS= README.md + +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR} + +.include diff --git a/sysutils/duf/distinfo b/sysutils/duf/distinfo new file mode 100644 index 000000000000..3d5b5b60b448 --- /dev/null +++ b/sysutils/duf/distinfo @@ -0,0 +1,17 @@ +TIMESTAMP = 1601429878 +SHA256 (muesli-duf-v0.3.1_GH0.tar.gz) = 98b5cdc4a7b3c5eddc0ec397c65860110b446e85cc4f3cfe3e32f31ce524e90d +SIZE (muesli-duf-v0.3.1_GH0.tar.gz) = 124337 +SHA256 (golang-crypto-5c72a883971a_GH0.tar.gz) = 2b8df0754ba64c95786bc5fe2071cadf4757f754e774f5985d725c1aaa6cb3d8 +SIZE (golang-crypto-5c72a883971a_GH0.tar.gz) = 1732429 +SHA256 (golang-sys-af09f7315aff_GH0.tar.gz) = 42f744f4f5ce6019a7a52a5cfa417d4422bb054a397b3ca663151d3865b24e80 +SIZE (golang-sys-af09f7315aff_GH0.tar.gz) = 1063254 +SHA256 (jedib0t-go-pretty-v6.0.4_GH0.tar.gz) = cb4910133f59002ca757aeaf1d329425e9d1d7d33b962685241ce62d17fe037a +SIZE (jedib0t-go-pretty-v6.0.4_GH0.tar.gz) = 398695 +SHA256 (lucasb-eyer-go-colorful-v1.0.3_GH0.tar.gz) = 40c8c7e03a4eeaaabd44273e9b6a992933f554f17225aadd0b225ffc67e1e7db +SIZE (lucasb-eyer-go-colorful-v1.0.3_GH0.tar.gz) = 430208 +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.9_GH0.tar.gz) = 4f20a337ad06e071f29535afe9c5207d3e8840c8c86672bbc5f9837c6229c835 +SIZE (mattn-go-runewidth-v0.0.9_GH0.tar.gz) = 16714 +SHA256 (muesli-termenv-v0.7.2_GH0.tar.gz) = f4f7fbea1149d10eb0559f7edea90876317a710b30474bf6e3ba257fe0cb7a36 +SIZE (muesli-termenv-v0.7.2_GH0.tar.gz) = 405812 diff --git a/sysutils/duf/pkg-descr b/sysutils/duf/pkg-descr new file mode 100644 index 000000000000..3964e0911cbd --- /dev/null +++ b/sysutils/duf/pkg-descr @@ -0,0 +1,9 @@ +Simple Disk Usage/Free Utility featuring: + +* User-friendly, colorful output +* Adjusts to your terminal's width +* Sort the results according to your needs +* Groups & filters devices +* Can conveniently output JSON + +WWW: https://github.com/muesli/duf