diff options
| author | Fabricio Silva <hi@fabricio.dev> | 2024-08-10 08:57:17 +0900 |
|---|---|---|
| committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-08-10 08:18:56 +0700 |
| commit | a92eab9a21cef4974344154115626265a778e7e7 (patch) | |
| tree | c2af2731cce1f745b21ca375528b79a3c223ae32 /system | |
| parent | 481e364c897a5a7709b0e78611cda786490707df (diff) | |
system/gdu: Added (disk usage analyzer).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
| -rw-r--r-- | system/gdu/README | 5 | ||||
| -rw-r--r-- | system/gdu/gdu.SlackBuild | 92 | ||||
| -rw-r--r-- | system/gdu/gdu.info | 10 | ||||
| -rw-r--r-- | system/gdu/slack-desc | 19 |
4 files changed, 126 insertions, 0 deletions
diff --git a/system/gdu/README b/system/gdu/README new file mode 100644 index 0000000000..c8485b668d --- /dev/null +++ b/system/gdu/README @@ -0,0 +1,5 @@ +gdu (Fast disk usage analyzer with console interface written in Go) + +gdu is intended primarily for SSD disks where it can fully utilize +parallel processing. However HDDs work as well, but the performance +gain is not so huge. diff --git a/system/gdu/gdu.SlackBuild b/system/gdu/gdu.SlackBuild new file mode 100644 index 0000000000..84b5fef67b --- /dev/null +++ b/system/gdu/gdu.SlackBuild @@ -0,0 +1,92 @@ +#!/bin/bash + +# Slackware build script for restic + +# Copyright 2024 Fabricio Silva <hi@fabricio.dev> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# 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=gdu +VERSION=${VERSION:-5.29.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +# 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-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +case "$ARCH" in + x86_64) BINARCH=amd64 ;; + i?86) BINARCH=386 ;; + *) echo "$ARCH is not supported."; exit 1 ;; +esac + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +mkdir $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +tar xvf $CWD/${PRGNAM}_*.tgz +chown -R root:root . +find -L . \ +\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ +\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +install -D -m 0755 ${PRGNAM}_linux_${BINARCH} $PKG/usr/bin/$PRGNAM + +if [ -f $CWD/$PRGNAM.1.tgz ]; then + tar xvf $CWD/$PRGNAM.1.tgz + install -D -m 0644 $PRGNAM.1 $PKG/usr/man/man1/$PRGNAM.1 +fi + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/system/gdu/gdu.info b/system/gdu/gdu.info new file mode 100644 index 0000000000..8c1b97d2d5 --- /dev/null +++ b/system/gdu/gdu.info @@ -0,0 +1,10 @@ +PRGNAM="gdu" +VERSION="5.29.0" +HOMEPAGE="https://github.com/dundee/gdu" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://github.com/dundee/gdu/releases/download/v5.29.0/gdu_linux_amd64.tgz https://github.com/dundee/gdu/releases/download/v5.29.0/gdu.1.tgz" +MD5SUM_x86_64="19d1dbc1e5c7fd3f2344652be8985565 f3c11b31b2911b978cf9552672de26ca" +REQUIRES="" +MAINTAINER="Fabricio Silva" +EMAIL="hi@fabricio.dev" diff --git a/system/gdu/slack-desc b/system/gdu/slack-desc new file mode 100644 index 0000000000..431d46a582 --- /dev/null +++ b/system/gdu/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +gdu: gdu (Fast disk usage analyzer with console interface written in Go) +gdu: +gdu: gdu is intended primarily for SSD disks where it can fully utilize +gdu: parallel processing. However HDDs work as well, but the performance +gdu: gain is not so huge. +gdu: +gdu: Homepage: https://github.com/dundee/gdu +gdu: +gdu: +gdu: +gdu: |
