summaryrefslogtreecommitdiff
blob: 0c118b1a4e6c6e10b7ddf43093b80c8ace257c7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit toolchain-funcs

DESCRIPTION="Displays the last new messages of a logfile"
HOMEPAGE="http://fetchlog.sourceforge.net/"
SRC_URI="mirror://sourceforge/fetchlog/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ~ppc64 x86"
IUSE="snmp"

RDEPEND="
	snmp? (
		>=dev-perl/Net-SNMP-4.0.1-r2
		>=net-analyzer/net-snmp-5.0.6
	)"
DEPEND=""

PATCHES=( "${FILESDIR}"/${PN}-1.4-fix-build-system.patch )

src_configure() {
	tc-export CC
}

src_install() {
	dobin fetchlog
	einstalldocs
	dodoc *cfg*
	doman fetchlog.1
}

pkg_preinst() {
	elog
	elog "This utility can be used together with Nagios"
	elog "To make use of these features you need to"
	elog "install net-analyzer/nagios."
	elog "This feature depends on SNMP, so make use you"
	elog "have 'snmp' in your USE flags"
	elog
}