mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
system/atop: Updated for version 1.23
This commit is contained in:
parent
a28bf74e02
commit
4a0e22d913
4 changed files with 34 additions and 29 deletions
|
@ -1,22 +1,4 @@
|
||||||
ATOP is an advanced interactive monitor for Linux-systems
|
ATOP is an advanced interactive monitor for Linux-systems
|
||||||
to view the load on system-level and process-level.
|
to view the load on system-level and process-level.
|
||||||
|
|
||||||
Some features depend on the 'acct' (BSD accounting) package from
|
Refer to README.SLACKWARE for setup and configuration information.
|
||||||
Slackware being installed. To enable it, execute the following:
|
|
||||||
|
|
||||||
touch /var/log/pacct
|
|
||||||
chgrp utmp /var/log/pacct
|
|
||||||
chmod 640 /var/log/pacct
|
|
||||||
accton
|
|
||||||
|
|
||||||
You may want to have atop start at boot; to do so, add to
|
|
||||||
/etc/rc.d/rc.local the following lines:
|
|
||||||
|
|
||||||
# Start the accounting top service
|
|
||||||
if [ -x /etc/rc.d/rc.atop ]; then
|
|
||||||
/etc/rc.d/rc.atop
|
|
||||||
fi
|
|
||||||
|
|
||||||
Note: logrotate(8) doesn't like .new files to reside in
|
|
||||||
/etc/logrotate.d - thus make sure to merge@remove
|
|
||||||
|
|
||||||
|
|
18
system/atop/README.SLACKWARE
Normal file
18
system/atop/README.SLACKWARE
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
README.SLACKWARE for atop
|
||||||
|
|
||||||
|
Some features depend on the 'acct' (BSD accounting) package from
|
||||||
|
Slackware being installed. To enable it, execute the following:
|
||||||
|
|
||||||
|
touch /var/log/pacct
|
||||||
|
chgrp utmp /var/log/pacct
|
||||||
|
chmod 640 /var/log/pacct
|
||||||
|
accton
|
||||||
|
|
||||||
|
You may want to have atop start at boot; to do so, add to
|
||||||
|
/etc/rc.d/rc.local the following lines:
|
||||||
|
|
||||||
|
# Start the accounting top service
|
||||||
|
if [ -x /etc/rc.d/rc.atop ]; then
|
||||||
|
/etc/rc.d/rc.atop
|
||||||
|
fi
|
||||||
|
|
|
@ -22,10 +22,13 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "x86_64" ]; then
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
SLKCFLAGS="-O2 -fPIC"
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e # Exit on most errors
|
set -e # Exit on most errors
|
||||||
|
@ -62,14 +65,14 @@ mkdir -p $PKG/var/log/atop
|
||||||
touch $PKG/var/log/atop/dummy_{before,after}
|
touch $PKG/var/log/atop/dummy_{before,after}
|
||||||
# We'll create daily.log in doinst.sh so it doesn't get wiped on uninstall
|
# We'll create daily.log in doinst.sh so it doesn't get wiped on uninstall
|
||||||
|
|
||||||
( cd $PKG
|
|
||||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
|
||||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
|
||||||
)
|
|
||||||
|
|
||||||
# Create link to enable the 'atopsar' functionality
|
# Create link to enable the 'atopsar' functionality
|
||||||
( cd $PKG/usr/bin
|
( cd $PKG/usr/bin ; ln -vsf atop atopsar )
|
||||||
ln -vsf atop atopsar
|
|
||||||
|
( cd $PKG
|
||||||
|
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||||
|
xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
||||||
|
xargs strip --strip-unneeded 2> /dev/null
|
||||||
)
|
)
|
||||||
|
|
||||||
mkdir -p $PKG/usr/man/man1
|
mkdir -p $PKG/usr/man/man1
|
||||||
|
@ -78,12 +81,12 @@ gzip -9c man/atopsar.1 > $PKG/usr/man/man1/atopsar.1.gz
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a [A-Z][A-Z]* ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a [A-Z][A-Z]* ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README$TAG
|
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -3,6 +3,8 @@ VERSION="1.23"
|
||||||
HOMEPAGE="http://www.atcomputing.nl/Tools/atop"
|
HOMEPAGE="http://www.atcomputing.nl/Tools/atop"
|
||||||
DOWNLOAD="http://www.atcomputing.nl/Tools/atop/packages/atop-1.23.tar.gz"
|
DOWNLOAD="http://www.atcomputing.nl/Tools/atop/packages/atop-1.23.tar.gz"
|
||||||
MD5SUM="ba1d733b9f0fcf8469a8e6c8e4d2d3b7"
|
MD5SUM="ba1d733b9f0fcf8469a8e6c8e4d2d3b7"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Menno E. Duursma"
|
MAINTAINER="Menno E. Duursma"
|
||||||
EMAIL="druiloor@zonnet.nl"
|
EMAIL="druiloor@zonnet.nl"
|
||||||
APPROVED="David Somero"
|
APPROVED="dsomero"
|
||||||
|
|
Loading…
Reference in a new issue