system/glances: Updated for version 1.7.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
a37fc6bd03
commit
7c593e1850
|
@ -12,6 +12,6 @@ statistical values from key elements, like CPU, load average, memory,
|
|||
network, disks, file systems, processes, etc.
|
||||
|
||||
Optional dependencies are Jinja2 (for HTML output), hddtemp (for HHD
|
||||
temperature monitoring support) and python3.
|
||||
Others not available on SBo are pysensors (for HW monitoring support)
|
||||
and batinfo (for battery monitoring support).
|
||||
temperature monitoring support) and python3. Others not available on SBo
|
||||
are pysensors (for HW monitoring support) and batinfo (for battery
|
||||
monitoring support).
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||
# toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
||||
config etc/glances/glances.conf.new
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for glances
|
||||
|
||||
# Copyright 2013 Philip Lacroix <philnx at bluebottle dot com>
|
||||
# Copyright 2013-2014 Philip Lacroix <philnx at bluebottle dot com>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -23,7 +23,7 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=glances
|
||||
VERSION=${VERSION:-1.7.2}
|
||||
VERSION=${VERSION:-1.7.4}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -46,7 +46,8 @@ rm -rf $PKG
|
|||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
tar xvf $CWD/v$VERSION.tar.gz
|
||||
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
|
@ -55,6 +56,11 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
PRGUSR=$PKG/usr
|
||||
PRGETC=$PKG/etc/$PRGNAM
|
||||
PRGSHR=$PKG/usr/share
|
||||
PRGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
||||
python setup.py install --root=$PKG
|
||||
|
||||
# Python 3 support
|
||||
|
@ -62,19 +68,18 @@ if $(python3 -c 'import sys' 2>/dev/null); then
|
|||
python3 setup.py install --root=$PKG
|
||||
fi
|
||||
|
||||
# Don't clobber configuration files
|
||||
mv $PKG/etc/$PRGNAM/$PRGNAM.conf $PKG/etc/$PRGNAM/$PRGNAM.conf.new
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
mv $PKG/usr/share/man $PKG/usr/
|
||||
gzip -9 $PKG/usr/man/man?/*.?
|
||||
mv $PRGETC/$PRGNAM.conf $PRGETC/$PRGNAM.conf.new
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
rm -rf $PKG/usr/share/doc
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
mv $PRGSHR/man $PKG/usr/
|
||||
gzip -9 $PRGUSR/man/man?/*.?
|
||||
|
||||
mkdir -p $PRGDOC
|
||||
mv $PRGSHR/doc/$PRGNAM/* $PRGDOC/
|
||||
rm -rf $PRGSHR
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PRGDOC/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="glances"
|
||||
VERSION="1.7.2"
|
||||
VERSION="1.7.4"
|
||||
HOMEPAGE="https://github.com/nicolargo/glances"
|
||||
DOWNLOAD="https://github.com/nicolargo/glances/archive/v1.7.2.tar.gz"
|
||||
MD5SUM="71fe3c9be2490095e8eeb07f172ffe2e"
|
||||
DOWNLOAD="https://github.com/nicolargo/glances/archive/v1.7.4.tar.gz"
|
||||
MD5SUM="2062e70326f4c2eb9595c53c59d55047"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="psutil pysetuptools"
|
||||
|
|
Loading…
Reference in New Issue