From b87b595ab12c19a32c4ae0b71288afcf72cb5684 Mon Sep 17 00:00:00 2001 From: Kang Kai Date: Mon, 6 Aug 2018 03:39:07 -0700 Subject: logcheck: 1.3.18 -> 1.3.19 Upgrade logcheck from 1.3.18 to 1.3.19. * update SRC_URI to replace git repo with tarball that saves some space Signed-off-by: Kai Kang Signed-off-by: Khem Raj --- .../recipes-extended/logcheck/logcheck_1.3.18.bb | 79 ---------------------- .../recipes-extended/logcheck/logcheck_1.3.19.bb | 78 +++++++++++++++++++++ 2 files changed, 78 insertions(+), 79 deletions(-) delete mode 100644 meta-perl/recipes-extended/logcheck/logcheck_1.3.18.bb create mode 100644 meta-perl/recipes-extended/logcheck/logcheck_1.3.19.bb (limited to 'meta-perl/recipes-extended') diff --git a/meta-perl/recipes-extended/logcheck/logcheck_1.3.18.bb b/meta-perl/recipes-extended/logcheck/logcheck_1.3.18.bb deleted file mode 100644 index 6182c17f9a..0000000000 --- a/meta-perl/recipes-extended/logcheck/logcheck_1.3.18.bb +++ /dev/null @@ -1,79 +0,0 @@ -SUMMARY = "Analyzes log files and sends noticeable events as email" -DESCRIPTION = "\ -Logcheck is a simple utility which is designed to allow a system administrator \ -to view the log-files which are produced upon hosts under their control. \ -It does this by mailing summaries of the log-files to them, after first \ -filtering out "normal" entries. \ -Normal entries are entries which match one of the many included regular \ -expression files contain in the database." -SECTION = "Applications/System" -HOMEPAGE = "http://logcheck.org/" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://LICENSE;md5=c93c0550bd3173f4504b2cbd8991e50b" - -SRC_URI = "git://salsa.debian.org/debian/logcheck.git;protocol=https \ - file://99_logcheck \ -" -SRCREV = "0a5865d80fa34c55387a1917a3e6f885bcff7f1d" - -S = "${WORKDIR}/git" - -inherit useradd - -USERADD_PACKAGES = "${PN}" -USERADD_PARAM_${PN} = "-m -g ${BPN} -G adm -r -d ${localstatedir}/lib/${BPN} \ - -s /bin/false -c 'logcheck account' ${BPN}" -GROUPADD_PARAM_${PN} = "-r ${BPN}" - -do_install() { - # Fix QA Issue - sed -i '/install -d $(DESTDIR)\/var\/lock\/logcheck/s/^/#/' Makefile - - # "make install" do not install the manpages. Install them manually. - install -m 755 -d ${D}${mandir}/man1 - install -m 755 -d ${D}${mandir}/man8 - install -m 644 docs/logcheck-test.1 ${D}${mandir}/man1/ - install -m 644 docs/logtail.8 ${D}${mandir}/man8/ - install -m 644 docs/logtail2.8 ${D}${mandir}/man8/ - - install -m 755 -d ${D}${sysconfdir}/cron.d - install -m 644 debian/logcheck.cron.d ${D}${sysconfdir}/cron.d/logcheck - install -m 755 -d ${D}/var/lib/logcheck - - oe_runmake install DESTDIR=${D} - - # install header.txt for generated mails - install -m 0644 ${S}/debian/header.txt ${D}${sysconfdir}/${BPN} - - chown -R ${BPN}:${BPN} ${D}${localstatedir}/lib/${BPN} - chown -R root:${BPN} ${D}${sysconfdir}/${BPN} - - # Don't install /var/lock when populating rootfs. Do it through volatile - if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then - install -d ${D}${sysconfdir}/default/volatiles - install -m 0644 ${WORKDIR}/99_logcheck ${D}${sysconfdir}/default/volatiles - fi - if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then - install -d ${D}${sysconfdir}/tmpfiles.d - echo "d /var/lock/logcheck 0755 logcheck logcheck -" \ - > ${D}${sysconfdir}/tmpfiles.d/logcheck.conf - fi -} - -VIRTUAL-RUNTIME_syslog ??= "rsyslog" - -RDEPENDS_${PN} = "\ - bash \ - cronie \ - debianutils-run-parts \ - grep \ - lockfile-progs \ - mime-construct \ - perl \ - perl-module-file-basename \ - perl-module-getopt-std \ - perl-module-file-glob \ - ${VIRTUAL-RUNTIME_syslog} \ -" - -FILES_${PN} += "${datadir}/logtail" diff --git a/meta-perl/recipes-extended/logcheck/logcheck_1.3.19.bb b/meta-perl/recipes-extended/logcheck/logcheck_1.3.19.bb new file mode 100644 index 0000000000..873ac2b105 --- /dev/null +++ b/meta-perl/recipes-extended/logcheck/logcheck_1.3.19.bb @@ -0,0 +1,78 @@ +SUMMARY = "Analyzes log files and sends noticeable events as email" +DESCRIPTION = "\ +Logcheck is a simple utility which is designed to allow a system administrator \ +to view the log-files which are produced upon hosts under their control. \ +It does this by mailing summaries of the log-files to them, after first \ +filtering out "normal" entries. \ +Normal entries are entries which match one of the many included regular \ +expression files contain in the database." +SECTION = "Applications/System" +HOMEPAGE = "http://logcheck.org/" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c93c0550bd3173f4504b2cbd8991e50b" + +SRC_URI = "${DEBIAN_MIRROR}/main/l/${BPN}/${BPN}_${PV}.tar.xz \ + file://99_logcheck \ +" +SRC_URI[md5sum] = "7b50d10da6f185228627c55fdd51f624" +SRC_URI[sha256sum] = "06294c092b2115eca3d054c57778718c91dd2e0fd1c46650b7343c2a92672ca9" + +inherit useradd + +USERADD_PACKAGES = "${PN}" +USERADD_PARAM_${PN} = "-m -g ${BPN} -G adm -r -d ${localstatedir}/lib/${BPN} \ + -s /bin/false -c 'logcheck account' ${BPN}" +GROUPADD_PARAM_${PN} = "-r ${BPN}" + +do_install() { + # Fix QA Issue + sed -i '/install -d $(DESTDIR)\/var\/lock\/logcheck/s/^/#/' Makefile + + # "make install" do not install the manpages. Install them manually. + install -m 755 -d ${D}${mandir}/man1 + install -m 755 -d ${D}${mandir}/man8 + install -m 644 docs/logcheck-test.1 ${D}${mandir}/man1/ + install -m 644 docs/logtail.8 ${D}${mandir}/man8/ + install -m 644 docs/logtail2.8 ${D}${mandir}/man8/ + + install -m 755 -d ${D}${sysconfdir}/cron.d + install -m 644 debian/logcheck.cron.d ${D}${sysconfdir}/cron.d/logcheck + install -m 755 -d ${D}/var/lib/logcheck + + oe_runmake install DESTDIR=${D} + + # install header.txt for generated mails + install -m 0644 ${S}/debian/header.txt ${D}${sysconfdir}/${BPN} + + chown -R ${BPN}:${BPN} ${D}${localstatedir}/lib/${BPN} + chown -R root:${BPN} ${D}${sysconfdir}/${BPN} + + # Don't install /var/lock when populating rootfs. Do it through volatile + if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then + install -d ${D}${sysconfdir}/default/volatiles + install -m 0644 ${WORKDIR}/99_logcheck ${D}${sysconfdir}/default/volatiles + fi + if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then + install -d ${D}${sysconfdir}/tmpfiles.d + echo "d /var/lock/logcheck 0755 logcheck logcheck -" \ + > ${D}${sysconfdir}/tmpfiles.d/logcheck.conf + fi +} + +VIRTUAL-RUNTIME_syslog ??= "rsyslog" + +RDEPENDS_${PN} = "\ + bash \ + cronie \ + debianutils-run-parts \ + grep \ + lockfile-progs \ + mime-construct \ + perl \ + perl-module-file-basename \ + perl-module-getopt-std \ + perl-module-file-glob \ + ${VIRTUAL-RUNTIME_syslog} \ +" + +FILES_${PN} += "${datadir}/logtail" -- cgit 1.2.3-korg