summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-extended/logwatch/logwatch_7.13.bb (renamed from meta-oe/recipes-extended/logwatch/logwatch_7.11.bb)21
1 files changed, 14 insertions, 7 deletions
diff --git a/meta-oe/recipes-extended/logwatch/logwatch_7.11.bb b/meta-oe/recipes-extended/logwatch/logwatch_7.13.bb
index 89012f8852..13897590be 100644
--- a/meta-oe/recipes-extended/logwatch/logwatch_7.11.bb
+++ b/meta-oe/recipes-extended/logwatch/logwatch_7.13.bb
@@ -11,17 +11,17 @@ LICENSE = "MIT"
11LIC_FILES_CHKSUM = "file://LICENSE;md5=ba882fa9b4b6b217a51780be3f4db9c8" 11LIC_FILES_CHKSUM = "file://LICENSE;md5=ba882fa9b4b6b217a51780be3f4db9c8"
12RDEPENDS:${PN} = "perl" 12RDEPENDS:${PN} = "perl"
13 13
14SRC_URI = "http://jaist.dl.sourceforge.net/project/${BPN}/${BP}/${BP}.tar.gz" 14SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz"
15SRC_URI[sha256sum] = "5eb42d983a9667003368b572149fce788c0d7e13daaf1f28ad1bf3a140b865cf" 15SRC_URI[sha256sum] = "0c9a10c2d8e5bc0cb10e16dc86c83be60d71d8a52b97bca785c64a30ed642839"
16 16
17do_install() { 17do_install() {
18 install -m 0755 -d ${D}${sysconfdir}/logwatch/scripts 18 install -m 0755 -d ${D}${sysconfdir}/logwatch/scripts/services
19 install -m 0755 -d ${D}${datadir}/logwatch/dist.conf/logfiles 19 install -m 0755 -d ${D}${datadir}/logwatch/dist.conf/logfiles
20 install -m 0755 -d ${D}${datadir}/logwatch/dist.conf/services 20 install -m 0755 -d ${D}${datadir}/logwatch/dist.conf/services
21 install -m 0755 -d ${D}${localstatedir}/cache/logwatch 21 install -m 0755 -d ${D}${localstatedir}/cache/logwatch
22 cp -r -f conf/ ${D}${datadir}/logwatch/default.conf 22 cp -r conf/ ${D}${datadir}/logwatch/default.conf
23 cp -r -f scripts/ ${D}${datadir}/logwatch/scripts 23 cp -r scripts/ ${D}${datadir}/logwatch/scripts
24 cp -r -f lib ${D}${datadir}/logwatch/lib 24 cp -r lib ${D}${datadir}/logwatch/lib
25 chown -R root:root ${D}${datadir}/logwatch 25 chown -R root:root ${D}${datadir}/logwatch
26 26
27 install -m 0755 -d ${D}${mandir}/man1 27 install -m 0755 -d ${D}${mandir}/man1
@@ -36,7 +36,7 @@ do_install() {
36 36
37 install -m 0755 -d ${D}${sysconfdir}/cron.daily 37 install -m 0755 -d ${D}${sysconfdir}/cron.daily
38 install -m 0755 -d ${D}${sbindir} 38 install -m 0755 -d ${D}${sbindir}
39 ln -sf ../..${datadir}/logwatch/scripts/logwatch.pl ${D}${sbindir}/logwatch 39 ln -sr ${D}${datadir}/logwatch/scripts/logwatch.pl ${D}${sbindir}/logwatch
40 cat > ${D}${sysconfdir}/cron.daily/0logwatch <<EOF 40 cat > ${D}${sysconfdir}/cron.daily/0logwatch <<EOF
41 DailyReport=\`grep -e "^[[:space:]]*DailyReport[[:space:]]*=[[:space:]]*" /usr/share/logwatch/default.conf/logwatch.conf | head -n1 | sed -e "s|^\s*DailyReport\s*=\s*||"\` 41 DailyReport=\`grep -e "^[[:space:]]*DailyReport[[:space:]]*=[[:space:]]*" /usr/share/logwatch/default.conf/logwatch.conf | head -n1 | sed -e "s|^\s*DailyReport\s*=\s*||"\`
42 if [ "\$DailyReport" != "No" ] && [ "\$DailyReport" != "no" ] 42 if [ "\$DailyReport" != "No" ] && [ "\$DailyReport" != "no" ]
@@ -46,6 +46,13 @@ do_install() {
46EOF 46EOF
47 chmod 755 ${D}${sysconfdir}/cron.daily/0logwatch 47 chmod 755 ${D}${sysconfdir}/cron.daily/0logwatch
48 48
49 for i in scripts/logfiles/*; do
50 if [ $(ls $i | wc -l) -ne 0 ]; then
51 install -d ${D}${datadir}/logwatch/$i
52 install -m 0644 $i/* ${D}${datadir}/logwatch/$i
53 fi
54 done
55
49 install -m 0755 -d ${D}${sysconfdir}/logwatch/conf/logfiles 56 install -m 0755 -d ${D}${sysconfdir}/logwatch/conf/logfiles
50 install -m 0755 -d ${D}${sysconfdir}/logwatch/conf/services 57 install -m 0755 -d ${D}${sysconfdir}/logwatch/conf/services
51 touch ${D}${sysconfdir}/logwatch/conf/logwatch.conf 58 touch ${D}${sysconfdir}/logwatch/conf/logwatch.conf