From 9b2de194de0bc01d410ff9d3619d03ac53eb8d2b Mon Sep 17 00:00:00 2001 From: Amy Liffey Date: Sun, 6 Aug 2017 17:41:08 +0200 Subject: app-admin/fetchlog: eapi bump to 6 Package-Manager: Portage-2.3.6, Repoman-2.3.1 --- app-admin/fetchlog/fetchlog-1.4-r1.ebuild | 42 +++++++++++++++++++++++++++++++ app-admin/fetchlog/fetchlog-1.4.ebuild | 40 ----------------------------- 2 files changed, 42 insertions(+), 40 deletions(-) create mode 100644 app-admin/fetchlog/fetchlog-1.4-r1.ebuild delete mode 100644 app-admin/fetchlog/fetchlog-1.4.ebuild (limited to 'app-admin/fetchlog') diff --git a/app-admin/fetchlog/fetchlog-1.4-r1.ebuild b/app-admin/fetchlog/fetchlog-1.4-r1.ebuild new file mode 100644 index 000000000000..0893accd6e63 --- /dev/null +++ b/app-admin/fetchlog/fetchlog-1.4-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2017 Gentoo Foundation +# 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 ~x86 ~ppc64" + +IUSE="snmp" + +RDEPEND="snmp? ( + >=dev-perl/Net-SNMP-4.0.1-r2 + >=net-analyzer/net-snmp-5.0.6 + )" + +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 +} + +src_compile() { + # Links the .c file straight to the binary + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${LDFLAGS}" +} + +src_install() { + dodoc CHANGES README* + dodoc *cfg* + dobin fetchlog + doman fetchlog.1 +} diff --git a/app-admin/fetchlog/fetchlog-1.4.ebuild b/app-admin/fetchlog/fetchlog-1.4.ebuild deleted file mode 100644 index e302d890cccd..000000000000 --- a/app-admin/fetchlog/fetchlog-1.4.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -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 ~x86 ~ppc64" - -IUSE="snmp" - -RDEPEND="snmp? ( - >=dev-perl/Net-SNMP-4.0.1-r2 - >=net-analyzer/net-snmp-5.0.6 - )" - -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 -} - -src_compile() { - # Links the .c file straight to the binary - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${LDFLAGS}" || die -} - -src_install() { - dodoc CHANGES README* - dodoc *cfg* - dobin fetchlog - doman fetchlog.1 -} -- cgit v1.2.3-65-gdbad