1 DESCRIPTION = "simple logrotate bash script"
5 MAINTAINER = "Bruno Randolf <bruno.randolf@4g-systems.biz>"
8 SRC_URI = "svn://meshcube.org/svn/scripts;module=logrotate"
12 (cd ${S}; tar -c --exclude .svn -f - . ) | tar -C ${D} -xpf -
17 ROOTCRON=/etc/cron/crontabs/root
19 test -e /etc/cron/crontabs/root \
20 && grep '^[^#].*logrotate' $ROOTCRON > /dev/null \
21 || echo "*/5 * * * * /bin/bash ${sbindir}/logrotate -m 0600 -o root -g root -s 800 -l 3 /tmp/messages" >> $ROOTCRON
23 /etc/init.d/cron restart