diff options
author | Pacho Ramos <pacho@gentoo.org> | 2018-04-14 20:57:18 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2018-04-14 20:58:21 +0200 |
commit | ad84575dc52e9b5e0c5e4bf93eaa055745767fdf (patch) | |
tree | 5fbc09de6c2ff9497e135508ffdaf735ce03f961 /app-admin | |
parent | app-text/openjade: Drop old (diff) | |
download | gentoo-ad84575dc52e9b5e0c5e4bf93eaa055745767fdf.tar.gz gentoo-ad84575dc52e9b5e0c5e4bf93eaa055745767fdf.tar.bz2 gentoo-ad84575dc52e9b5e0c5e4bf93eaa055745767fdf.zip |
app-admin/logcheck: Handle /var/log/messages (#531524)
Package-Manager: Portage-2.3.28, Repoman-2.3.9
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/logcheck/logcheck-1.3.18-r1.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/app-admin/logcheck/logcheck-1.3.18-r1.ebuild b/app-admin/logcheck/logcheck-1.3.18-r1.ebuild new file mode 100644 index 000000000000..ef2a58258516 --- /dev/null +++ b/app-admin/logcheck/logcheck-1.3.18-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit readme.gentoo-r1 user + +DESCRIPTION="Mails anomalies in the system logfiles to the administrator" +HOMEPAGE="http://packages.debian.org/sid/logcheck" +SRC_URI="mirror://debian/pool/main/l/${PN}/${PN}_${PV}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +DEPEND="" +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. +" + +pkg_setup() { + enewgroup logcheck + enewuser logcheck -1 -1 -1 logcheck +} + +src_prepare() { + default + # Add /var/log/messages support, bug #531524 + echo "/var/log/messages" >> etc/logcheck.logfiles +} + +src_install() { + default + + # Do not install /var/lock, bug #449968 . Use rmdir to make sure + # the directories removed are empty. + rmdir "${D}/var/lock/logcheck" || die + rmdir "${D}/var/lock" || die + + keepdir /var/lib/logcheck + + readme.gentoo_create_doc + dodoc AUTHORS CHANGES CREDITS TODO docs/README.* + doman docs/logtail.8 docs/logtail2.8 + + exeinto /etc/cron.hourly + doexe "${FILESDIR}/${PN}.cron" +} + +pkg_postinst() { + chown -R logcheck:logcheck /etc/logcheck /var/lib/logcheck || die + readme.gentoo_print_elog +} |