summaryrefslogtreecommitdiff
blob: 5413be52ef44e4598a7f2e02998a32f1f4ced68e (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-process/atop/atop-1.13.ebuild,v 1.3 2005/05/07 06:26:45 vapier Exp $

ATOP_INIT_VERSION="1.9"
ATOP_INIT_SCRIPT=${PN}-${ATOP_INIT_VERSION}-initscript

DESCRIPTION="Resource-specific view of processes"
HOMEPAGE="http://freshmeat.net/releases/112061/"
SRC_URI="ftp://ftp.atcomputing.nl/pub/tools/linux/${P}.tar.gz
	mirror://gentoo/${PN}-${ATOP_INIT_VERSION}-initscript"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

DEPEND="sys-process/acct"

src_unpack() {
	unpack ${A}
	cd "${S}"
	mv "${S}"/atop.init "${S}"/atop.init.old
	cp "${DISTDIR}/${ATOP_INIT_SCRIPT}" "${S}"/atop.init
	chmod a+rx atop.init
}

src_compile() {
	emake || die
}

src_install() {
	make DESTDIR="${D}" INIPATH=/etc/init.d install || die
	dodoc README
}