1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="Mails anomalies in the system logfiles to the administrator"
10 HOMEPAGE="http://packages.debian.org/sid/logcheck"
11 SRC_URI="mirror://debian/pool/main/l/${PN}/${PN}_${PV}.tar.xz"
15 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
19 RDEPEND="!app-admin/logsentry
20 app-misc/lockfile-progs
22 dev-perl/mime-construct
28 enewuser logcheck -1 -1 -1 logcheck
32 emake DESTDIR="${D}" install
34 # Do not install /var/lock, bug #449968 . Use rmdir to make sure
35 # the directories removed are empty.
36 rmdir "${D}/var/lock/logcheck" || die
37 rmdir "${D}/var/lock" || die
39 keepdir /var/lib/logcheck
40 dodoc AUTHORS CHANGES CREDITS TODO docs/README.*
41 doman docs/logtail.8 docs/logtail2.8
43 exeinto /etc/cron.hourly
44 doexe "${FILESDIR}/${PN}.cron"
48 chown -R logcheck:logcheck /etc/logcheck /var/lib/logcheck || die
50 elog "Please read the guide ad https://www.gentoo.org/doc/en/logcheck.xml"
51 elog "for installation instructions."