blob: d1317db6efe4106738e95693967d291ad09a3134 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE='ncurses'
DISTUTILS_SINGLE_IMPL=1
inherit distutils-r1
DESCRIPTION="A ncurses-based status monitor for Tor relays"
HOMEPAGE="http://www.atagar.com/arm/"
SRC_URI="http://www.atagar.com/arm/resources/static/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86 ~x86-fbsd"
IUSE=""
# Note: While we depend on net-misc/tor, we strictly speaking
# don't have to because it could run on a different machine.
RDEPEND="
>=net-misc/tor-0.2.1.27
app-admin/sudo
sys-process/lsof
net-dns/bind-tools
virtual/man"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${PN}"
python_prepare_all() {
python_fix_shebang .
distutils-r1_python_prepare_all
}
python_install() {
distutils-r1_python_install \
--docPath "${EPREFIX}/usr/share/doc/${PF}"
sed -i -e "s:python:${EPYTHON}:" "${ED}"usr/bin/arm || die
}
pkg_postinst() {
elog "Some graphing data issues have been noted in testing"
elog "when run as root. It is not recommended to run arm as"
elog "root until those issues have been isolated and fixed."
elog
elog "Trouble with graphs under app-misc/screen? Try:"
elog 'TERM="rxvt-unicode" arm'
}
|