diff options
Diffstat (limited to 'meta/recipes-extended/logrotate/logrotate_3.8.1.bb')
-rw-r--r-- | meta/recipes-extended/logrotate/logrotate_3.8.1.bb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-extended/logrotate/logrotate_3.8.1.bb b/meta/recipes-extended/logrotate/logrotate_3.8.1.bb new file mode 100644 index 0000000000..5a8156be57 --- /dev/null +++ b/meta/recipes-extended/logrotate/logrotate_3.8.1.bb | |||
@@ -0,0 +1,34 @@ | |||
1 | DESCRIPTION = "Rotates, compresses, removes and mails system log files" | ||
2 | SECTION = "console/utils" | ||
3 | HOMEPAGE = "https://fedorahosted.org/releases/l/o/logrotate" | ||
4 | LICENSE = "GPLv2" | ||
5 | PR = "r0" | ||
6 | |||
7 | DEPENDS="coreutils popt" | ||
8 | |||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760" | ||
10 | |||
11 | SRC_URI = "https://fedorahosted.org/releases/l/o/logrotate/logrotate-${PV}.tar.gz \ | ||
12 | file://act-as-mv-when-rotate.patch \ | ||
13 | file://disable-check-different-filesystems.patch \ | ||
14 | file://update-the-manual.patch \ | ||
15 | " | ||
16 | |||
17 | SRC_URI[md5sum] = "bd2e20d8dc644291b08f9215397d28a5" | ||
18 | SRC_URI[sha256sum] = "c12471e70ae8bc923bd5c4f25e8fd6483b68c6301f3cd79f7cfe37bc5b370169" | ||
19 | |||
20 | |||
21 | EXTRA_OEMAKE = "CC='${CC}'" | ||
22 | |||
23 | do_install(){ | ||
24 | oe_runmake install DESTDIR=${D} PREFIX=${D} MANDIR=${mandir} | ||
25 | } | ||
26 | |||
27 | do_install_append(){ | ||
28 | mkdir -p ${D}${sysconfdir}/logrotate.d | ||
29 | mkdir -p ${D}${sysconfdir}/cron.daily | ||
30 | mkdir -p ${D}${localstatedir}/lib | ||
31 | install -p -m 644 examples/logrotate-default ${D}${sysconfdir}/logrotate.conf | ||
32 | install -p -m 755 examples/logrotate.cron ${D}${sysconfdir}/cron.daily/logrotate | ||
33 | touch ${D}${localstatedir}/lib/logrotate.status | ||
34 | } | ||