diff options
Diffstat (limited to 'app-admin/logcheck/logcheck-1.3.23.ebuild')
-rw-r--r-- | app-admin/logcheck/logcheck-1.3.23.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/app-admin/logcheck/logcheck-1.3.23.ebuild b/app-admin/logcheck/logcheck-1.3.23.ebuild new file mode 100644 index 000000000000..98b1b7437edb --- /dev/null +++ b/app-admin/logcheck/logcheck-1.3.23.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit readme.gentoo-r1 + +DESCRIPTION="Mails anomalies in the system logfiles to the administrator" +HOMEPAGE="https://packages.debian.org/sid/logcheck" +SRC_URI="mirror://debian/pool/main/l/${PN}/${PN}_${PV}.tar.xz" +S="${WORKDIR}/${PN}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" + +DEPEND=" + acct-group/logcheck + acct-user/logcheck +" + +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 + + # 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 "${ED}/var/lock/logcheck" || die + rmdir "${ED}/var/lock" || die + + keepdir /var/lib/logcheck + + dodoc docs/README.* + doman docs/logtail.8 docs/logtail2.8 + + exeinto /etc/cron.hourly + doexe "${FILESDIR}"/logcheck.cron + + readme.gentoo_create_doc +} + +pkg_postinst() { + chown -R logcheck:logcheck /etc/logcheck /var/lib/logcheck || die + + readme.gentoo_print_elog +} |