1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python2_7 )
9 inherit python-single-r1 systemd
11 DESCRIPTION="Daemon for monitoring and adaptive tuning of system devices"
12 HOMEPAGE="https://fedorahosted.org/tuned/"
13 SRC_URI="https://fedorahosted.org/releases/t/u/tuned/${P}.tar.bz2"
17 KEYWORDS="~amd64 ~x86"
20 COMMON_DEPEND="${PYTHON_DEPS}
21 dev-python/configobj[${PYTHON_USEDEP}]
22 dev-python/decorator[${PYTHON_USEDEP}]
23 dev-python/pyudev[${PYTHON_USEDEP}]
25 DEPEND="${COMMON_DEPEND}"
26 RDEPEND="${COMMON_DEPEND}
31 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
35 -e "/^UNITDIR = /s:\$(shell rpm --eval '%{_unitdir}'):$(systemd_get_unitdir):" \
36 -e "/\$(DESTDIR)\/run\/tuned/d" \
42 newinitd "${FILESDIR}"/tuned.initd tuned
44 python_fix_shebang "${ED}"