mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
system/slim: Included a logrotate config file
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
adc78ec6f5
commit
e0f0bdf194
3 changed files with 15 additions and 1 deletions
|
@ -12,4 +12,5 @@ config() {
|
|||
}
|
||||
|
||||
config etc/slim.conf.new
|
||||
config etc/logrotate.d/slim.new
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
PRGNAM=slim
|
||||
VERSION=${VERSION:-1.3.1}
|
||||
BUILD=${BUILD:-2}
|
||||
BUILD=${BUILD:-3}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
|
@ -113,6 +113,10 @@ mv $PKG/etc/slim.conf $PKG/etc/slim.conf.new
|
|||
# Add the slackware-black theme to the package:
|
||||
tar xvf $CWD/slackware-black.tar.bz2 -C $PKG/usr/share/slim/themes
|
||||
|
||||
# Add a logrotate file
|
||||
mkdir -p $PKG/etc/logrotate.d
|
||||
cat $CWD/slim.logrotate > $PKG/etc/logrotate.d/slim.new
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
|
|
9
system/slim/slim.logrotate
Normal file
9
system/slim/slim.logrotate
Normal file
|
@ -0,0 +1,9 @@
|
|||
/var/log/slim.log {
|
||||
compress
|
||||
rotate 4
|
||||
size=1M
|
||||
notifempty
|
||||
missingok
|
||||
copytruncate
|
||||
noolddir
|
||||
}
|
Loading…
Reference in a new issue