mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-07 05:34:45 +02:00
Signed-off-by: Filip Kobierski <fkobi@pm.me> Closes: https://github.com/gentoo/gentoo/pull/40883 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
41 lines
794 B
Bash
41 lines
794 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="Displays the last new messages of a logfile"
|
|
HOMEPAGE="https://fetchlog.sourceforge.net/"
|
|
SRC_URI="https://downloads.sourceforge.net/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
|
|
)
|
|
"
|
|
|
|
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 "It requires USE=snmp in this package"
|
|
}
|