From fade240e5eae2521e59569af4ab63e27415f4e5b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 2 Oct 2023 11:46:02 +0100 Subject: gentoo auto-resync : 02:10:2023 - 11:46:02 --- app-admin/logcheck/Manifest | 2 +- app-admin/logcheck/logcheck-1.4.3-r1.ebuild | 94 ---------------------------- app-admin/logcheck/logcheck-1.4.3-r2.ebuild | 95 +++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+), 95 deletions(-) delete mode 100644 app-admin/logcheck/logcheck-1.4.3-r1.ebuild create mode 100644 app-admin/logcheck/logcheck-1.4.3-r2.ebuild (limited to 'app-admin/logcheck') diff --git a/app-admin/logcheck/Manifest b/app-admin/logcheck/Manifest index 530bee2f965b..b9ed579c0329 100644 --- a/app-admin/logcheck/Manifest +++ b/app-admin/logcheck/Manifest @@ -3,5 +3,5 @@ AUX logcheck.service 210 BLAKE2B 9a523099c54580b141b17933bb833f386ed49ed5534374d AUX logcheck.timer 140 BLAKE2B eef8f5fb279b417c4ecbbd849a4e01aabf77744deab5fdd574cab6728b8d09046f38f269486e2119bc151b5ace042fce9917f216d30960df92aeee5fb875b48d SHA512 3b1eb31ea97c12021c562813ae94d595f56699ca26d47b04cd0b4ccd67afd17fe977d34958e66a21da69416d24900c4be292a175a66f68f65bba134e7bec21d7 AUX logcheck.tmpfiles 72 BLAKE2B 025613bfed9705108c89566cb298ea4ae9754bc8c3d34d5aded2fad7fb74c20d437bb1e83cc4aa6f816a8e0035fab26ec6a307922cd1852b6f45af3c2d6c0b21 SHA512 738ae50af504709931fe7e4bdbf4024f095e489bd674d83a63565a07eea4f13945ff8d303d432eb891a1af74ed3711e88e0fce06d846de49e8c1eb7f4911f31d DIST logcheck-1.4.3.tar.gz 168176 BLAKE2B f319a644afa0de5533e37b288456f35bdc47daa6c76c413dc916d05f162b24467f70d73bba97eb9cdbc162973e9495daa48263d9f04a2f0151f7ddc5b66a6a37 SHA512 c853493d693dd44f477561596be4de1ad74c4b4380f83f86d6204e0de59c7edccdc4c8d6ec53a96f6eefa4d1995910e9e395c7573b0e2ee8f75d632abb104e09 -EBUILD logcheck-1.4.3-r1.ebuild 2383 BLAKE2B ec54fa47f7b3140a60bb18208e7672d57670a06ee5c1ef0850c01463df0b3690f393fa15adbd3271087b46592ed63f4656adceb5df098fd58c354a65d645dbed SHA512 f5c5ba709404d455385b6d8e7ab96799642e9c8c63f6a4a7d54d896b18132e807757281a12ca9b29d8054d75bf64b605ebbfe20aed2a05a5a5d5a8dde15cad92 +EBUILD logcheck-1.4.3-r2.ebuild 2409 BLAKE2B a5402f58f8e70d52954dade368376b930168d29daacf49f7fa5d0757b13d4f97ad7490926191953b4a3fecd0a6399a2b527bc358c2531c6c712c51aeceddb675 SHA512 60365ecd056d69e6f36e7dc520c538bcf91f4205b3b09f49a699de71e586d99117c566520cca6737a940ab152a7a101642bad69f8b687d34d270e6fa2eb7e930 MISC metadata.xml 1473 BLAKE2B 2604b73278294910db47dbf0731553125548286e2dd82bc3d733564a67f6fef6d522d2ad0be50104778d09fc20751dcc1532fd929157e23d409b999df376084e SHA512 b25aaaf6aedddf70c9d3c098f72f50b5beca2d7e1044627b76d762df69c4b0494b2e72c8a5647323afcbc0abbac8478331004808841d5d42590bb0657d1d732b diff --git a/app-admin/logcheck/logcheck-1.4.3-r1.ebuild b/app-admin/logcheck/logcheck-1.4.3-r1.ebuild deleted file mode 100644 index 76743bb9b220..000000000000 --- a/app-admin/logcheck/logcheck-1.4.3-r1.ebuild +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit readme.gentoo-r1 systemd tmpfiles - -DESCRIPTION="Mails anomalies in the system logfiles to the administrator" -HOMEPAGE="https://logcheck.org/" -SRC_URI="https://salsa.debian.org/debian/logcheck/-/archive/debian/${PV}/logcheck-debian-${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${PN}-debian-${PV}" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" -IUSE="cron systemd" -# Test (emake system-test) requires access to system logs -RESTRICT="test" - -DEPEND=" - acct-group/logcheck - acct-user/logcheck[systemd?] -" - -RDEPEND=" - ${DEPEND} - !app-admin/logsentry - app-misc/lockfile-progs - dev-lang/perl - dev-perl/mime-construct - virtual/mailx -" - -DOC_CONTENTS=" - Please read the guide at https://wiki.gentoo.org/wiki/Logcheck - for installation instructions. -" - -src_prepare() { - default - # Set version from PV, without using dpkg - sed -i -e "s/^VERSION=unknown/VERSION=\"${PV}\"/" "${S}/src/logcheck" || die - - # QA-fix remove call to non existent command | Bug: #911281 - sed -i "/dpkg-parsechangelog/d" "${S}/Makefile" || die - - # Add /var/log/messages to checked logs - echo "/var/log/messages" >> "${S}/etc/logcheck.logfiles.d/syslog.logfiles" || die - - # QA-fix Remove install of empty dirs to be created at runtime - sed -i "/install -d \$(DESTDIR)\/var\/lock\/logcheck/d" "${S}/Makefile" || die - - # Comment systemd journal check if systemd use flag is not set | Bug: #913857 - if ! use systemd; then - sed -i -e "s/^journal/#journal/" "${S}/etc/logcheck.logfiles.d/journal.logfiles" || die - fi -} - -src_install() { - default - - keepdir /var/lib/logcheck - - dodoc docs/README.* - doman docs/logtail.8 docs/logtail2.8 - - if use cron; then - exeinto /etc/cron.hourly - newexe "${FILESDIR}"/${PN}.cron ${PN} - DOC_CONTENTS="${DOC_CONTENTS}\n - \n - Read /etc/cron.hourly/logcheck.cron to activate hourly cron-based check!" - fi - - if use systemd; then - DOC_CONTENTS="${DOC_CONTENTS}\n - \n - To enable the systemd timer, run the following command:\n - systemctl enable --now logcheck.timer" - fi - - systemd_dounit "${FILESDIR}/${PN}."{service,timer} - newtmpfiles "${FILESDIR}/logcheck.tmpfiles" logcheck.conf - - readme.gentoo_create_doc - - fowners -R logcheck:logcheck /etc/logcheck /var/lib/logcheck -} - -pkg_postinst() { - tmpfiles_process logcheck.conf - - readme.gentoo_print_elog -} diff --git a/app-admin/logcheck/logcheck-1.4.3-r2.ebuild b/app-admin/logcheck/logcheck-1.4.3-r2.ebuild new file mode 100644 index 000000000000..5331024d608a --- /dev/null +++ b/app-admin/logcheck/logcheck-1.4.3-r2.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit readme.gentoo-r1 systemd tmpfiles + +DESCRIPTION="Mails anomalies in the system logfiles to the administrator" +HOMEPAGE="https://logcheck.org/" +SRC_URI="https://salsa.debian.org/debian/logcheck/-/archive/debian/${PV}/logcheck-debian-${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-debian-${PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="cron systemd" +# Test (emake system-test) requires access to system logs +RESTRICT="test" + +DEPEND=" + acct-group/logcheck + acct-user/logcheck[systemd?] +" + +RDEPEND=" + ${DEPEND} + !app-admin/logsentry + app-misc/lockfile-progs + dev-lang/perl + dev-perl/mime-construct + virtual/mailx + cron? ( app-admin/sudo ) +" + +DOC_CONTENTS=" + Please read the guide at https://wiki.gentoo.org/wiki/Logcheck + for installation instructions. +" + +src_prepare() { + default + # Set version from PV, without using dpkg + sed -i -e "s/^VERSION=unknown/VERSION=\"${PV}\"/" "${S}/src/logcheck" || die + + # QA-fix remove call to non existent command | Bug: #911281 + sed -i "/dpkg-parsechangelog/d" "${S}/Makefile" || die + + # Add /var/log/messages to checked logs + echo "/var/log/messages" >> "${S}/etc/logcheck.logfiles.d/syslog.logfiles" || die + + # QA-fix Remove install of empty dirs to be created at runtime + sed -i "/install -d \$(DESTDIR)\/var\/lock\/logcheck/d" "${S}/Makefile" || die + + # Comment systemd journal check if systemd use flag is not set | Bug: #913857 + if ! use systemd; then + sed -i -e "s/^journal/#journal/" "${S}/etc/logcheck.logfiles.d/journal.logfiles" || die + fi +} + +src_install() { + default + + keepdir /var/lib/logcheck + + dodoc docs/README.* + doman docs/logtail.8 docs/logtail2.8 + + if use cron; then + exeinto /etc/cron.hourly + newexe "${FILESDIR}"/${PN}.cron ${PN} + DOC_CONTENTS="${DOC_CONTENTS}\n + \n + Read /etc/cron.hourly/logcheck.cron to activate hourly cron-based check!" + fi + + if use systemd; then + DOC_CONTENTS="${DOC_CONTENTS}\n + \n + To enable the systemd timer, run the following command:\n + systemctl enable --now logcheck.timer" + fi + + systemd_dounit "${FILESDIR}/${PN}."{service,timer} + newtmpfiles "${FILESDIR}/logcheck.tmpfiles" logcheck.conf + + readme.gentoo_create_doc + + fowners -R logcheck:logcheck /etc/logcheck /var/lib/logcheck +} + +pkg_postinst() { + tmpfiles_process logcheck.conf + + readme.gentoo_print_elog +} -- cgit v1.2.3