summaryrefslogtreecommitdiff
blob: de082fb0a55b45f9a15e06dcf07f527e9a854db5 (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
46
47
48
49
50
51
52
53
54
55
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/klive/klive-0.7-r2.ebuild,v 1.2 2005/10/15 23:25:09 josejx Exp $

inherit eutils

DESCRIPTION="Linux Kernel Live Usage Monitor"
HOMEPAGE="http://klive.cpushare.com/"
SRC_URI="http://klive.cpushare.com/downloads/${P}.tar.bz2"

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

DEPEND="dev-lang/python
		>=dev-python/twisted-2.0.0"

S=${WORKDIR}/${PN}

src_install() {
	enewuser klive -1 /bin/bash
	insinto /usr/share/${PN}
	doins client/klive.tac
	newinitd ${FILESDIR}/klive.init.d klive || die "init.d failed"
	dodoc README
}

pkg_postinst() {
	echo

	einfo "To start klive, use the init script, e.g.:"
	einfo " # /etc/init.d/klive start"
	echo

	einfo "You should add klive to your default runlevel so that it will be"
	einfo "started on on every bootup, e.g.:"
	einfo " # rc-update add klive default"
	echo

	ewarn "klive periodically submits basic information about the configuration of"
	ewarn "your running kernel to a 3rd-party server which is NOT controlled by"
	ewarn "Gentoo. This data is probably privately logged against your IP address."
	echo

	einfo "The data submitted is used to generate basic statistics which provide"
	einfo "insight as to how widely tested a particular kernel version is."
	einfo "These statistics are publically accessible at http://klive.cpushare.com"
	echo

	ewarn "If you have privacy/security concerns about the submission of this data"
	ewarn "and/or its public availability, unmerge this package now."
	echo
}