diff options
Diffstat (limited to 'system/netatop')
-rw-r--r-- | system/netatop/README | 4 | ||||
-rw-r--r-- | system/netatop/netatop.SlackBuild | 20 | ||||
-rw-r--r-- | system/netatop/netatop.info | 6 |
3 files changed, 20 insertions, 10 deletions
diff --git a/system/netatop/README b/system/netatop/README index fe11b112b6..27ee9ca9c8 100644 --- a/system/netatop/README +++ b/system/netatop/README @@ -1,5 +1,5 @@ -kernel module netatop gather statistics about the TCP and UDP packets that -have been transmitted/received per process and per thread. +kernel module netatop gathers statistics about the TCP and UDP packets +that have been transmitted/received per process and per thread. This application can be used to work together with atop to provide detailed information about processes in your system diff --git a/system/netatop/netatop.SlackBuild b/system/netatop/netatop.SlackBuild index b49b105733..ddd624bf17 100644 --- a/system/netatop/netatop.SlackBuild +++ b/system/netatop/netatop.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for netatop -# Copyright 2012-2019 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2012-2021 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=netatop -VERSION=${VERSION:-2.0} +VERSION=${VERSION:-3.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} KERNEL=${KERNEL:-$(uname -r)} PKGVER=${VERSION}_$(echo $KERNEL | tr - _) @@ -38,7 +41,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -100,4 +110,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/system/netatop/netatop.info b/system/netatop/netatop.info index 9de4b23775..b5e67146a2 100644 --- a/system/netatop/netatop.info +++ b/system/netatop/netatop.info @@ -1,8 +1,8 @@ PRGNAM="netatop" -VERSION="2.0" +VERSION="3.1" HOMEPAGE="https://www.atoptool.nl/" -DOWNLOAD="https://www.atoptool.nl/download/netatop-2.0.tar.gz" -MD5SUM="b7f25ea12c2c47a41500a3705c3924e7" +DOWNLOAD="https://www.atoptool.nl/download/netatop-3.1.tar.gz" +MD5SUM="213ca8de12e25e612fe3a521e9e973de" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |