From 2febcfca315318d2ce9f8d9afdc7b0b898903f8c Mon Sep 17 00:00:00 2001 From: Vlad Glagolev Date: Tue, 5 Oct 2021 00:26:00 +0000 Subject: btop++-bin: new spell, resource monitor --- ChangeLog | 3 +++ bin-utils/btop++-bin/BUILD | 1 + bin-utils/btop++-bin/CONFIGURE | 1 + bin-utils/btop++-bin/DETAILS | 22 ++++++++++++++++++++++ bin-utils/btop++-bin/HISTORY | 3 +++ bin-utils/btop++-bin/INSTALL | 9 +++++++++ bin-utils/btop++-bin/PRE_BUILD | 4 ++++ 7 files changed, 43 insertions(+) create mode 100755 bin-utils/btop++-bin/BUILD create mode 100755 bin-utils/btop++-bin/CONFIGURE create mode 100755 bin-utils/btop++-bin/DETAILS create mode 100644 bin-utils/btop++-bin/HISTORY create mode 100755 bin-utils/btop++-bin/INSTALL create mode 100755 bin-utils/btop++-bin/PRE_BUILD diff --git a/ChangeLog b/ChangeLog index 7f327ea..f5ffd67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2021-10-04 Vlad Glagolev + * bin-utils/btop++-bin: new spell, resource monitor + 2021-08-07 Vlad Glagolev * bin-graphics/drawio-desktop-bin: new spell, diagram drawing application built on web technology diff --git a/bin-utils/btop++-bin/BUILD b/bin-utils/btop++-bin/BUILD new file mode 100755 index 0000000..27ba77d --- /dev/null +++ b/bin-utils/btop++-bin/BUILD @@ -0,0 +1 @@ +true diff --git a/bin-utils/btop++-bin/CONFIGURE b/bin-utils/btop++-bin/CONFIGURE new file mode 100755 index 0000000..bb9b963 --- /dev/null +++ b/bin-utils/btop++-bin/CONFIGURE @@ -0,0 +1 @@ +config_query BTOP_SUID_ROOT "Install ${SPELL} setuid root?" n diff --git a/bin-utils/btop++-bin/DETAILS b/bin-utils/btop++-bin/DETAILS new file mode 100755 index 0000000..c03363a --- /dev/null +++ b/bin-utils/btop++-bin/DETAILS @@ -0,0 +1,22 @@ + SPELL=btop++-bin + SPELLX=${SPELL/++-bin/} + VERSION=1.0.13 +if [[ "${SMGL_COMPAT_ARCHS[1]}" == "x86_64" || "${SMGL_COMPAT_ARCHS[1]}" == "em64t" ]]; then + ARCH=x86_64 + SOURCE_HASH=sha512:d69323d9af540d40da3636af9951ab2c039a7da2248170c8039c541031bca9a2a8340e63105add0e28301a827026769ea6d949a87453d4289272b6826e36f249 +else + ARCH=i686 + SOURCE_HASH=sha512:fe063e2acb38d01b2361ddb25dcfd14b52e9cf2c384095e4fd16d5b1b2f2326eb60092d1cf4f076921f193d4c94367f7673d0c6169068915d2b1d64d3c2665ea +fi + SOURCE=${SPELLX}-${VERSION}-linux-${ARCH}.tbz + SOURCE_URL[0]=https://github.com/aristocratos/${SPELLX}/releases/download/v${VERSION}/${SOURCE} +SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELLX}-${VERSION}" + GATHER_DOCS=off + WEB_SITE=https://github.com/aristocratos/btop + LICENSE[0]=APACHE + ENTERED=20211004 + KEYWORDS="" + SHORT="resource monitor" +cat << EOF +This is a binary, statically-linked version of btop++." +EOF diff --git a/bin-utils/btop++-bin/HISTORY b/bin-utils/btop++-bin/HISTORY new file mode 100644 index 0000000..8e0a896 --- /dev/null +++ b/bin-utils/btop++-bin/HISTORY @@ -0,0 +1,3 @@ +2021-10-04 Vlad Glagolev + * DETAILS, {PRE_,}BUILD, INSTALL, CONFIGURE: created spell, version + 1.0.13 diff --git a/bin-utils/btop++-bin/INSTALL b/bin-utils/btop++-bin/INSTALL new file mode 100755 index 0000000..b0c3d43 --- /dev/null +++ b/bin-utils/btop++-bin/INSTALL @@ -0,0 +1,9 @@ +local target="install" && + +if [[ ${BTOP_SUID_ROOT} == y ]]; then + target="${target} setuid" +fi && + +make_single && +make DESTDIR="${INSTALL_ROOT}" PREFIX=/usr ${target} && +make_normal diff --git a/bin-utils/btop++-bin/PRE_BUILD b/bin-utils/btop++-bin/PRE_BUILD new file mode 100755 index 0000000..202d4de --- /dev/null +++ b/bin-utils/btop++-bin/PRE_BUILD @@ -0,0 +1,4 @@ +mk_source_dir "${SOURCE_DIRECTORY}" && +cd "${SOURCE_DIRECTORY}" && + +unpack_file -- cgit v1.2.3