commit: 6fdd77217646cb1d2396bdf9bce3624e54fdfdb1 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Feb 3 21:44:02 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Feb 3 22:11:53 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fdd7721
sys-apps/logwatch: add 7.14 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-apps/logwatch/Manifest | 1 + sys-apps/logwatch/logwatch-7.14.ebuild | 95 ++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/sys-apps/logwatch/Manifest b/sys-apps/logwatch/Manifest index 0838fe08394d..6ca6bb79f2ca 100644 --- a/sys-apps/logwatch/Manifest +++ b/sys-apps/logwatch/Manifest @@ -1,2 +1,3 @@ DIST logwatch-7.12.tar.gz 509278 BLAKE2B 1ddca4edf74a277789964350c3e2090306174ada9a51e7792c042ca19cbc5b2df5b4845323c3fb6dda887876b4f6d8b2f36ea8317d5b8dcac19a5502fb5bae82 SHA512 defe15b6fb32e5db0ad67280b6e75769f76b635499528ed1f5e666e6dc2632db3bca32c831e76fa62d99d4f2848d97c72219c44a90fc2f4b694f3e90dbda2e49 DIST logwatch-7.13.tar.gz 514042 BLAKE2B 32d79258af0924b0d62c0f59dc47e3e4e27579004972b1fd03866fee25930b0ee60c168a154d5343dc5c870f7ab9f14fc4736ff50f99ebd1e477098b67fff772 SHA512 45cd38ee89d09d02f2cf37fc08e6f2965c4dc88e7ec4540518b63ab7c51bd89fd60a7dff4146ab09230178c1413224978a07a356a29a6007d0a34610357e8722 +DIST logwatch-7.14.tar.gz 518727 BLAKE2B 1d6e446ad612416182c2ff207ffc4d87e5539b952b7d9551dc5980baec7a588c58b76383a8c69e2a4f704961f35635ba73652a8ba7b633f4d59448131e2b5f3c SHA512 153510743d69187ad63525506be0ec72ae31150b93027b36644b7e05ed21ebf4578d1cc8930f967e667ac77288933b9be0153a8b28228857aee25dbf928ef27f diff --git a/sys-apps/logwatch/logwatch-7.14.ebuild b/sys-apps/logwatch/logwatch-7.14.ebuild new file mode 100644 index 000000000000..d98090d39d0d --- /dev/null +++ b/sys-apps/logwatch/logwatch-7.14.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit tmpfiles + +DESCRIPTION="Analyzes and Reports on system logs" +HOMEPAGE="https://sourceforge.net/projects/logwatch/" + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://git.code.sf.net/p/logwatch/git" + inherit git-r3 +else + SRC_URI="https://downloads.sourceforge.net/${PN}/${P}/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="selinux" + +RDEPEND=" + dev-lang/perl + dev-perl/Date-Calc + dev-perl/Date-Manip + dev-perl/Tie-IxHash + dev-perl/Sys-CPU + dev-perl/Sys-MemInfo + virtual/cron + virtual/mta + virtual/mailx + selinux? ( sec-policy/selinux-logwatch ) +" + +src_install() { + dodir /usr/share/logwatch/lib + dodir /usr/share/logwatch/scripts/services + dodir /usr/share/logwatch/scripts/shared + dodir /usr/share/logwatch/default.conf/logfiles + dodir /usr/share/logwatch/default.conf/services + dodir /usr/share/logwatch/default.conf/html + keepdir /etc/logwatch + + # logwatch.pl requires cache dir (bug #607668) + newtmpfiles "${FILESDIR}"/logwatch.tmpfile ${PN}.conf + + newsbin scripts/logwatch.pl logwatch.pl + + exeinto /usr/share/logwatch/lib + doexe lib/*.pm + + exeinto /usr/share/logwatch/scripts/services + doexe scripts/services/* + + exeinto /usr/share/logwatch/scripts/shared + doexe scripts/shared/* + + insinto /usr/share/logwatch/default.conf + doins conf/logwatch.conf + + insinto /usr/share/logwatch/default.conf/logfiles + doins conf/logfiles/* + + insinto /usr/share/logwatch/default.conf/services + doins conf/services/* + + insinto /usr/share/logwatch/default.conf/html + doins conf/html/* + + # Make sure logwatch is run before anything else (bug #100243) + exeinto /etc/cron.daily + newexe "${FILESDIR}"/logwatch 00-logwatch + + doman logwatch.8 + dodoc README HOWTO-Customize-LogWatch + + # Do last due to insopts modification. + insinto /usr/share/logwatch/scripts/logfiles + insopts -m755 + doins -r scripts/logfiles/* +} + +pkg_postinst() { + # Migration from /etc/cron.daily/logwatch -> /etc/cron.daily/00-logwatch (bug #100243) + if [[ -e ${ROOT}/etc/cron.daily/logwatch ]] ; then + local md5=$(md5sum "${ROOT}"/etc/cron.daily/logwatch) + [[ ${md5} == "edb003cbc0686ed4cf37db16025635f3" ]] \ + && rm -f "${ROOT}"/etc/cron.daily/logwatch \ + || ewarn "You have two logwatch files in /etc/cron.daily/" + fi + + # Trigger cache dir creation to allow immediate use of logwatch (bug #607668) + tmpfiles_process ${PN}.conf +}
