summaryrefslogtreecommitdiff
blob: 630d434dea3f9b85c57c344bd0e0ac3aa6dfd766 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"

PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"

inherit distutils

DESCRIPTION="Panel applet for a local or remote monitorix installation"
HOMEPAGE="http://www.monitorix.org/"
SRC_URI="http://www.monitorix.org/${PN}/${P}.tar.gz"

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

RDEPEND="dev-python/pygtk"

src_install() {
	distutils_src_install

	installation() {
		insinto "$(python_get_sitedir)/${PN}"
		doins "${FILESDIR}/config.py" || die "doins failed"
	}
	python_execute_function installation
}

pkg_postinst() {
	distutils_pkg_postinst

	elog "If you want to monitor your local box you also need to emerge "
	elog "www-misc/monitorix"
}