aboutsummaryrefslogtreecommitdiff
path: root/system/atop/atop.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-08-16 08:24:03 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-08-16 08:24:03 +0700
commit8dc77b2cb0e834350e782d760ff11d0d48dd327a (patch)
tree383aa9cd33b53069f6dd2da09ea418535796a921 /system/atop/atop.SlackBuild
parent41fe078701f550a80192b2f57c820e24d9422d95 (diff)
system/atop: Updated for version 2.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/atop/atop.SlackBuild')
-rw-r--r--system/atop/atop.SlackBuild10
1 files changed, 4 insertions, 6 deletions
diff --git a/system/atop/atop.SlackBuild b/system/atop/atop.SlackBuild
index d82791c3b4f0d..3c8ca4356f0d2 100644
--- a/system/atop/atop.SlackBuild
+++ b/system/atop/atop.SlackBuild
@@ -12,8 +12,8 @@
# http://sam.zoy.org/wtfpl/COPYING for more details.
PRGNAM=atop
-VERSION=${VERSION:-2.1}
-SRCVER=$(echo ${VERSION}-1)
+VERSION=${VERSION:-2.2}
+SRCVER=$(echo ${VERSION}-3)
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -49,9 +49,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
+rm -rf $PRGNAM-$SRCVER
tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
-cd $PRGNAM-$VERSION
+cd $PRGNAM-$SRCVER
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -64,8 +64,6 @@ 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
-# Add the init script and fix the paths in it
-patch -p1 < $CWD/atop.init.diff
install -D -m 0755 atop.init $PKG/etc/rc.d/rc.atop.new
mkdir -p $PKG/etc/{logrotate.d,cron.daily}