From: Daniel Milde Date: Thu, 22 Sep 2022 21:04:44 +0000 (+0100) Subject: Import gdu_5.18.1-1.debian.tar.xz X-Git-Tag: archive/raspbian/5.18.1-1+rpi1^2~1^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cc46bdbf375cf814dbdc076dec84cb5748cacf41;p=gdu.git Import gdu_5.18.1-1.debian.tar.xz [dgit import tarball gdu 5.18.1-1 gdu_5.18.1-1.debian.tar.xz] --- cc46bdbf375cf814dbdc076dec84cb5748cacf41 diff --git a/changelog b/changelog new file mode 100644 index 0000000..7bc4943 --- /dev/null +++ b/changelog @@ -0,0 +1,317 @@ +gdu (5.18.1-1) unstable; urgency=medium + + * feat: shorten current item path to 70 chars #172 + * feat: configuration option for setting maximum length of the path for current item in the progress modal + * feat: show time in progress modal + * fix: two more lines for progress modal #172 + * fix: readded --config-file flag + * fix: read non-default config file properly + * fix: correct config file option regex + + -- Daniel Milde Thu, 22 Sep 2022 23:04:44 +0200 + +gdu (5.17.1-1) unstable; urgency=medium + + [ Daniel Milde ] + * fix(tests): access to updateDraws behind mutex + * refactor: SignalGroup instead of chan + * fix: add progressDoneChan + * chore: update golangci-lint to v3 + * ci: added statically linked binary for linux/amd64 + + [ Edward Betts ] + * Correct spelling mistakes + + [ Steven Conaway ] + * Add darwin@arm64 + + [ Daniel Milde ] + * feat: sort items by name if usage/size/count is the same + + [ Anna “CyberTailor” ] + * ci: generate release tarballs + + [ Riatre Foo ] + * fix: honor --summarize when reading analysis + + [ Phani Rithvij ] + * upgrade dependencies + + [ Daniel Milde ] + * refactor: correct ordering + * feat: natural sorting of names + * fix: correct sorting for non-interactive and export modes + * feat: show sizes as raw numbers without prefixes + * docs: flags updated + * refactor: extract common logic for BSD + * refactor: split keyPressed + + [ mcoret ] + * Update dir_other.go + + [ Daniel Milde ] + * ci: binary for Android + * test: run 0 perm tests only for Linux + * fix: mount output format fixes #159 + * feat: better error message + * test: run zfs test only on freebsd + * fix: panic on analyzing mount multiple times + * feat: initial mouse support closes #163 + * chore: ignore vendor dir + * feat: use configuration file + * fix: file name + * docs: man page updated + * fix: check error + * test: use gotestsum for running tests + * refactor: use only yaml for reading/writing config file + * feat: added possibility to change text color and + background color of the selected row fixes #168 + * docs: order of sections fixed + * fix: nul log file for Windows fixes #171 + * fix: increase the vertical size of the progress modal fixes #172 + * d/control: added dependency on golang-gopkg-yaml.v3-dev + + -- Daniel Milde Tue, 13 Sep 2022 00:14:32 +0200 + +gdu (5.13.2-1) unstable; urgency=medium + + [ Daniel Milde ] + * refactor: interfaces moved away from implementations + * fix: unkeyd fields + * doc: gdu migrated to community in ArchLinux + * refactor: size constants renamed + * added option `--si` for showing sizes with decimal SI prefixes + * fix: register pprof endpoints only when requested + * refactor: enabling/disabling GC moved to analyzer + * balance speed and memory usage + + [ Georgi Georgiev ] + * Make the bar graph meaningful in large directories + * Make the relative-size display the user's choice + * Fix the tests + + [ Daniel Milde ] + * refactor: we only read from chan + * test: more tests for relative bar + * test: test closing help using question mark and + moving around when info page is opened + * fix: recreate doneChan for every scan + * fix: check value before waiting + * refactor: return concrete implementation + * refactor: proper parameter name + + [ Georgi Georgiev ] + * Properly count only the first hard link size on a rescan + + [ Daniel Milde ] + * fix: do not panic if path does not start with slash + * test: added more file and actions tests + * fix(devices): go back to devices list + + -- Daniel Milde Sat, 19 Feb 2022 18:01:48 +0100 + +gdu (5.12.1-1) unstable; urgency=medium + + [ Daniel Milde ] + * man page updated + * benchmarks updated + + [ Leonidas Spyropoulos ] + * Implement noCross for darwin + + [ Daniel Milde ] + * device implementation for freebsd and darwin merged + * fixed processing mount points with space on linux + * fixed bsd test + * travis icon removed + * openbsd and netbsd builds fixed + * listing devices on netbsd + * use sys.unix instead of syscall + * added compilation directives + * fix: escape file names + * fix: direct dependency on sys + * fix: do not pass key when filtering is started + * doc: small readme rewording + + -- Daniel Milde Sun, 12 Dec 2021 10:41:59 +0100 + +gdu (5.11.0-1) unstable; urgency=medium + + * added option to run memory garbage collection during analysis + * added option to collect profiling data + + -- Daniel Milde Sun, 28 Nov 2021 13:16:00 +0100 + +gdu (5.10.1-1) unstable; urgency=medium + + * convert path to absolute before checking crossing mountpoints + + -- Daniel Milde Tue, 23 Nov 2021 16:09:23 +0100 + +gdu (5.10.0-1) unstable; urgency=medium + + [ Daniel Milde ] + * fix: correct install command for go + * refactor: use strconv instead of fmt + + [ Jay R. Wren ] + * add ino, hlnkc to json + * tests + + [ Daniel Milde ] + * stop UI when spawning shell on Windows + * test execute + * show info about hard-linked files + * added possibility to move around while info window is opened + + [ Jeremy Neville ] + * Info modal closes with "i" + + [ Daniel Milde ] + * fix: do not show help if file info is shown + + -- Daniel Milde Thu, 11 Nov 2021 18:04:36 +0100 + +gdu (5.9.0-1) unstable; urgency=medium + + * added option to show total usage for given path #96 + * added option to read ignore patterns from file + * refactor: struct fields aligned correctly + + -- Daniel Milde Sat, 23 Oct 2021 15:16:31 +0200 + +gdu (5.8.1-3) unstable; urgency=medium + + * use go 1.16 + + -- Daniel Milde Fri, 15 Oct 2021 14:30:04 +0200 + +gdu (5.8.1-2) unstable; urgency=medium + + * standards bumped to 4.6.0 + + -- Daniel Milde Mon, 27 Sep 2021 20:36:47 +0200 + +gdu (5.8.1-1) unstable; urgency=medium + + * stop GC while running analysis + * do not build PIE as it breaks build on mips + + -- Daniel Milde Mon, 27 Sep 2021 11:59:37 +0200 + +gdu (5.7.0-1) unstable; urgency=medium + + * sort devices by name and used size + * show total usage and sorting on devices list + * suspend the application instead of stopping + + -- Daniel Milde Sun, 19 Sep 2021 22:09:57 +0200 + +gdu (5.6.2-1) unstable; urgency=medium + + [ Daniel Milde ] + * upgrade to go 1.16 + * use 3x number of cores + * run gc when the analysis is done + * show content of file + * disable CGO for all builds + * do not allow some actions while scanning/deleting/confirming + * keep selected dir when using enter for return + * use GOMAXPROCS + * use channel instead of mutex + + [ Jeff Cook ] + * Keep cursor on selection when swapping between apparent/actual size. + + [ knyazevoe ] + * added maxprocs flag, that sets GOMAXPROCS + + [ Leonidas Spyropoulos ] + * Skip failing tests on single core CPUs + + [ Daniel Milde ] + * added possibility to ignore hidden dirs and ignore dirs by regular pattern + * main package moved to cmd/gdu + * show file count [BC break] + + [ huangnauh ] + * fix: update tview to fix crash + + [ Daniel Milde ] + * replace std log module with sirupsen/logrus + * show info about selected item + + [ zhangsean ] + * Feature: Empty selected file or directory + * Improve some coding. + + [ Daniel Milde ] + * export analysis to file as JSON + * read analysis from file + + [ jtagcat ] + * tui help: 'Go to' instead of 'Select' for open. + * helpText: refer to up/down with k/j, past: k, j + + [ Daniel Milde ] + * help info structured + * fix compatibility with ncdu export format + * fixed not showing colors for export + * added thousand separator to item count number + * detect correctly NFS mounts + * search items by name + * feat: print current directory path and quit on `Q` key + * spawn shell in current directory on pressing `b` + * adjust the height of the help box to the size of the screen + * feat: show last mtime by pressing `m` and sort by mtime by pressing `M` + * import/export mtime + + [ Daniel Milde ] + * fix: check if currentDir is set + * fix: check if currentDir is set when selecting item + * fix: set ui.currentDir at last + + -- Daniel Milde Sat, 28 Aug 2021 00:48:18 +0200 + +gdu (4.6.3-1) unstable; urgency=medium + + * usage test is not valid on all architectures + * g/G key bindings added to help + + -- Daniel Milde Thu, 18 Feb 2021 11:28:56 +0100 + +gdu (4.6.2-1) unstable; urgency=medium + + * keep background color of the terminal + * delete files in separate thread + * fixed data race in flag propagation + + -- Daniel Milde Tue, 16 Feb 2021 21:09:06 +0100 + +gdu (4.6.1-1) unstable; urgency=medium + + * added flag -x for not crossing filesystem boundaries + * show flags (error, empty, symlink, e.g.) + * detect hard links + * show modal on deletion error + * more readable colors + + -- Daniel Milde Mon, 15 Feb 2021 17:29:56 +0100 + +gdu (4.4.1-2) unstable; urgency=medium + + * fixed ldflags for build to be reproducible + + -- Daniel Milde Fri, 12 Feb 2021 20:28:11 +0100 + +gdu (4.4.1-1) unstable; urgency=medium + + * fixed tests for chrooted environments + + -- Daniel Milde Fri, 05 Feb 2021 20:19:52 +0100 + +gdu (4.3.3-1) unstable; urgency=medium + + * Initial release (Closes: 980350) + + -- Daniel Milde Wed, 27 Jan 2021 10:23:15 +0200 diff --git a/control b/control new file mode 100644 index 0000000..d0a3576 --- /dev/null +++ b/control @@ -0,0 +1,36 @@ +Source: gdu +Maintainer: Debian Go Packaging Team +Uploaders: Daniel Milde , +Section: admin +Testsuite: autopkgtest-pkg-go +Priority: optional +Build-Depends: debhelper-compat (= 13), + dh-golang, + golang-github-fatih-color-dev, + golang-github-gdamore-tcell.v2-dev, + golang-github-maruel-natural-dev, + golang-github-mattn-go-isatty-dev, + golang-github-pbnjay-memory-dev, + golang-github-rivo-tview-dev (>= 0.0~git20210122), + golang-github-sirupsen-logrus-dev, + golang-github-spf13-cobra-dev, + golang-github-stretchr-testify-dev, + golang-go, + golang-gopkg-yaml.v3-dev, +Standards-Version: 4.6.0 +Vcs-Browser: https://salsa.debian.org/go-team/packages/gdu +Vcs-Git: https://salsa.debian.org/go-team/packages/gdu.git +Homepage: https://github.com/dundee/gdu +Rules-Requires-Root: no +XS-Go-Import-Path: github.com/dundee/gdu/v5 + +Package: gdu +Architecture: any +Depends: ${misc:Depends}, + ${shlibs:Depends}, +Built-Using: ${misc:Built-Using}, +Description: Pretty fast disk usage analyzer + Disk usage analyzer with console interface written in Go. + 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. diff --git a/copyright b/copyright new file mode 100644 index 0000000..f85cd02 --- /dev/null +++ b/copyright @@ -0,0 +1,33 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: github.com/dundee/gdu +Upstream-Contact: Daniel Milde +Source: https://github.com/dundee/gdu + +Files: * +Copyright: 2018-2021 Daniel Milde +License: Expat + +Files: debian/* +Copyright: 2021 Daniel Milde +License: Expat +Comment: Debian packaging is licensed under the same terms as upstream + +License: Expat + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + . + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/gbp.conf b/gbp.conf new file mode 100644 index 0000000..3d450c2 --- /dev/null +++ b/gbp.conf @@ -0,0 +1,3 @@ +[DEFAULT] +debian-branch = debian/sid +dist = DEP14 diff --git a/gdu.1 b/gdu.1 new file mode 100644 index 0000000..2452109 --- /dev/null +++ b/gdu.1 @@ -0,0 +1,88 @@ +.\" Automatically generated by Pandoc 2.14.1 +.\" +.TH "gdu" "1" "2021-11-27" "" "" +.hy +.SH NAME +.PP +gdu - Pretty fast disk usage analyzer written in Go +.SH SYNOPSIS +.PP +\f[B]gdu [flags] [directory_to_scan]\f[R] +.SH DESCRIPTION +.PP +Pretty fast disk usage analyzer written in Go. +.PP +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. +.SH OPTIONS +.PP +\f[B]-h\f[R], \f[B]--help\f[R][=false] help for gdu +.PP +\f[B]-i\f[R], \f[B]--ignore-dirs\f[R]=[/proc,/dev,/sys,/run] Absolute +paths to ignore (separated by comma) +.PP +\f[B]-I\f[R], \f[B]--ignore-dirs-pattern\f[R] Absolute path patterns to +ignore (separated by comma) +.PP +\f[B]-X\f[R], \f[B]--ignore-from\f[R] Read absolute path patterns to +ignore from file +.PP +\f[B]-l\f[R], \f[B]--log-file\f[R]=\[dq]/dev/null\[dq] Path to a logfile +.PP +\f[B]-m\f[R], \f[B]--max-cores\f[R] Set max cores that GDU will use. +.PP +\f[B]-c\f[R], \f[B]--no-color\f[R][=false] Do not use colorized output +.PP +\f[B]-x\f[R], \f[B]--no-cross\f[R][=false] Do not cross filesystem +boundaries +.PP +\f[B]-H\f[R], \f[B]--no-hidden\f[R][=false] Ignore hidden directories +(beginning with dot) +.PP +\f[B]-n\f[R], \f[B]--non-interactive\f[R][=false] Do not run in +interactive mode +.PP +\f[B]-p\f[R], \f[B]--no-progress\f[R][=false] Do not show progress in +non-interactive mode +.PP +\f[B]-s\f[R], \f[B]--summarize\f[R][=false] Show only a total in +non-interactive mode +.PP +\f[B]-d\f[R], \f[B]--show-disks\f[R][=false] Show all mounted disks +.PP +\f[B]-a\f[R], \f[B]--show-apparent-size\f[R][=false] Show apparent size +.PP +\f[B]-f\f[R], \f[B]-\[em]input-file\f[R] Import analysis from JSON file. +If the file is \[dq]-\[dq], read from standard input. +.PP +\f[B]-o\f[R], \f[B]-\[em]output-file\f[R] Export all info into file as +JSON. +If the file is \[dq]-\[dq], write to standard output. +.PP +\f[B]-g\f[R], \f[B]--enable-gc\f[R][=false] Enable garbage collection +during analysis +.PP +\f[B]--enable-profiling\f[R][=false] Enable collection of profiling data +and provide it on http://localhost:6060/debug/pprof/ +.PP +\f[B]-v\f[R], \f[B]--version\f[R][=false] Print version +.SH FILE FLAGS +.PP +Files and directories may be prefixed by a one-character flag with +following meaning: +.TP +\f[B]!\f[R] +An error occurred while reading this directory. +.TP +\f[B].\f[R] +An error occurred while reading a subdirectory, size may be not correct. +.TP +\f[B]\[at]\f[R] +File is symlink or socket. +.TP +\f[B]H\f[R] +Same file was already counted (hard link). +.TP +\f[B]e\f[R] +Directory is empty. diff --git a/gitlab-ci.yml b/gitlab-ci.yml new file mode 100644 index 0000000..594e14e --- /dev/null +++ b/gitlab-ci.yml @@ -0,0 +1,6 @@ +# auto-generated, DO NOT MODIFY. +# The authoritative copy of this file lives at: +# https://salsa.debian.org/go-team/infra/pkg-go-tools/blob/master/config/gitlabciyml.go +--- +include: + - https://salsa.debian.org/go-team/infra/pkg-go-tools/-/raw/master/pipeline/test-archive.yml diff --git a/manpages b/manpages new file mode 100644 index 0000000..8c25747 --- /dev/null +++ b/manpages @@ -0,0 +1 @@ +debian/gdu.1 diff --git a/rules b/rules new file mode 100755 index 0000000..4676f27 --- /dev/null +++ b/rules @@ -0,0 +1,20 @@ +#!/usr/bin/make -f + +GOPKG = github.com/dundee/gdu/v5 +VERSION ?= $(shell dpkg-parsechangelog -SVersion) + +DH_GOLANG_BUILDPKG := github.com/dundee/gdu/v5/cmd/gdu +CGO_ENABLED := 0 + +GO_LDFLAGS += -X '$(GOPKG)/build.Version=$(VERSION)' +GO_LDFLAGS += -X '$(GOPKG)/build.User=debian' +GO_LDFLAGS += -X '$(GOPKG)/build.Time=$(shell TZ=Etc/UTC date +'%F_%T' -d @$(SOURCE_DATE_EPOCH))' + +%: + dh $@ --builddirectory=_build --buildsystem=golang --with=golang + +override_dh_auto_install: + dh_auto_install -- --no-source + +override_dh_auto_build: + dh_auto_build -O--buildsystem=golang -- -ldflags "$(GO_LDFLAGS)" diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/tests/control b/tests/control new file mode 100644 index 0000000..523e9ae --- /dev/null +++ b/tests/control @@ -0,0 +1,2 @@ +Tests: scan version +Depends: @, diff --git a/tests/scan b/tests/scan new file mode 100755 index 0000000..66680cf --- /dev/null +++ b/tests/scan @@ -0,0 +1 @@ +gdu -npc \ No newline at end of file diff --git a/tests/version b/tests/version new file mode 100755 index 0000000..e909f63 --- /dev/null +++ b/tests/version @@ -0,0 +1 @@ +gdu -v \ No newline at end of file diff --git a/upstream/metadata b/upstream/metadata new file mode 100644 index 0000000..f6ef1e1 --- /dev/null +++ b/upstream/metadata @@ -0,0 +1,5 @@ +--- +Bug-Database: https://github.com/dundee/gdu/issues +Bug-Submit: https://github.com/dundee/gdu/issues/new +Repository: https://github.com/dundee/gdu.git +Repository-Browse: https://github.com/dundee/gdu diff --git a/watch b/watch new file mode 100644 index 0000000..47896ab --- /dev/null +++ b/watch @@ -0,0 +1,4 @@ +version=4 +opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%gdu-$1.tar.gz%,\ + uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/\$1~\$2\$3/" \ + https://github.com/dundee/gdu/tags .*/v?(\d\S*)\.tar\.gz debian