From 7cc34f85fd28835e04870f422bfe71a087ab3ac2 Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Sun, 11 Jul 2021 00:46:19 +0000 Subject: logcheck: upgrade 1.3.20 -> 1.3.23 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit logcheck (1.3.23) unstable; urgency=medium * v.i.d/logcheck-sudo: adjust 'session opened' rule to match uid, thanks to Marco d'Itri for the patch (closes: #985166) * v.i.d/logcheck-su: allow 'none' as pseudo terminal, thanks to Marco d'Itri for the patch -- Hannes von Haugwitz Thu, 01 Apr 2021 21:19:39 +0200 logcheck (1.3.22) unstable; urgency=medium * d/t/01-logcheck: use temporary log file -- Hannes von Haugwitz Mon, 01 Feb 2021 22:28:20 +0100 logcheck (1.3.21) unstable; urgency=medium [ Debian Janitor ] * Set debhelper-compat version in Build-Depends. * Fix day-of-week for changelog entries 1.2.23, 1.2.17, 1.1.1-7.3, 1.1.1-7. * Update standards version to 4.4.1, no changes needed. [ Simó Albert i Beltran ] * ignore.d.server/ssh: - match port - match more variants of 'Disconnected from' message - match 'Connection reset' message [ Ville Salomäki ] * v.i.d/logcheck-su, v.i.d/logcheck-sudo: allow '.' and '_' in usernames [Lee Maguire] * src/logcheck: support systemd journal as log source (closes: #876420) [ Hannes von Haugwitz ] * Switch to debhelper 13 * Update standards version to 4.5.1, no changes needed. * Update debian/copyright * Set Rules-Requires-Root to no * Add autopkgtest * Adjust rules for PAM open session messages to match new format * Update 'su' rules to match changed format (closes: #931770) * i.d.s/dnsmasq: allow '.' in interface names, thanks to Craig Small for the patch (closes: #732655) * i.d.s/openvpn: match 'VERIFY X509NAME OK' message (closes: #751292) * i.d.s/spamd: - match autolearn_force field - properly match IPv6 addresses thanks to Craig Small for the patch (closes: #755374) * i.d.s/postfix: match sasl_sender field (closes: #700851) * i.d.s/su, v.i.d/logcheck-su: - match 'su-l:session' - match '(to ) ' message * i.d.s/systemd-logind: new - match logind session messages * i.d.s/systemd: match some Succeeded/Finished messages * i.d.s/dhclient: adjust 'DHCPREQUEST' rule -- Hannes von Haugwitz Sun, 31 Jan 2021 23:01:29 +0100 Signed-off-by: Tim Orling --- .../recipes-extended/logcheck/logcheck_1.3.20.bb | 80 ---------------------- .../recipes-extended/logcheck/logcheck_1.3.23.bb | 79 +++++++++++++++++++++ 2 files changed, 79 insertions(+), 80 deletions(-) delete mode 100644 meta-perl/recipes-extended/logcheck/logcheck_1.3.20.bb create mode 100644 meta-perl/recipes-extended/logcheck/logcheck_1.3.23.bb diff --git a/meta-perl/recipes-extended/logcheck/logcheck_1.3.20.bb b/meta-perl/recipes-extended/logcheck/logcheck_1.3.20.bb deleted file mode 100644 index 10b281a66b..0000000000 --- a/meta-perl/recipes-extended/logcheck/logcheck_1.3.20.bb +++ /dev/null @@ -1,80 +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 = "${DEBIAN_MIRROR}/main/l/${BPN}/${BPN}_${PV}.tar.xz \ - file://99_logcheck \ -" -SRC_URI[md5sum] = "1c6e9a97f9cc485353c25147cb99fb25" -SRC_URI[sha256sum] = "9fb6d02b933470d0b1d1efb54ea186e0d0d27336f9d146be592f65ce60dfb3e6" - -S = "${WORKDIR}/${BPN}" - -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.23.bb b/meta-perl/recipes-extended/logcheck/logcheck_1.3.23.bb new file mode 100644 index 0000000000..bb9faa2c05 --- /dev/null +++ b/meta-perl/recipes-extended/logcheck/logcheck_1.3.23.bb @@ -0,0 +1,79 @@ +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[sha256sum] = "a2188ba549fff4412c82074b271884ff66d25f3fdb2a41916e817ce676855b29" + +S = "${WORKDIR}/${BPN}" + +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