summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYixun Lan <dlan@gentoo.org>2014-08-29 04:09:12 +0000
committerYixun Lan <dlan@gentoo.org>2014-08-29 04:09:12 +0000
commit6de5890b05098dac49dd164e7c178477c6fe9741 (patch)
treeda7d3ec33f73b316f6a4a87360e6c35bd0fb08a9 /sys-apps/tuned
parentinitial version, bug 396131, thanks david, Patrick McMunn, Amir Aupov (diff)
downloadhistorical-6de5890b05098dac49dd164e7c178477c6fe9741.tar.gz
historical-6de5890b05098dac49dd164e7c178477c6fe9741.tar.bz2
historical-6de5890b05098dac49dd164e7c178477c6fe9741.zip
initial version, bug 396131, thanks david, Patrick McMunn, Amir Aupov
Package-Manager: portage-2.2.12/cvs/Linux x86_64 Manifest-Sign-Key: 0xAABEFD55
Diffstat (limited to 'sys-apps/tuned')
-rw-r--r--sys-apps/tuned/Manifest26
-rw-r--r--sys-apps/tuned/files/tuned.initd17
-rw-r--r--sys-apps/tuned/metadata.xml12
-rw-r--r--sys-apps/tuned/tuned-2.3.0.ebuild45
4 files changed, 97 insertions, 3 deletions
diff --git a/sys-apps/tuned/Manifest b/sys-apps/tuned/Manifest
index 47baf385d524..c432f93b11c4 100644
--- a/sys-apps/tuned/Manifest
+++ b/sys-apps/tuned/Manifest
@@ -1,5 +1,25 @@
-AUX tuned.initd 433 SHA256 8527b9343736898b979166eb6346c8f2463d514523e492217e8cd3f331e83cef SHA512 e5aed6164be9c7c04d2476c013a6bc6912674f17450adc36b1bd336a7593c147c92cd88acf7ff8c2337f5e672e4e79e82647bdf1d9bccdda80cd66cd82cb3b07 WHIRLPOOL de22d22d16e4605a020dca7398b92b0eb95a4f3ae8714c0e66649eef51c2d2120e5fbb4a1748bc6cdae7d6de28c9c0e5c2699ba97f32557811a7c6f8f952f961
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX tuned.initd 525 SHA256 b724d4be60a93a64652e571357fa18437fd5859525c33d698b7bc71b368936a7 SHA512 16bf389b5739e18f843f8526ae7d366cafd41dcaab6936584e25a026600b9e6544dfe0cd2d09babd40eec6bb47a15ff837a3ba69a19d1dca997ba9d65789b379 WHIRLPOOL bc10c9fd2dac0ac71e1a4bab6acb08cdcfbf1c9ab4f0888b7aac685ce3fe76a43b2d6fc3772ebf199c14dd93165e6f518b6a1093e1bdb59e78b7f21d10522ba7
DIST tuned-2.3.0.tar.bz2 62406 SHA256 fba74ad66abc942859cd42aba0eaf379565adc9ecadea4eb8b49ddad2ff2a4d5 SHA512 9a9b874b6e370e65dcebdd950595f848737dc02433346cd39210cb9f87553c11412373db75a92617f0159d0c503a45b5fddd9512cf088763f7303c429d64ac75 WHIRLPOOL 4dfee900e7978eb913d201f11503df20ee7375629ec106c292ba72fa9229fcb6c399c79e92c8351c444fb23f87a54029a5673bc43c6f05f37fc3bb11b6b4c1c9
-EBUILD tuned-2.3.0.ebuild 981 SHA256 2fba545cfbc09b0d488260c392406018653813bf75154481db53c415f76a181a SHA512 b69f457e085b6e6db3330584fd19245e7584308d6f5d63ebe7dbf974f9829463b34778f10c310bcf0db8cdabd37a3331cbcbbd0da95808227a363dfe284b69b8 WHIRLPOOL 97f2c81418d1bd5fd049b97bee3aa6d0fa77370384975dfa78bbf653adcbbe5e977af875f1412a674499ca34d916bc0597ce982487a9e86a4c44152bb7f739de
-MISC ChangeLog 317 SHA256 7e6fd4f779a99845e8815bd627fa2a0621990c68029d3fd37f56ae62aa655b5c SHA512 ff5696518a23f67282561e7e5e7a023f52436cc667e5f339f786a107220937bae443a1b7c39593f5373267626e1079d79fcbcf03a2261c85db35e765af58da7b WHIRLPOOL 9a0c54ef93e82d59f58285f8fca2b192ba88b24e15d794ac50c8054e8bd64d6f009d95a2c25ae99ebcfbe688d7c741ba511224fc69edb01ec1aae107e1be7844
+EBUILD tuned-2.3.0.ebuild 1074 SHA256 a454e30817e5c76867e2c138d92cc5abca02aa2d504ab4e79d96fac55149c79b SHA512 ffb7e78465a3104d2ba105baf3b2e87d2f4fc4e5816bfa63213ea2b7876cfe36777ceb8dc9ffe5b2f81b1a7ecefbb796452b95e0d8c59a50c7c3e2fae259aa63 WHIRLPOOL c996707e278995cca5e74c0c2997e620861f4c4883fb96da408b5bd37012753baf2089adb82b77b816f32d89a640cc5b56c3988713e6c9076d999ad1f0493aa0
+MISC ChangeLog 401 SHA256 8b00c40393671dc99a348d65164bd6e7bd646219345c54224e282720f3b94e4a SHA512 ffdfd2e33d1d39b70e25ca4a8db0108beea1590c6389b30a302f742b284ab3e87c9e858fd7334b3893a69fd1ac7395b4ca6b814cf06aaa301e323602883f0dbd WHIRLPOOL f0978949415f63d6ef243583488310426d8c683b7dd39b4d7fa61d41c24bc8d9c234eeadd435b3cc29658beb168ee1385015bb2a720056d323b9d8d3e24d18f6
MISC metadata.xml 374 SHA256 a88b2c3cbd04512a1dc8d3fd8fd14b74b4cc5effee6a1d7c2288401164ba29f3 SHA512 45b9052fe74bb36a183357e7c5e5757a90086a9a97d88beddbf2c6d4ea91783a13dfeb5c02aba30eda7da7b0666a7c17a1d0d3fe8f0fdbd566a662e4375231db WHIRLPOOL c5626f49590855f9194077e267534372c33c9eb08e712716592019ca608b8f006045710f562b3a9225dab32d9aa7ccdbd34db1300bc0186cebcc7fafa035121d
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iQIcBAEBCAAGBQJT//zRAAoJEJIMDbyqvv1VsDEQAMvyl355NkFZ1EiGbJ64REb+
+1LVkK0Jbx23jCGgfDN1KcFIJsVIzFY9NP37SXenJQ8GONSY//q29jUGt4HzdDMmQ
+4PNhHwQ0TR14NBpJ4KlyZkRDkEK3EuXa90YPQfHC+KUXzLhr6BmgkzEOHHAga6Ro
+2lIhOJjFTS/hFoLhZljAbaOmiFDTFmyw0XNLd+zLXT/QpIoTVGVMxwenBR565IjS
+4nTaNVbohJ39iflmhK+XA+amVb+HU8/DkM60lGCibWKWdmvuuu9GnFxYcuTeCDqF
+SI42gozuC4//3T4beGVqh2sr3vv2Dqu4RC0aJ6bnS8Pho9OAQzkqqhCrL5Dt1aus
+DZ6fhMBiN07a5tfDTK12M4sV+pf2vGFXyaRKY800IfxgU07HLoGNFsox1sn38/eg
+335/Jamr5CSeN6HwlDopWyL3HwwFGoHrj6jSZKhXit0kwuicdXmGsoBHNBFXl/pa
+eM/wCZOVyOD2fa/S7LEPceDk1BWTErrzB09JK9AdQ/Z5xL4zBn/yw8E/QzKeWRTI
+qCsrj2HnLATrA7oky8sGkjjDP9rPS7/psV3GY5V62xxQi3y7uwhh+g0lxwpkuXoP
+2i4IxOo4ynJy8YKb30MspbzmnQXWGNMzvaoI5fIEBVohLduD2+twnZD96lGt6CjG
+wtBsBiqb7xrmnXGJJd+9
+=GUNB
+-----END PGP SIGNATURE-----
diff --git a/sys-apps/tuned/files/tuned.initd b/sys-apps/tuned/files/tuned.initd
new file mode 100644
index 000000000000..d311d987a690
--- /dev/null
+++ b/sys-apps/tuned/files/tuned.initd
@@ -0,0 +1,17 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/tuned/files/tuned.initd,v 1.1 2014/08/29 04:08:59 dlan Exp $
+
+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..c2491ca20b16
--- /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>
+ <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.3.0.ebuild b/sys-apps/tuned/tuned-2.3.0.ebuild
new file mode 100644
index 000000000000..d3064e325f40
--- /dev/null
+++ b/sys-apps/tuned/tuned-2.3.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/tuned/tuned-2.3.0.ebuild,v 1.1 2014/08/29 04:08:59 dlan Exp $
+
+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}]
+"
+DEPEND="${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}
+ sys-power/powertop
+ dev-util/systemtap
+"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_prepare() {
+ 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}"
+}