Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/tuned/
Date: Tue, 20 Nov 2018 06:30:22
Message-Id: 1542695402.ced5658b20ceb2b385067f4dc3c5546eb50929c3.dlan@gentoo
1 commit: ced5658b20ceb2b385067f4dc3c5546eb50929c3
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 20 06:28:21 2018 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 20 06:30:02 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ced5658b
7
8 sys-apps/tuned: bump to version 2.10.0
9
10 1) only force to make it work with python2,
11 fail to find 'procfs' in python3
12 2) drop x86 keyword due to dev-python/python-linux-procfs
13
14 Closes: https://bugs.gentoo.org/671052
15 Package-Manager: Portage-2.3.51, Repoman-2.3.12
16 Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
17
18 sys-apps/tuned/Manifest | 1 +
19 sys-apps/tuned/tuned-2.10.0.ebuild | 58 ++++++++++++++++++++++++++++++++++++++
20 2 files changed, 59 insertions(+)
21
22 diff --git a/sys-apps/tuned/Manifest b/sys-apps/tuned/Manifest
23 index 38b23aafddb..1b78512c74a 100644
24 --- a/sys-apps/tuned/Manifest
25 +++ b/sys-apps/tuned/Manifest
26 @@ -1,2 +1,3 @@
27 +DIST tuned-2.10.0.tar.gz 160254 BLAKE2B 0a09b4b870ec153adc62de7811af561ddb3967d459b1d5e8b6f02c5ac036ed170ad3368d18fc1b3fd40649335035cce971a54e1eda8745c77e836a3b2d892a83 SHA512 e0674533f17ac27cd3647808cda1f51d9905f563521af8cb3ffd1854098d6e2ca1adac82e542e6bdf86cce7e659303464eac50b8823167360783a75843d02a60
28 DIST tuned-2.7.0.tar.bz2 107541 BLAKE2B b26924a091fd78bbc7e61c8a45b49808d132eb5ebd3fdc00f96be7eaddcffd88183fa59595a29e2c402b2c434bfdb706601d397c2ebca9a5822c6a3416373465 SHA512 ce09dd854e89762fa376f7f63a59feb384940b5dbc5ad74370b33bbda3f060f09e79d2988de3535b072ad749ab7be43ccaaa46a343a9df50eec6c40d7ab85d55
29 DIST tuned-2.7.1.tar.bz2 107471 BLAKE2B c9259ee5ce502100edc7c537f6857de3a6af4af0be1773e0c9422c10de16b4a513d514532da26764b0a743f943577d527919f329ff48a012e269fd2a0ac59f10 SHA512 4a4785e3d20ed7f1c2969066676f5fa3d8286b500de1c63169d745e701e1410092d29429d25c13c3515d37ef73dd297945d69db176d693d4152bfbe9ba626833
30
31 diff --git a/sys-apps/tuned/tuned-2.10.0.ebuild b/sys-apps/tuned/tuned-2.10.0.ebuild
32 new file mode 100644
33 index 00000000000..133b2755a18
34 --- /dev/null
35 +++ b/sys-apps/tuned/tuned-2.10.0.ebuild
36 @@ -0,0 +1,58 @@
37 +# Copyright 1999-2018 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=6
41 +
42 +PYTHON_COMPAT=( python2_7 )
43 +
44 +inherit python-single-r1 systemd
45 +
46 +DESCRIPTION="Daemon for monitoring and adaptive tuning of system devices"
47 +HOMEPAGE="https://fedorahosted.org/tuned/"
48 +SRC_URI="https://github.com/redhat-performance/tuned/archive/v${PV}.tar.gz -> ${P}.tar.gz"
49 +
50 +LICENSE="GPL-2"
51 +SLOT="0"
52 +KEYWORDS="~amd64"
53 +
54 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
55 +
56 +CDEPEND="
57 + dev-python/configobj[${PYTHON_USEDEP}]
58 + dev-python/decorator[${PYTHON_USEDEP}]
59 + dev-python/pyudev[${PYTHON_USEDEP}]
60 + dev-python/dbus-python[${PYTHON_USEDEP}]
61 + dev-python/pygobject:3[${PYTHON_USEDEP}]
62 + dev-python/python-linux-procfs[${PYTHON_USEDEP}]"
63 +
64 +DEPEND="
65 + ${CDEPEND}"
66 +
67 +RDEPEND="
68 + ${CDEPEND}
69 + sys-apps/dbus
70 + sys-apps/ethtool
71 + sys-power/powertop
72 + sys-process/procps
73 + dev-util/systemtap"
74 +
75 +RESTRICT="test"
76 +
77 +src_prepare() {
78 + default
79 +
80 + sed -i \
81 + -e "/^PYTHON/s/= python3/= python2/g" \
82 + -e "/^DOCDIR/s/$/&\-\$(VERSION)/g" \
83 + -e "/\$(DESTDIR)\/run\/tuned/d" \
84 + -e "/\$(DESTDIR)\/var\/lib\/tuned/d" \
85 + -e "/\$(DESTDIR)\/var\/log\/tuned/d" \
86 + Makefile || die
87 +}
88 +
89 +src_install() {
90 + default
91 +
92 + newinitd "${FILESDIR}/${PN}.initd" "${PN}"
93 + python_fix_shebang "${ED}"
94 +}