summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
author Luis Henrique F. Cardoso de Mello <lmello.009@gmail.com>2010-06-01 01:08:57 -0500
committer Robby Workman <rworkman@slackbuilds.org>2010-06-01 01:08:57 -0500
commite0f0bdf194f9e49fa01f438772cea8598f09e475 (patch)
tree5847cb4cda757418b2ce8a8bb8bedb5c3f60b2a6 /system
parentadc78ec6f54243f503379fc9cedcc729a71773d5 (diff)
downloadslackbuilds-e0f0bdf194f9e49fa01f438772cea8598f09e475.tar.gz
slackbuilds-e0f0bdf194f9e49fa01f438772cea8598f09e475.tar.xz
system/slim: Included a logrotate config file
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/slim/doinst.sh1
-rw-r--r--system/slim/slim.SlackBuild6
-rw-r--r--system/slim/slim.logrotate9
3 files changed, 15 insertions, 1 deletions
diff --git a/system/slim/doinst.sh b/system/slim/doinst.sh
index d419960559..f502caffe6 100644
--- a/system/slim/doinst.sh
+++ b/system/slim/doinst.sh
@@ -12,4 +12,5 @@ config() {
}
config etc/slim.conf.new
+config etc/logrotate.d/slim.new
diff --git a/system/slim/slim.SlackBuild b/system/slim/slim.SlackBuild
index ba82072c1a..d2aa270bf6 100644
--- a/system/slim/slim.SlackBuild
+++ b/system/slim/slim.SlackBuild
@@ -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
diff --git a/system/slim/slim.logrotate b/system/slim/slim.logrotate
new file mode 100644
index 0000000000..3d237a2d14
--- /dev/null
+++ b/system/slim/slim.logrotate
@@ -0,0 +1,9 @@
+/var/log/slim.log {
+ compress
+ rotate 4
+ size=1M
+ notifempty
+ missingok
+ copytruncate
+ noolddir
+}