diff options
-rw-r--r-- | system/atop/README.SLACKWARE | 2 | ||||
-rw-r--r-- | system/atop/atop.SlackBuild | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/system/atop/README.SLACKWARE b/system/atop/README.SLACKWARE index c231ec955ef58..26d9830590954 100644 --- a/system/atop/README.SLACKWARE +++ b/system/atop/README.SLACKWARE @@ -6,7 +6,7 @@ Slackware being installed. To enable it, execute the following: touch /var/log/pacct chgrp utmp /var/log/pacct chmod 640 /var/log/pacct - accton + accton on You may want to have atop start at boot; to do so, add to /etc/rc.d/rc.local the following lines: diff --git a/system/atop/atop.SlackBuild b/system/atop/atop.SlackBuild index 3a3b39c176399..889f3bcd6541f 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} |