From 8b0a5bacce0bde7ebac6e91bd8a56cb4edebf87e Mon Sep 17 00:00:00 2001 From: Daniel Milde Date: Tue, 23 Nov 2021 15:09:23 +0000 Subject: [PATCH] Import gdu_5.10.1-1.debian.tar.xz [dgit import tarball gdu 5.10.1-1 gdu_5.10.1-1.debian.tar.xz] --- changelog | 173 ++++++++++++++++++++++++++++++++++++++++++++++ control | 33 +++++++++ copyright | 33 +++++++++ gbp.conf | 3 + manpages | 1 + rules | 20 ++++++ source/format | 1 + tests/control | 2 + tests/scan | 1 + tests/version | 1 + upstream/metadata | 5 ++ watch | 4 ++ 12 files changed, 277 insertions(+) create mode 100644 changelog create mode 100644 control create mode 100644 copyright create mode 100644 gbp.conf create mode 100644 manpages create mode 100755 rules create mode 100644 source/format create mode 100644 tests/control create mode 100755 tests/scan create mode 100755 tests/version create mode 100644 upstream/metadata create mode 100644 watch diff --git a/changelog b/changelog new file mode 100644 index 0000000..88372fd --- /dev/null +++ b/changelog @@ -0,0 +1,173 @@ +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..2490dfb --- /dev/null +++ b/control @@ -0,0 +1,33 @@ +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-mattn-go-isatty-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, +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/manpages b/manpages new file mode 100644 index 0000000..32cf5e9 --- /dev/null +++ b/manpages @@ -0,0 +1 @@ +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 -- 2.30.2