This commit is contained in:
Otto Kekäläinen 2024-04-30 20:00:59 +02:00 committed by GitHub
commit 327ee80d79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 216 additions and 3 deletions

View file

@ -1,3 +1,5 @@
#!/usr/bin/make -f
#
#* Btop++ makefile v1.6
BANNER = \n \033[38;5;196m██████\033[38;5;240m╗ \033[38;5;196m████████\033[38;5;240m╗ \033[38;5;196m██████\033[38;5;240m╗ \033[38;5;196m██████\033[38;5;240m╗\n \033[38;5;160m██\033[38;5;239m╔══\033[38;5;160m██\033[38;5;239m╗╚══\033[38;5;160m██\033[38;5;239m╔══╝\033[38;5;160m██\033[38;5;239m╔═══\033[38;5;160m██\033[38;5;239m╗\033[38;5;160m██\033[38;5;239m╔══\033[38;5;160m██\033[38;5;239m╗ \033[38;5;160m██\033[38;5;239m╗ \033[38;5;160m██\033[38;5;239m╗\n \033[38;5;124m██████\033[38;5;238m╔╝ \033[38;5;124m██\033[38;5;238m║ \033[38;5;124m██\033[38;5;238m║ \033[38;5;124m██\033[38;5;238m║\033[38;5;124m██████\033[38;5;238m╔╝ \033[38;5;124m██████\033[38;5;238m╗\033[38;5;124m██████\033[38;5;238m╗\n \033[38;5;88m██\033[38;5;237m╔══\033[38;5;88m██\033[38;5;237m╗ \033[38;5;88m██\033[38;5;237m║ \033[38;5;88m██\033[38;5;237m║ \033[38;5;88m██\033[38;5;237m║\033[38;5;88m██\033[38;5;237m╔═══╝ ╚═\033[38;5;88m██\033[38;5;237m╔═╝╚═\033[38;5;88m██\033[38;5;237m╔═╝\n \033[38;5;52m██████\033[38;5;236m╔╝ \033[38;5;52m██\033[38;5;236m║ ╚\033[38;5;52m██████\033[38;5;236m╔╝\033[38;5;52m██\033[38;5;236m║ ╚═╝ ╚═╝\n \033[38;5;235m╚═════╝ ╚═╝ ╚═════╝ ╚═╝ \033[1;3;38;5;240mMakefile v1.6\033[0m
@ -305,10 +307,11 @@ install:
@mkdir -p $(DESTDIR)$(PREFIX)/bin
@cp -p $(TARGETDIR)/btop $(DESTDIR)$(PREFIX)/bin/btop
@chmod 755 $(DESTDIR)$(PREFIX)/bin/btop
@printf "\033[1;92mInstalling doc to: \033[1;97m$(DESTDIR)$(PREFIX)/share/btop\n"
@mkdir -p $(DESTDIR)$(PREFIX)/share/btop
@cp -p README.md $(DESTDIR)$(PREFIX)/share/btop
@printf "\033[1;92mInstalling doc to: \033[1;97m$(DESTDIR)$(PREFIX)/share/doc/btop\n"
@mkdir -p $(DESTDIR)$(PREFIX)/share/doc/btop
@cp -p README.md $(DESTDIR)$(PREFIX)/share/doc/btop
@printf "\033[1;92mInstalling themes to: \033[1;97m$(DESTDIR)$(PREFIX)/share/btop/themes\033[0m\n"
@mkdir -p $(DESTDIR)$(PREFIX)/share/btop
@cp -pr themes $(DESTDIR)$(PREFIX)/share/btop
@printf "\033[1;92mInstalling desktop entry to: \033[1;97m$(DESTDIR)$(PREFIX)/share/applications/btop.desktop\n"
@mkdir -p $(DESTDIR)$(PREFIX)/share/applications/

7
debian/btop.install vendored Normal file
View file

@ -0,0 +1,7 @@
usr/bin/btop
usr/share/applications/btop.desktop
usr/share/btop/themes/*
usr/share/doc/btop/README.md
usr/share/icons/hicolor/48x48/apps/btop.png
usr/share/icons/hicolor/scalable/apps/btop.svg
usr/share/man/man1/btop.1

5
debian/changelog vendored Normal file
View file

@ -0,0 +1,5 @@
btop (1.3.0) UNRELEASED; urgency=low
* Initial release for native upstream builds.
-- Otto Kekäläinen <otto@debian.org> Thu, 04 Jan 2024 14:26:24 +0000

21
debian/control vendored Normal file
View file

@ -0,0 +1,21 @@
Source: btop
Section: utils
Priority: optional
Maintainer: Otto Kekäläinen <otto@debian.org>
Build-Depends: debhelper-compat (= 13),
libfmt-dev,
lowdown
Standards-Version: 4.6.2
Homepage: https://github.com/aristocratos/btop
Rules-Requires-Root: no
Vcs-Git: https://github.com/aristocratos/btop.git
Vcs-Browser: https://github.com/aristocratos/btop
Package: btop
Architecture: any
Multi-Arch: foreign
Depends: ${misc:Depends},
${shlibs:Depends}
Description: Modern and colorful command line resource monitor that shows usage and stats
Resource monitor that shows usage and stats for processor, memory, disks,
network and processes. This C++ version is continuation of bashtop and bpytop.

101
debian/copyright vendored Normal file
View file

@ -0,0 +1,101 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: btop
Upstream-Contact: Jakob P. Liljenberg <jakob@qvantnet.com>
Source: https://github.com/aristocratos/btop
# This is a autogenerated template for debian/copyright.
#
# Edit this according to the "Machine-readable debian/copyright file" as
# http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ .
#
# Generate updated license templates with the "debmake -cc" to STDOUT
# and merge them into debian/copyright as needed.
Files: .editorconfig
.github/*
CHANGELOG.md
CMakeLists.txt
CODE_OF_CONDUCT.md
CONTRIBUTING.md
debian/*
Img/*
Makefile
manpage.md
README.md
btop.desktop
cmake/*
snap/snapcraft.yaml
themes/*
src/*.cpp
src/*.hpp
Copyright: 2021-2024 Jakob P. Liljenberg <jakob@qvantnet.com>
2024 Otto Kekäläinen <otto@debian.org>
License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian systems, the complete text of the Apache License Version 2.0
can be found in `/usr/share/common-licenses/Apache-2.0'.
Files: src/openbsd/*
Copyright: 2019-2021 Brian Callahan <bcallah@openbsd.org>
License: ISC
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Files: include/fmt/*
Copyright: 2012-2018 Victor Zverovich <victor.zverovich@gmail.com>
License: Expat with embedded exception
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.
.
--- Optional exception to the license ---
.
As an exception, if, as a result of your compiling your source code, portions
of this Software are embedded into a machine-executable object form of such
source code, you may redistribute such embedded portions in such object form
without including the above copyright and permission notices.
Files: include/widechar_width.hpp
Copyright: 2018-2023 Cory Doras <corydoras@ridiculousfish.com>
License: CC0-1.0
widecharwidth and its output files are released into the public domain. They
may be used for any purpose without requiring attribution, or under the CC0
license if public domain is not available.
.
On Debian systems, the complete text of the Apache License Version 2.0
can be found in `/usr/share/common-licenses/CC0-1.0'.

10
debian/gbp.conf vendored Normal file
View file

@ -0,0 +1,10 @@
[DEFAULT]
# Ignore requirement to use branch name 'debian/latest' to make it easier for
# contributors to work with feature and bugfix branches
ignore-branch = True
# Always use pristine tar
pristine-tar = True
# Always sign tags
sign-tags = True

3
debian/install vendored Normal file
View file

@ -0,0 +1,3 @@
# The build puts all files directly into debiam/btop/usr.. so there is nothing
# for dh_install to do, thus just keep this file empty.
# https://manpages.debian.org/unstable/debhelper/dh_install.1.en.html

36
debian/rules vendored Executable file
View file

@ -0,0 +1,36 @@
#!/usr/bin/make -f
# See FEATURE AREAS/ENVIRONMENT in dpkg-buildflags(1)
# Apply all hardening options
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Package maintainers to append CFLAGS
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# Package maintainers to append LDFLAGS
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1
# According to Debian Policy version 4.2.0 builds should be as verbose as
# possible unless 'terse' is specifically passed.
ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
export DH_VERBOSE = 1
# See btop Makefile
export VERBOSE = true
export QUIET = false
endif
# Override default /usr/local with proper system path
export PREFIX := /usr
# Use system libfmt-dev provided library
# @TODO: Does not seem to take effect as local include/fmt is found first
export CXXFLAGS=-I/usr/include/fmt
# From Debhelper 15 onwards this will be automatic, but until then
# dh_auto_install defaults in a single package build in installing everything to
# debian/btop which is undesired in this case, as we want to control the files
# to be installed via btop.install
override_dh_auto_install:
dh_auto_install --destdir=debian/tmp/
# main packaging script based on post dh7 syntax
%:
dh $@

4
debian/salsa-ci.yml vendored Normal file
View file

@ -0,0 +1,4 @@
---
include:
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml

1
debian/source/format vendored Normal file
View file

@ -0,0 +1 @@
3.0 (native)

9
debian/tests/control vendored Normal file
View file

@ -0,0 +1,9 @@
#
# DEP-8: autopkgtest - automatic as-installed package testing
# Please check * https://dep-team.pages.debian.net/deps/dep8/
# * /usr/share/doc/autopkgtest
#
# !!! Please make sure to edit this to a valid test, otherwise build will fails
#
#Tests: testcode.sh
#Restrictions: allow-stderr, breaks-testbed, needs-internet, needs-root

13
debian/upstream/metadata vendored Normal file
View file

@ -0,0 +1,13 @@
#
# DEP-12: Per-package machine-readable metadata about Upstream
# Please check * https://dep-team.pages.debian.net/deps/dep12/
# * https://wiki.debian.org/UpstreamMetadata
#
Bug-Database: https://github.com/aristocratos/btop/issues
Bug-Submit: https://github.com/aristocratos/btop/issues/new
Donation: https://github.com/sponsors/aristocratos
Repository: https://github.com/aristocratos/btop
Repository-Browse: https://github.com/aristocratos/btop
Reference:
Author: Jakob P. Liljenberg
Year: 2022