summaryrefslogtreecommitdiff
path: root/system/atop/atop.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-10-03 06:24:29 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-10-07 07:01:56 +0700
commit782bd19f1b4f6bde83cf51feb7dc02b8f1e863ed (patch)
treedece27919b7ef83a5149f63ae68bcca03127de47 /system/atop/atop.SlackBuild
parentd3285743dcbbce7fb9d226d0b6120884e8359ffe (diff)
downloadslackbuilds-782bd19f1b4f6bde83cf51feb7dc02b8f1e863ed.tar.gz
system/atop: Fix rc script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/atop/atop.SlackBuild')
-rw-r--r--system/atop/atop.SlackBuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/system/atop/atop.SlackBuild b/system/atop/atop.SlackBuild
index 3a3b39c176..889f3bcd65 100644
--- a/system/atop/atop.SlackBuild
+++ b/system/atop/atop.SlackBuild
@@ -13,7 +13,7 @@
PRGNAM=atop
VERSION=${VERSION:-2.3.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -64,7 +64,8 @@ make CFLAGS="$SLKCFLAGS"
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
+install -D -m 0644 atop.init $PKG/etc/rc.d/rc.atop.new
+sed -i "s|/usr/share/atop/atop.daily|/etc/atop/atop.daily|g" $PKG/etc/rc.d/rc.atop.new
mkdir -p $PKG/etc/{logrotate.d,atop}
install -m 0644 psaccs_atop $PKG/etc/logrotate.d/psaccs_atop.new
@@ -79,7 +80,7 @@ touch $PKG/var/log/atop/dummy_{before,after}
# Create link to enable the 'atopsar' functionality
( cd $PKG/usr/bin ; ln -vsf atop atopsar )
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
mkdir -p $PKG/usr/man/man{1,5}