66 lines
1.5 KiB
Bash
66 lines
1.5 KiB
Bash
# Copyright 1999-2015 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI="5"
|
|
|
|
PYTHON_COMPAT=( python2_7 )
|
|
|
|
inherit eutils python-r1
|
|
|
|
MY_PN="Nagstamon"
|
|
MY_P="${MY_PN}-${PV/_}"
|
|
MY_SHA="b7a91e68ca93ead4e5cfef22e2226c1ff9c7b52c"
|
|
|
|
DESCRIPTION="Nagstamon is a Nagios status monitor for a systray and displays a realtime status of a Nagios box"
|
|
HOMEPAGE="http://nagstamon.sourceforge.net"
|
|
SRC_URI="https://github.com/HenriWahl/${PN}/archive/${MY_SHA}.tar.gz -> ${MY_PN}-${MY_SHA}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="gnome sound"
|
|
|
|
DEPEND=""
|
|
RDEPEND="dev-python/pygobject:2
|
|
dev-python/pygtk
|
|
dev-python/lxml
|
|
dev-python/beautifulsoup:python-2
|
|
gnome-base/librsvg
|
|
dev-python/keyring
|
|
gnome? ( dev-python/egg-python )
|
|
sound? ( media-sound/sox )"
|
|
|
|
S="${WORKDIR}/${MY_PN}-${MY_SHA}/Nagstamon"
|
|
|
|
src_prepare() {
|
|
epatch "${FILESDIR}/nagstamon-0.9.11_rc1-resources.patch"
|
|
|
|
rm Nagstamon/resources/LICENSE
|
|
}
|
|
|
|
src_install() {
|
|
# setup.py is broken
|
|
cd Nagstamon/
|
|
|
|
doman resources/nagstamon.1
|
|
rm resources/nagstamon.1
|
|
|
|
newbin ../nagstamon.py nagstamon
|
|
|
|
insinto /usr/share/${PN}/resources
|
|
doins resources/*
|
|
|
|
domenu "${FILESDIR}"/${PN}.desktop
|
|
|
|
nagstamon_install() {
|
|
insinto $(python_get_sitedir)/${MY_PN}
|
|
doins {GUI,Config,Objects,Custom,Actions}.py
|
|
touch "${D}/$(python_get_sitedir)/${MY_PN}/__init__.py" || die
|
|
doins -r Server/ thirdparty/
|
|
}
|
|
|
|
python_foreach_impl nagstamon_install
|
|
|
|
python_replicate_script "${D}/usr/bin/nagstamon"
|
|
}
|