diff --git a/debian/btop.install b/debian/btop.install new file mode 100644 index 0000000..664ede4 --- /dev/null +++ b/debian/btop.install @@ -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 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..7cb0b43 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +btop (1.2.13) UNRELEASED; urgency=low + + * Initial release for native upstream builds. + + -- Otto Kekäläinen Thu, 04 Jan 2024 14:26:24 +0000 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..f208a3a --- /dev/null +++ b/debian/control @@ -0,0 +1,21 @@ +Source: btop +Section: utils +Priority: optional +Maintainer: Otto Kekäläinen +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. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..b3b8667 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,101 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: btop +Upstream-Contact: Jakob P. Liljenberg +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 + 2024 Otto Kekäläinen +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 +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 +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 +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'. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..e8aa581 --- /dev/null +++ b/debian/gbp.conf @@ -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 diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..bd1c067 --- /dev/null +++ b/debian/install @@ -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 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..d660ddb --- /dev/null +++ b/debian/rules @@ -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 $@ diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml new file mode 100644 index 0000000..a89c19c --- /dev/null +++ b/debian/salsa-ci.yml @@ -0,0 +1,4 @@ +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..f61fd44 --- /dev/null +++ b/debian/tests/control @@ -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 diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..25a2f5a --- /dev/null +++ b/debian/upstream/metadata @@ -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