You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.2 KiB
52 lines
1.2 KiB
8 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
8 years ago
|
EAPI=6
|
||
11 years ago
|
|
||
|
inherit user
|
||
|
|
||
10 years ago
|
DESCRIPTION="Mails anomalies in the system logfiles to the administrator"
|
||
11 years ago
|
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="!app-admin/logsentry
|
||
|
app-misc/lockfile-progs
|
||
|
dev-lang/perl
|
||
|
dev-perl/mime-construct
|
||
|
virtual/mailx
|
||
|
${DEPEND}"
|
||
|
|
||
|
pkg_setup() {
|
||
|
enewgroup logcheck
|
||
|
enewuser logcheck -1 -1 -1 logcheck
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
emake DESTDIR="${D}" install
|
||
|
|
||
|
# 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
|
||
|
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
|
||
|
|
||
8 years ago
|
elog "Please read the guide at https://wiki.gentoo.org/wiki/Logcheck"
|
||
11 years ago
|
elog "for installation instructions."
|
||
|
}
|