From 79008b91bf2297fb51aaf23623a37d46a97b9a31 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 29 Aug 2022 17:31:24 +0200 Subject: [PATCH] Initial debian packaging --- debian/.gitignore | 5 +++++ debian/changelog | 16 ++++++++++++++++ debian/compat | 1 + debian/control | 24 ++++++++++++++++++++++++ debian/copyright | 26 ++++++++++++++++++++++++++ debian/docs | 2 ++ debian/gbp.conf | 11 +++++++++++ debian/hatop.manpages | 1 + debian/install | 1 + debian/rules | 5 +++++ debian/source/format | 1 + debian/source/include-binaries | 1 + debian/upstream/signing-key.pgp | 17 +++++++++++++++++ debian/watch | 4 ++++ 14 files changed, 115 insertions(+) create mode 100644 debian/.gitignore create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/gbp.conf create mode 100644 debian/hatop.manpages create mode 100644 debian/install create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/include-binaries create mode 100644 debian/upstream/signing-key.pgp create mode 100644 debian/watch diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000..7cab716 --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,5 @@ +hatop/* +hatop.substvars +.debhelper/* +debhelper-build-stamp +files diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..8f64ec6 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,16 @@ +hatop (0.8.2-1) UNRELEASED; urgency=medium + + [ James Hunt ] + * Support All Backends for F1/F2 + * HATop test lab + * Fix CLI mode history in Python 2.x + + [ Pavel Skuratovich ] + * Make it work with python3 even better (#6) + + [ Henrik Hautakoski ] + * Adding scripts for building deb packages. + * New Upstream Release + + -- Henrik Hautakoski Mon, 29 Aug 2022 18:49:31 +0200 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +11 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..9234985 --- /dev/null +++ b/debian/control @@ -0,0 +1,24 @@ +Source: hatop +Section: admin +Priority: optional +Standards-Version: 4.5.0 +Homepage: https://github.com/jhunt/hatop +Maintainer: James Hunt +Build-Depends: debhelper (>= 11) +Vcs-Git: https://github.com/eosswedenorg/hatop.git +Vcs-Browser: https://github.com/eosswedenorg/hatop + +Package: hatop +Architecture: all +Depends: ${misc:Depends}, python (>= 2.4) +Description: interactive ncurses client for haproxy + HATop is an interactive ncurses client and real-time monitoring, statistics + displaying tool for the HAProxy TCP/HTTP load balancer. + . + HATop's appearance is similar to top(1). It supports various modes for + detailed statistics of all configured proxies and services in near realtime. + In addition, it features an interactive CLI for the haproxy unix socket. + This allows administrators to control the given haproxy instance (change + server weight, put servers into maintenance mode, ...) directly out of hatop + (using keybinds or the CLI) and monitor the results immediately. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..f547fab --- /dev/null +++ b/debian/copyright @@ -0,0 +1,26 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Hatop +Source: https://github.com/jhunt/hatop +Upstream-Contact: James Hunt + +Files: * +Copyright: 2011, John Feuerstein + 2022, James Hunt +License: GPL-3 + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Library General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the full text of the GNU General Public + License version 3 can be found in the file + `/usr/share/common-licenses/GPL-3'. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..d8cafa2 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +KEYBINDS +README.rst diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..a81c45e --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,11 @@ +[DEFAULT] +debian-branch = debian +upstream-branch = master +upstream-tag = v%(version)s + +[buildpackage] +compression = xz + +[dch] +# ignore merge commit messages +git-log = --no-merges diff --git a/debian/hatop.manpages b/debian/hatop.manpages new file mode 100644 index 0000000..8f47379 --- /dev/null +++ b/debian/hatop.manpages @@ -0,0 +1 @@ +man/hatop.1 diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..f54574a --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +bin/hatop usr/bin diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..9837f83 --- /dev/null +++ b/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + +%: + dh $@ --buildsystem=none + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/include-binaries b/debian/source/include-binaries new file mode 100644 index 0000000..b3b0319 --- /dev/null +++ b/debian/source/include-binaries @@ -0,0 +1 @@ +bin/hatop diff --git a/debian/upstream/signing-key.pgp b/debian/upstream/signing-key.pgp new file mode 100644 index 0000000..bd79014 --- /dev/null +++ b/debian/upstream/signing-key.pgp @@ -0,0 +1,17 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQENBFmUaEEBCACzXTDt6ZnyaVtueZASBzgnAmK13q9Urgch+sKYeIhdymjuMQta +x15OklctmrZtqre5kwPUosG3/B2/ikuPYElcHgGPL4uL5Em6S5C/oozfkYzhwRrT +SQzvYjsE4I34To4UdE9KA97wrQjGoz2Bx72WDLyWwctD3DKQtYeHXswXXtXwKfjQ +7Fy4+Bf5IPh76dA8NJ6UtjjLIDlKqdxLW4atHe6xWFaJ+XdLUtsAroZcXBeWDCPa +buXCDscJcLJRKZVc62gOZXXtPfoHqvUPp3nuLA4YjH9bphbrMWMf810Wxz9JTd3v +yWgGqNY0zbBqeZoGv+TuExlRHT8ASGFS9SVDABEBAAG0NUdpdEh1YiAod2ViLWZs +b3cgY29tbWl0IHNpZ25pbmcpIDxub3JlcGx5QGdpdGh1Yi5jb20+iQEiBBMBCAAW +BQJZlGhBCRBK7hj4Ov3rIwIbAwIZAQAAmQEH/iATWFmi2oxlBh3wAsySNCNV4IPf +DDMeh6j80WT7cgoX7V7xqJOxrfrqPEthQ3hgHIm7b5MPQlUr2q+UPL22t/I+ESF6 +9b0QWLFSMJbMSk+BXkvSjH9q8jAO0986/pShPV5DU2sMxnx4LfLfHNhTzjXKokws ++8ptJ8uhMNIDXfXuzkZHIxoXk3rNcjDN5c5X+sK8UBRH092BIJWCOfaQt7v7wig5 +4Ra28pM9GbHKXVNxmdLpCFyzvyMuCmINYYADsC848QQFFwnd4EQnupo6QvhEVx1O +j7wDwvuH5dCrLuLwtwXaQh0onG4583p0LGms2Mf5F+Ick6o/4peOlBoZz48= +=Bvzs +-----END PGP PUBLIC KEY BLOCK----- diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..cf161f7 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts=mode=git,pgpmode=gittag \ + https://github.com/jhunt/hatop refs/tags/v([\d\.]+) +