--- /dev/null
+DESCRIPTION = "Logrotate rules for BUG"
+RDEPENDS_${PN} = "logrotate"
+
+SRC_URI = "file://bug-rules"
+
+S = "${WORKDIR}"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+do_install() {
+ install -d ${D}/etc/logrotate.d
+ install -m 0644 bug-rules ${D}/etc/logrotate.d/
+}
--- /dev/null
+/var/log/felix.log
+{
+ rotate 7
+ daily
+ size 1M
+ missingok
+ notifempty
+ compress
+ postrotate
+ /etc/init.d/felix restart
+ endscript
+}
+
+/var/log/kern.log
+/var/log/debug
+/var/log/syslog
+{
+ rotate 7
+ daily
+ size 1M
+ missingok
+ notifempty
+ compress
+ postrotate
+ /etc/init.d/syslog-ng restart
+ endscript
+}
+
+/var/log/daemon.log
+/var/log/auth.log
+/var/log/user.log
+/var/log/cron.log
+/var/log/messages
+{
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ compress
+ sharedscripts
+ postrotate
+ /etc/init.d/cron restart
+ endscript
+}