summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Milde <daniel.milde@firma.seznam.cz>2021-01-19 17:38:58 +0100
committerDaniel Milde <daniel.milde@firma.seznam.cz>2021-01-19 17:38:58 +0100
commite983b76f0f0078a0c4c9048e33a29e9ab235a251 (patch)
treeee97e7f55f3504f4f9709dc340777119f0a723b2
parent18d574363fcc1da374f71b82ab366368b60cb746 (diff)
move debian packaging to separate projectv4.1.1
-rw-r--r--.gitignore10
-rw-r--r--Makefile11
-rw-r--r--debian/changelog41
-rw-r--r--debian/control23
-rw-r--r--debian/copyright14
-rw-r--r--debian/manpages1
-rwxr-xr-xdebian/rules9
-rw-r--r--debian/source/format1
-rw-r--r--debian/watch3
9 files changed, 1 insertions, 112 deletions
diff --git a/.gitignore b/.gitignore
index c2d47d7..ffc2f52 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,12 +1,4 @@
.vscode
coverage.txt
dist
-test_dir
-debian/gdu
-debian/files
-debian/.debhelper
-debian/debhelper-build-stamp
-/on
-obj-x86_64-linux-gnu
-*.deb
-*.substvars
+test_dir \ No newline at end of file
diff --git a/Makefile b/Makefile
index 51f5463..aa0900a 100644
--- a/Makefile
+++ b/Makefile
@@ -30,16 +30,6 @@ build:
cd dist; for file in gdu_linux_* gdu_darwin_* gdu_netbsd_* gdu_openbsd_* gdu_freebsd_*; do tar czf $$file.tgz $$file; done
cd dist; for file in gdu_windows_*; do zip $$file.zip $$file; done
-build-deb: clean
- docker build -t debian_go .
- docker run -v $(CURDIR)/..:/xxx -w /xxx/gdu debian_go bash -c "make build-deb-local"
-
-build-deb-local:
- $(eval TAG := $(shell echo $(VERSION) | sed -e "s/-.*//g"))
- $(eval DEB_VERSION := $(shell echo $(TAG) | sed -e "s/v//g"))
- git archive --format=tar.gz HEAD >../gdu_$(DEB_VERSION).orig.tar.gz
- debuild -us -uc -i
-
test:
go test -v $(PACKAGES)
@@ -56,7 +46,6 @@ clean:
-rm coverage.txt
-rm -r test_dir
-rm -r dist
- -sudo rm -r obj-x86_64-linux-gnu on *.deb
clean-uncompressed-dist:
find dist -type f -not -name '*.tgz' -not -name '*.zip' -delete
diff --git a/debian/changelog b/debian/changelog
deleted file mode 100644
index 58da543..0000000
--- a/debian/changelog
+++ /dev/null
@@ -1,41 +0,0 @@
-gdu (4.1.0-1) unstable; urgency=medium
-
- * improved debian packaging
- * added man page
-
- -- Daniel Milde <daniel@milde.cz> Mon, 18 Jan 2021 14:41:04 +0000
-
-gdu (4.0.0-1) unstable; urgency=medium
-
- * analyze current directory when no argument is passed
- * added option --show-disks
- * select previous directory when going up
-
- -- Daniel Milde <daniel@milde.cz> Mon, 18 Jan 2021 11:46:05 +0000
-
-gdu (3.0.0-0) UNRELEASED; urgency=medium
-
- * POSIX/GNU style flags: --log-file (or just -l) instead of -log-file
-
- -- Daniel Milde <daniel@milde.cz> Fri, 15 Jan 2021 18:23:42 +0200
-
-gdu (2.3.0-0) UNRELEASED; urgency=medium
-
- * added non-interactive mode
- * usage message improved
- * fixed finishing progress goroutine
-
- -- Daniel Milde <daniel@milde.cz> Tue, 12 Jan 2021 22:51:37 +0200
-
-gdu (2.2.0-0) UNRELEASED; urgency=medium
-
- * show ZFS devices
- * rescan current dir
-
- -- Daniel Milde <daniel@milde.cz> Wed, 6 Jan 2021 23:45:51 +0200
-
-gdu (2.1.0-0) UNRELEASED; urgency=medium
-
- * Initial
-
- -- Daniel Milde <daniel@milde.cz> Tue, 5 Jan 2021 20:27:05 +0200
diff --git a/debian/control b/debian/control
deleted file mode 100644
index ad09126..0000000
--- a/debian/control
+++ /dev/null
@@ -1,23 +0,0 @@
-Source: gdu
-Section: admin
-Priority: optional
-Maintainer: Daniel Milde <daniel@milde.cz>
-Homepage: https://github.com/dundee/gdu
-Vcs-Git: https://github.com/dundee/gdu.git
-Vcs-Browser: https://github.com/dundee/gdu
-Standards-Version: 4.5.0
-XS-Go-Import-Path: github.com/dundee/gdu
-Build-Depends: debhelper (>= 9),
- debhelper-compat (= 13),
- dh-golang,
- golang-go,
- git
-
-Package: gdu
-Architecture: any
-Built-Using: ${misc:Built-Using}
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: 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.
diff --git a/debian/copyright b/debian/copyright
deleted file mode 100644
index 8ee0dbf..0000000
--- a/debian/copyright
+++ /dev/null
@@ -1,14 +0,0 @@
-Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: gdu
-Upstream-Contact: Daniel Milde <daniel@milde.cz>
-Source: https://github.com/dundee/gdu
-
-Files: *
-Copyright: Copyright 2020-2021 Daniel Milde <daniel@milde.cz>
-License: MIT
- 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/debian/manpages b/debian/manpages
deleted file mode 100644
index 1365144..0000000
--- a/debian/manpages
+++ /dev/null
@@ -1 +0,0 @@
-gdu.1 \ No newline at end of file
diff --git a/debian/rules b/debian/rules
deleted file mode 100755
index 4905bb1..0000000
--- a/debian/rules
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/make -f
-
-export GO111MODULE := on
-export GOPROXY=https://proxy.golang.org
-
-%:
- dh $@ --buildsystem=golang --with=golang
-
-
diff --git a/debian/source/format b/debian/source/format
deleted file mode 100644
index 163aaf8..0000000
--- a/debian/source/format
+++ /dev/null
@@ -1 +0,0 @@
-3.0 (quilt)
diff --git a/debian/watch b/debian/watch
deleted file mode 100644
index 4a9c646..0000000
--- a/debian/watch
+++ /dev/null
@@ -1,3 +0,0 @@
-version=4
-opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/<project>-$1\.tar\.gz/ \
- https://github.com/dundee/gdu/tags .*/v?(\d\S+)\.tar\.gz