| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/collectl/collectl-3.6.1.ebuild,v 1.1 2012/02/23 07:40:42 radhermit Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
DESCRIPTION="light-weight performance monitoring tool capable of reporting interactively and logging to disk"
|
| 8 |
HOMEPAGE="http://collectl.sourceforge.net/"
|
| 9 |
SRC_URI="mirror://sourceforge/collectl/${P}.src.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="GPL-2 Artistic"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="~alpha ~amd64 ~ia64 ~x86"
|
| 14 |
IUSE=""
|
| 15 |
|
| 16 |
RDEPEND=">=dev-lang/perl-5.8.8
|
| 17 |
virtual/perl-Time-HiRes
|
| 18 |
>=dev-perl/Archive-Zip-1.20
|
| 19 |
sys-apps/ethtool
|
| 20 |
sys-apps/pciutils"
|
| 21 |
|
| 22 |
src_prepare() {
|
| 23 |
sed -i INSTALL -e "/^DOCDIR/s:doc/collectl:doc/${PF}:" || die
|
| 24 |
}
|
| 25 |
|
| 26 |
src_install() {
|
| 27 |
DESTDIR="${D}" bash -ex ./INSTALL || die
|
| 28 |
|
| 29 |
rm "${D}"/etc/init.d/* || die
|
| 30 |
newinitd "${FILESDIR}"/collectl.initd collectl
|
| 31 |
|
| 32 |
cd "${D}"/usr/share/doc/${PF} || die
|
| 33 |
dohtml *
|
| 34 |
rm -f ARTISTIC GPL COPYING *.html *.jpg *.css || die
|
| 35 |
}
|