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/, sys-apps/tuned/files/
Date: Tue, 26 Jul 2016 06:37:52
Message-Id: 1469514180.cdaadf65e31a8b72908898fd9ee1da7108fdcc42.dlan@gentoo
1 commit: cdaadf65e31a8b72908898fd9ee1da7108fdcc42
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 26 06:23:00 2016 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 26 06:23:00 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdaadf65
7
8 sys-apps/tuned: version bump 2.7.0
9
10 Package-Manager: portage-2.3.0
11
12 sys-apps/tuned/Manifest | 1 +
13 sys-apps/tuned/files/tuned-2.7.0-upstream.patch | 39 +++++++++++++++++++
14 sys-apps/tuned/tuned-2.7.0.ebuild | 50 +++++++++++++++++++++++++
15 3 files changed, 90 insertions(+)
16
17 diff --git a/sys-apps/tuned/Manifest b/sys-apps/tuned/Manifest
18 index 240ac2f..a59333d 100644
19 --- a/sys-apps/tuned/Manifest
20 +++ b/sys-apps/tuned/Manifest
21 @@ -1 +1,2 @@
22 DIST tuned-2.6.0.tar.bz2 98362 SHA256 945c785b8020960d2665b570b3168c366e6b82399801952aea54b4d178dac876 SHA512 da818cb6c04e10d97b7eb52fb37500128ca5b37c79428d1b84578d4147507a210052c395f523f91907a112e282a47f9a5d4745fe2960471f42d5d09f87a3c57d WHIRLPOOL 23457c5e161675f90326060d485626f2d176e6c42b34f21fceecf7299c21607b8537ff741742015c0045c8150ce379a7274b11da547581e18bea97671c1b4045
23 +DIST tuned-2.7.0.tar.bz2 107541 SHA256 8f50718264690732504486a65931d7ef558d4d43da9a86bc6f5c6855e3a7e448 SHA512 ce09dd854e89762fa376f7f63a59feb384940b5dbc5ad74370b33bbda3f060f09e79d2988de3535b072ad749ab7be43ccaaa46a343a9df50eec6c40d7ab85d55 WHIRLPOOL 272e77e429097f9c14beb31f5d911762837008a0e8affeb9abbcaf03172edd8296064b1926ff56f0c1272a9a51d88cf9044ee4b45676844cb249d5be1865983c
24
25 diff --git a/sys-apps/tuned/files/tuned-2.7.0-upstream.patch b/sys-apps/tuned/files/tuned-2.7.0-upstream.patch
26 new file mode 100644
27 index 0000000..f864433
28 --- /dev/null
29 +++ b/sys-apps/tuned/files/tuned-2.7.0-upstream.patch
30 @@ -0,0 +1,39 @@
31 +diff --git a/tuned-gui.py b/tuned-gui.py
32 +index 0555404..b169dec 100755
33 +--- a/tuned-gui.py
34 ++++ b/tuned-gui.py
35 +@@ -89,7 +89,7 @@ class Base(object):
36 + try:
37 + self.controller = \
38 + tuned.admin.DBusController(consts.DBUS_BUS,
39 +- consts.DBUS_OBJECT, consts.DBUS_INTERFACE)
40 ++ consts.DBUS_INTERFACE, consts.DBUS_OBJECT)
41 + self.controller.is_running()
42 + except tuned.admin.exceptions.TunedAdminDBusException, ex:
43 + response = self.tuned_daemon_exception_dialog.run()
44 +diff --git a/tuned.spec b/tuned.spec
45 +index 3a2dcec..1b46daf 100644
46 +--- a/tuned.spec
47 ++++ b/tuned.spec
48 +@@ -334,8 +334,6 @@ fi
49 + %changelog
50 + * Tue Jul 19 2016 Jaroslav Škarvada <jskarvad@××××××.com> - 2.7.0-1
51 + - new-release
52 +- - rebase tuned to latest upstream
53 +- resolves: rhbz#1289048
54 + - gui: fixed save profile
55 + resolves: rhbz#1242491
56 + - tuned-adm: added --ignore-missing parameter
57 +diff --git a/tuned/admin/admin.py b/tuned/admin/admin.py
58 +index ad501c0..cbdd1be 100644
59 +--- a/tuned/admin/admin.py
60 ++++ b/tuned/admin/admin.py
61 +@@ -98,7 +98,7 @@ class Admin(object):
62 +
63 + def _action_list(self):
64 + self._print_profiles(self._profiles_locator.get_known_names_summary())
65 +- self._action_dbus_active()
66 ++ self._action_active()
67 + return True
68 +
69 + def _dbus_get_active_profile(self):
70
71 diff --git a/sys-apps/tuned/tuned-2.7.0.ebuild b/sys-apps/tuned/tuned-2.7.0.ebuild
72 new file mode 100644
73 index 0000000..33e0073
74 --- /dev/null
75 +++ b/sys-apps/tuned/tuned-2.7.0.ebuild
76 @@ -0,0 +1,50 @@
77 +# Copyright 1999-2016 Gentoo Foundation
78 +# Distributed under the terms of the GNU General Public License v2
79 +# $Id$
80 +
81 +EAPI=5
82 +
83 +PYTHON_COMPAT=( python2_7 )
84 +
85 +inherit python-single-r1 systemd
86 +
87 +DESCRIPTION="Daemon for monitoring and adaptive tuning of system devices"
88 +HOMEPAGE="https://fedorahosted.org/tuned/"
89 +SRC_URI="https://fedorahosted.org/releases/t/u/tuned/${P}.tar.bz2"
90 +
91 +LICENSE="GPL-2"
92 +SLOT="0"
93 +KEYWORDS="~amd64 ~x86"
94 +IUSE=""
95 +
96 +COMMON_DEPEND="${PYTHON_DEPS}
97 + dev-python/configobj[${PYTHON_USEDEP}]
98 + dev-python/decorator[${PYTHON_USEDEP}]
99 + dev-python/pyudev[${PYTHON_USEDEP}]
100 + dev-python/dbus-python[${PYTHON_USEDEP}]
101 + dev-python/pygobject:3[${PYTHON_USEDEP}]
102 +"
103 +DEPEND="${COMMON_DEPEND}"
104 +RDEPEND="${COMMON_DEPEND}
105 + sys-apps/dbus
106 + sys-power/powertop
107 + dev-util/systemtap
108 +"
109 +
110 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
111 +
112 +src_prepare() {
113 + epatch "${FILESDIR}"/${P}-upstream.patch
114 +
115 + sed -i \
116 + -e "/^UNITDIR = /s:\$(shell rpm --eval '%{_unitdir}'):$(systemd_get_unitdir):" \
117 + -e "/\$(DESTDIR)\/run\/tuned/d" \
118 + Makefile ||die
119 +}
120 +
121 +src_install() {
122 + default
123 + newinitd "${FILESDIR}"/tuned.initd tuned
124 +
125 + python_fix_shebang "${ED}"
126 +}