diff options
Diffstat (limited to 'sys-apps/tuned')
-rw-r--r-- | sys-apps/tuned/Manifest | 12 | ||||
-rw-r--r-- | sys-apps/tuned/files/tuned-2.7.0-upstream.patch | 39 | ||||
-rw-r--r-- | sys-apps/tuned/files/tuned-2.7.1-makefile-rpm.patch | 19 | ||||
-rw-r--r-- | sys-apps/tuned/files/tuned-2.7.1-sysctl.patch | 11 | ||||
-rw-r--r-- | sys-apps/tuned/files/tuned.initd | 16 | ||||
-rw-r--r-- | sys-apps/tuned/metadata.xml | 12 | ||||
-rw-r--r-- | sys-apps/tuned/tuned-2.7.0.ebuild | 49 | ||||
-rw-r--r-- | sys-apps/tuned/tuned-2.7.1-r2.ebuild | 51 | ||||
-rw-r--r-- | sys-apps/tuned/tuned-2.7.1-r3.ebuild | 58 |
9 files changed, 267 insertions, 0 deletions
diff --git a/sys-apps/tuned/Manifest b/sys-apps/tuned/Manifest new file mode 100644 index 000000000000..c290f8315f1b --- /dev/null +++ b/sys-apps/tuned/Manifest @@ -0,0 +1,12 @@ +AUX tuned-2.7.0-upstream.patch 1261 SHA256 5f5bcc075114f8fc55f34519f341752bff43ee75137f871a4eca3168d79b8895 SHA512 f2002184dd1d9b6f40c90ba5d205e66ccae0a546ab20fcf8b76d703ab712f7871d5d0c0bf5ab025dffab861e066a991e0304894c9607fecd4a8102fa3973d8a4 WHIRLPOOL e90cf897c298c306069a603cfc6a4e3a15def5cebad2d79d5ec07eb796132184688161d55c176c276aed6412143bcf1d7c7ea632d1fade33a41609a1ad8847e7 +AUX tuned-2.7.1-makefile-rpm.patch 885 SHA256 7f954456f0fc09d884f445e49d8e75c62eb051d5cd11a72e5a380dd9a08418a0 SHA512 51b8b299c15aa225f4de473150a05acfe2b669c494f4ab364c0e2f278282b7b64945963623cc778c9742d175efa875ca8c1957e50a55536598dd7c9ae8959636 WHIRLPOOL da8cb01ae1608145b6f22d734b62af8244f232e261437b75d478fd318686f75522dde0f4b6a92fbfd3db82bbe2230f938e152b04aa52ebad006e3d04ca82e97a +AUX tuned-2.7.1-sysctl.patch 328 SHA256 e4ab351badf6d94ab31c229f25c8e7564c6f209729190dd5bf79780386e39946 SHA512 7c6fa6a9425e9955c019ad192476d802cf7870e33ca713f29ec203d157f495f3cf62c9965faddf5db39113285e51e5eb03d72111fab654efc8fbb8d38f08e75c WHIRLPOOL d3d67327541f8793cb0010ef167cca3be66cbbbb5792ec721a1426ac7cfdcc38c73f7c40feeea18c9273c8e672ab0b2d02da2a8faa2ee0461abc76caf47fa46b +AUX tuned.initd 421 SHA256 ee234417a3db82a1129a8fffccf3028da97ee21fbf802ecdc0e21fbbe5145883 SHA512 0123e60def031887040df8690222cc553d93b3c5eb7413e19f722ef04ccf2aeb6468709f66866d432d4d0b0c0ed6875929f1292fde8ad18c4a6b589d1b40fab4 WHIRLPOOL 9c5a2f0894b447889f49f54e0ec3f51d4c87f2a9829adb10f220415bd23255a26da1b44eb894e2d31dbca93fcf60d8287976d3be1bd29052fbccdc516d442bc8 +DIST tuned-2.7.0.tar.bz2 107541 SHA256 8f50718264690732504486a65931d7ef558d4d43da9a86bc6f5c6855e3a7e448 SHA512 ce09dd854e89762fa376f7f63a59feb384940b5dbc5ad74370b33bbda3f060f09e79d2988de3535b072ad749ab7be43ccaaa46a343a9df50eec6c40d7ab85d55 WHIRLPOOL 272e77e429097f9c14beb31f5d911762837008a0e8affeb9abbcaf03172edd8296064b1926ff56f0c1272a9a51d88cf9044ee4b45676844cb249d5be1865983c +DIST tuned-2.7.1.tar.bz2 107471 SHA256 03333eda9f3744ec214b1c20d0f79528a6438dafd5c79ff459b411414491802d SHA512 4a4785e3d20ed7f1c2969066676f5fa3d8286b500de1c63169d745e701e1410092d29429d25c13c3515d37ef73dd297945d69db176d693d4152bfbe9ba626833 WHIRLPOOL 847d37179190565299350796b7f548b342db309d6cadd7856b575c614cee38dcbcf856079fb59a565b536fadfb49c7ff2ab7068b38dab4a8ce12868baa16d968 +EBUILD tuned-2.7.0.ebuild 1110 SHA256 467f0c6ff7b09170ab03c2f00e35fd3ba309a3a9c4da5f6ddebd520e5f43f9f1 SHA512 f745d80d4c25138f051764fa48af016c76cf9fac770b19b10f8901dcc010040ffaeb7d137e3685e90dbda331cecf48f0cf0abac97a95473f8f0cc0abdae0206e WHIRLPOOL 3804e3778aeae8aaae34ae56ad68f861dbad0e5d79b066d775cf133bbdb5ad3da53032703e496d03a969e79f16d30c9fa0731b7de0a26d8cd0335ff0e469f1f6 +EBUILD tuned-2.7.1-r2.ebuild 1109 SHA256 07471369e65f78342bff689c028e53780f1894fdde747a4fd502216cbd5617b1 SHA512 4b4ef8ca04d2451bc084fe6654676ea50eb707df880fb3989d88d7728c73f5f2dc38a1d855a28a141eb4cc2d7d6f9e7087c291689504854a6946d8ffdd1ef1cc WHIRLPOOL 8b762a21030290be52d06c1c7ac620e6adb24a6824acfc4edfe7db7ae4c299154a87b96da78084ce09d21972a8a1639a100480d3cfceb84c0a6f299e59024965 +EBUILD tuned-2.7.1-r3.ebuild 1100 SHA256 c71e39beecfeeb6363f42d9afb1d8e389d5e0b5af2b3c4b11137fa649fd83166 SHA512 b490acead79906d78289c354ef0e3ca7cb4f774c6915e010a386d1b80e27583633c918c6eb6e68222357001129bb86a3534ff7cceb396579712f6c373b5074b3 WHIRLPOOL 6d71f253b695bd7e797a03e9cd9db6f8129e6fa96fa33ed178445a6c49383e961462c9ea45606287c1061a848e8623a3f322f5714262706592ba415e9ea190b5 +MISC ChangeLog 4631 SHA256 018e86db09080547e7e7aa0acfd0fb3b62d3a5baad6266818ff44866656e99e2 SHA512 5fdac662c8e8488ab727213c6a58ffe4e3c765178acc4522b64322a81e1ab16eefc9ef9971d591cea6a609eda291f1a55a54cf8761a51ede647d285bffa74546 WHIRLPOOL c91d59543e9acd7bd3099f8ae974d4ee3b34d361d49cd765b765eb8c9c13ae7bda171ceb3f158c4f42b0098ab6db843fedda75025426e752adf5b2590f4ec48c +MISC ChangeLog-2015 759 SHA256 42d87f48bf24bc53ceb24b8a56fa171ea31488d68a8fffc5457085b1ec61e2c2 SHA512 3639341864212fdae6f6ea813689ef6db0b30c1318b780b6084a704699b922624af799e2420e26c31d67c2c663cd824aec4e095c3d78bb8e0d58c47811b6434b WHIRLPOOL 82df65fd1c98ae04b252d310d054fcf98824ed5a7255e93c8365b15d7138f2f54d27a7a6107cc4fa7ac3b775ea198215fb9c4024dc935bfabc7bd63937d35131 +MISC metadata.xml 388 SHA256 d14d4b24ddce3521072439405176da1fdd9fba6e19f1cd1a7078bd3232ffd9f0 SHA512 6f25c8d915777f95c6f134ba77006290b2d4c02ba70c7254ce7225062da042d8c9f7eb312f842a2988866804ff5069f5f3871e54f97d23bfac936da994d456ea WHIRLPOOL 7f6863bfe0d77498ac7b4ace6ab24e02e2c74ea837ee0ea3c4a1cf6818cf11ef90cda153104cb849502cc35547556b301173a40a9b64b0ad9169f5ba89a4808d diff --git a/sys-apps/tuned/files/tuned-2.7.0-upstream.patch b/sys-apps/tuned/files/tuned-2.7.0-upstream.patch new file mode 100644 index 000000000000..f864433b1941 --- /dev/null +++ b/sys-apps/tuned/files/tuned-2.7.0-upstream.patch @@ -0,0 +1,39 @@ +diff --git a/tuned-gui.py b/tuned-gui.py +index 0555404..b169dec 100755 +--- a/tuned-gui.py ++++ b/tuned-gui.py +@@ -89,7 +89,7 @@ class Base(object): + try: + self.controller = \ + tuned.admin.DBusController(consts.DBUS_BUS, +- consts.DBUS_OBJECT, consts.DBUS_INTERFACE) ++ consts.DBUS_INTERFACE, consts.DBUS_OBJECT) + self.controller.is_running() + except tuned.admin.exceptions.TunedAdminDBusException, ex: + response = self.tuned_daemon_exception_dialog.run() +diff --git a/tuned.spec b/tuned.spec +index 3a2dcec..1b46daf 100644 +--- a/tuned.spec ++++ b/tuned.spec +@@ -334,8 +334,6 @@ fi + %changelog + * Tue Jul 19 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 2.7.0-1 + - new-release +- - rebase tuned to latest upstream +- resolves: rhbz#1289048 + - gui: fixed save profile + resolves: rhbz#1242491 + - tuned-adm: added --ignore-missing parameter +diff --git a/tuned/admin/admin.py b/tuned/admin/admin.py +index ad501c0..cbdd1be 100644 +--- a/tuned/admin/admin.py ++++ b/tuned/admin/admin.py +@@ -98,7 +98,7 @@ class Admin(object): + + def _action_list(self): + self._print_profiles(self._profiles_locator.get_known_names_summary()) +- self._action_dbus_active() ++ self._action_active() + return True + + def _dbus_get_active_profile(self): diff --git a/sys-apps/tuned/files/tuned-2.7.1-makefile-rpm.patch b/sys-apps/tuned/files/tuned-2.7.1-makefile-rpm.patch new file mode 100644 index 000000000000..408ef2b73c3a --- /dev/null +++ b/sys-apps/tuned/files/tuned-2.7.1-makefile-rpm.patch @@ -0,0 +1,19 @@ +diff --git a/Makefile b/Makefile +index df2a139..6200cae 100644 +--- a/Makefile ++++ b/Makefile +@@ -19,8 +19,12 @@ else + GIT_PSUFFIX = .$(GIT_SUFFIX) + RPM_VERSION = $(NAME)-$(VERSION)-1$(GIT_PSUFFIX) + endif +-UNITDIR = $(shell rpm --eval '%{_unitdir}' 2>/dev/null || echo /usr/lib/systemd/system) +-TMPFILESDIR = $(shell rpm --eval '%{_tmpfilesdir}' 2>/dev/null || echo /usr/lib/tmpfiles.d) ++UNITDIR_FALLBACK = /usr/lib/systemd/system ++UNITDIR_DETECT = $(shell rpm --eval '%{_unitdir}' 2>/dev/null || echo $(UNITDIR_FALLBACK)) ++UNITDIR = $(UNITDIR_DETECT:%{_unitdir}=$(UNITDIR_FALLBACK)) ++TMPFILESDIR_FALLBACK = /usr/lib/tmpfiles.d ++TMPFILESDIR_DETECT = $(shell rpm --eval '%{_tmpfilesdir}' 2>/dev/null || echo $(TMPFILESDIR_FALLBACK)) ++TMPFILESDIR = $(TMPFILESDIR_DETECT:%{_tmpfilesdir}=$(TMPFILESDIR_FALLBACK)) + VERSIONED_NAME = $(NAME)-$(VERSION)$(GIT_PSUFFIX) + + DATADIR = /usr/share diff --git a/sys-apps/tuned/files/tuned-2.7.1-sysctl.patch b/sys-apps/tuned/files/tuned-2.7.1-sysctl.patch new file mode 100644 index 000000000000..8e2a70fc377d --- /dev/null +++ b/sys-apps/tuned/files/tuned-2.7.1-sysctl.patch @@ -0,0 +1,11 @@ +--- a/tuned/plugins/plugin_sysctl.py ++++ b/tuned/plugins/plugin_sysctl.py +@@ -67,7 +67,7 @@ + self._write_sysctl(option, value) + + def _execute_sysctl(self, arguments): +- execute = ["/sbin/sysctl"] + arguments ++ execute = ["sysctl"] + arguments + log.debug("executing %s" % execute) + return self._cmd.execute(execute) + diff --git a/sys-apps/tuned/files/tuned.initd b/sys-apps/tuned/files/tuned.initd new file mode 100644 index 000000000000..61a25347b2e3 --- /dev/null +++ b/sys-apps/tuned/files/tuned.initd @@ -0,0 +1,16 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +TUNED_PIDFILE="/run/tuned.pid" +TUNED_LOGFILE="/var/log/tuned.log" + +command="/usr/sbin/tuned" +command_args="-d --pid ${TUNED_PIDFILE} --log ${TUNED_LOGFILE}" +pidfile=${TUNED_PIDFILE} + +description="tuned is a daemon for monitoring and adaptive tuning of system devices." + +depend() { + need dbus +} diff --git a/sys-apps/tuned/metadata.xml b/sys-apps/tuned/metadata.xml new file mode 100644 index 000000000000..f7a37bd48e1a --- /dev/null +++ b/sys-apps/tuned/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>dlan@gentoo.org</email> + <name>Yixun Lan</name> +</maintainer> +<longdescription lang="en"> +A tool that performs monitoring and adaptive configuration of the system +according to selected profile. +</longdescription> +</pkgmetadata> diff --git a/sys-apps/tuned/tuned-2.7.0.ebuild b/sys-apps/tuned/tuned-2.7.0.ebuild new file mode 100644 index 000000000000..94d7224a94c2 --- /dev/null +++ b/sys-apps/tuned/tuned-2.7.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit python-single-r1 systemd + +DESCRIPTION="Daemon for monitoring and adaptive tuning of system devices" +HOMEPAGE="https://fedorahosted.org/tuned/" +SRC_URI="https://fedorahosted.org/releases/t/u/tuned/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +COMMON_DEPEND="${PYTHON_DEPS} + dev-python/configobj[${PYTHON_USEDEP}] + dev-python/decorator[${PYTHON_USEDEP}] + dev-python/pyudev[${PYTHON_USEDEP}] + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] +" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND} + sys-apps/dbus + sys-power/powertop + dev-util/systemtap +" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-upstream.patch + + sed -i \ + -e "/^UNITDIR = /s:\$(shell rpm --eval '%{_unitdir}'):$(systemd_get_unitdir):" \ + -e "/\$(DESTDIR)\/run\/tuned/d" \ + Makefile ||die +} + +src_install() { + default + newinitd "${FILESDIR}"/tuned.initd tuned + + python_fix_shebang "${ED}" +} diff --git a/sys-apps/tuned/tuned-2.7.1-r2.ebuild b/sys-apps/tuned/tuned-2.7.1-r2.ebuild new file mode 100644 index 000000000000..be0e99e3ef44 --- /dev/null +++ b/sys-apps/tuned/tuned-2.7.1-r2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit python-single-r1 systemd + +DESCRIPTION="Daemon for monitoring and adaptive tuning of system devices" +HOMEPAGE="https://fedorahosted.org/tuned/" +SRC_URI="https://fedorahosted.org/releases/t/u/tuned/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +COMMON_DEPEND="${PYTHON_DEPS} + dev-python/configobj[${PYTHON_USEDEP}] + dev-python/decorator[${PYTHON_USEDEP}] + dev-python/pyudev[${PYTHON_USEDEP}] + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] +" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND} + sys-apps/dbus + sys-apps/ethtool + sys-power/powertop + sys-process/procps + dev-util/systemtap +" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-sysctl.patch + epatch "${FILESDIR}"/${P}-makefile-rpm.patch + + sed -i \ + -e "/\$(DESTDIR)\/run\/tuned/d" \ + Makefile ||die +} + +src_install() { + default + newinitd "${FILESDIR}"/tuned.initd tuned + + python_fix_shebang "${ED}" +} diff --git a/sys-apps/tuned/tuned-2.7.1-r3.ebuild b/sys-apps/tuned/tuned-2.7.1-r3.ebuild new file mode 100644 index 000000000000..d8d3a5fb28ad --- /dev/null +++ b/sys-apps/tuned/tuned-2.7.1-r3.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit python-single-r1 systemd + +DESCRIPTION="Daemon for monitoring and adaptive tuning of system devices" +HOMEPAGE="https://fedorahosted.org/tuned/" +SRC_URI="https://fedorahosted.org/releases/t/u/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +CDEPEND=" + dev-python/configobj[${PYTHON_USEDEP}] + dev-python/decorator[${PYTHON_USEDEP}] + dev-python/pyudev[${PYTHON_USEDEP}] + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}]" + +DEPEND=" + ${CDEPEND}" + +RDEPEND=" + ${CDEPEND} + sys-apps/dbus + sys-apps/ethtool + sys-power/powertop + sys-process/procps + dev-util/systemtap" + +PATCHES=( + "${FILESDIR}/${P}-sysctl.patch" + "${FILESDIR}/${P}-makefile-rpm.patch" +) + +RESTRICT="test" + +src_prepare() { + default + + sed -i \ + -e "/\$(DESTDIR)\/run\/tuned/d" \ + Makefile || die +} + +src_install() { + default + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + python_fix_shebang "${ED}" +} |