From 14bf87bc4cf2c389c624ffdb1a6d09c24e3ab9d0 Mon Sep 17 00:00:00 2001 From: Jeff Hatch Date: Mon, 13 Feb 2017 14:34:48 -0600 Subject: Initial commit of Yocto 2.1 changes --- recipes-extended/logrotate/logrotate_%.bbappend | 15 +++++++++++++++ recipes-extended/logrotate/logrotate_3.8.7.bbappend | 15 --------------- 2 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 recipes-extended/logrotate/logrotate_%.bbappend delete mode 100644 recipes-extended/logrotate/logrotate_3.8.7.bbappend (limited to 'recipes-extended/logrotate') diff --git a/recipes-extended/logrotate/logrotate_%.bbappend b/recipes-extended/logrotate/logrotate_%.bbappend new file mode 100644 index 0000000..efebecb --- /dev/null +++ b/recipes-extended/logrotate/logrotate_%.bbappend @@ -0,0 +1,15 @@ +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}/ +} + diff --git a/recipes-extended/logrotate/logrotate_3.8.7.bbappend b/recipes-extended/logrotate/logrotate_3.8.7.bbappend deleted file mode 100644 index efebecb..0000000 --- a/recipes-extended/logrotate/logrotate_3.8.7.bbappend +++ /dev/null @@ -1,15 +0,0 @@ -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}/ -} - -- cgit v1.2.3