summaryrefslogtreecommitdiff
path: root/recipes-extended/logrotate/logrotate_3.8.7.bbappend
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2015-04-27 17:20:48 -0500
committerJesse Gilles <jgilles@multitech.com>2015-04-27 17:22:01 -0500
commite9de87ae96038f07b325cbd99ded9e6e285f7348 (patch)
tree0f8e3b58474010caf06015e02960329c6efd3817 /recipes-extended/logrotate/logrotate_3.8.7.bbappend
parente310beaf18513ea10cd49bba71fd08f69a346fff (diff)
downloadmeta-mlinux-e9de87ae96038f07b325cbd99ded9e6e285f7348.tar.gz
meta-mlinux-e9de87ae96038f07b325cbd99ded9e6e285f7348.tar.bz2
meta-mlinux-e9de87ae96038f07b325cbd99ded9e6e285f7348.zip
logrotate: add logrotate.conf and turn off dateext by default
Diffstat (limited to 'recipes-extended/logrotate/logrotate_3.8.7.bbappend')
-rw-r--r--recipes-extended/logrotate/logrotate_3.8.7.bbappend8
1 files changed, 7 insertions, 1 deletions
diff --git a/recipes-extended/logrotate/logrotate_3.8.7.bbappend b/recipes-extended/logrotate/logrotate_3.8.7.bbappend
index 300b9b7..577fe53 100644
--- a/recipes-extended/logrotate/logrotate_3.8.7.bbappend
+++ b/recipes-extended/logrotate/logrotate_3.8.7.bbappend
@@ -1,9 +1,15 @@
-PR .= "mlinux1"
+PR .= "mlinux2"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}"
+
+SRC_URI += "file://logrotate.conf"
do_install_append() {
# setup cron to run logrotate more often
rm -f ${D}${sysconfdir}/cron.daily/logrotate
install -d ${D}${sysconfdir}/cron.d
echo "*/5 * * * * root /usr/sbin/logrotate /etc/logrotate.conf" > ${D}${sysconfdir}/cron.d/logrotate
+
+ install -m 0644 ${WORKDIR}/logrotate.conf ${D}${sysconfdir}/
}