mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
system/atop: Fix rc script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
d3285743dc
commit
782bd19f1b
2 changed files with 5 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue