aboutsummaryrefslogtreecommitdiff
path: root/system/atop/atop.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/atop/atop.SlackBuild')
-rw-r--r--system/atop/atop.SlackBuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/system/atop/atop.SlackBuild b/system/atop/atop.SlackBuild
index 3c8ca4356f0d2..ddf0eaf0d0bd0 100644
--- a/system/atop/atop.SlackBuild
+++ b/system/atop/atop.SlackBuild
@@ -14,12 +14,12 @@
PRGNAM=atop
VERSION=${VERSION:-2.2}
SRCVER=$(echo ${VERSION}-3)
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -30,8 +30,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -63,14 +63,15 @@ make CFLAGS="$SLKCFLAGS"
# Install the binary sgid utmp in order to allow accounting
install -D -o root -g utmp -m 2751 atop $PKG/usr/bin/atop
+install -m 0755 atopacctd $PKG/usr/bin/atopacctd
install -D -m 0755 atop.init $PKG/etc/rc.d/rc.atop.new
-mkdir -p $PKG/etc/{logrotate.d,cron.daily}
+mkdir -p $PKG/etc/{logrotate.d,atop}
install -m 0644 psaccs_atop $PKG/etc/logrotate.d/psaccs_atop.new
install -m 0644 psaccu_atop $PKG/etc/logrotate.d/psaccu_atop.new
install -m 0644 $CWD/psacct.logrotate $PKG/etc/logrotate.d/psacct.new
-install -m 0755 atop.daily $PKG/etc/cron.daily/atop.new
+install -m 0755 atop.daily $PKG/etc/atop/atop.daily
mkdir -p $PKG/var/log/atop
touch $PKG/var/log/atop/dummy_{before,after}