add tuned-2.14.0 and openvswitch-2.14.0

This commit is contained in:
ikerbs
2020-12-11 01:30:35 +03:00
parent 439fda5245
commit c4c2dc2483
18 changed files with 458 additions and 13 deletions

3
sys-apps/tuned/Manifest Normal file
View File

@ -0,0 +1,3 @@
AUX tuned.initd 421 BLAKE2B b60d6fbf4110ba7e0b5c36159dc9624460ccb8774f101a50b89e633bb177a8ef9d7c36fa425a27d8c5ec6c7b9b19965212cb5ee4b60e02abb3c3990beb26840a SHA512 0123e60def031887040df8690222cc553d93b3c5eb7413e19f722ef04ccf2aeb6468709f66866d432d4d0b0c0ed6875929f1292fde8ad18c4a6b589d1b40fab4
DIST tuned-2.14.0.tar.gz 202857 BLAKE2B 81b0da8c8bac1977272b40baa632eaa81d8056a463ad28a7355b7199b41633085921e581708fbed5f9169f763a00a520749446d729273aca6fb9225b056d6151 SHA512 b44391962d820f74f42926bdcded51ef539ec6b8086807cb8454aea98755d3f61343a96c52d665079bb0aa3916aeba3eb1bbdc5d95f64ece08aca3114a954683
EBUILD tuned-2.14.0.ebuild 1332 BLAKE2B 842acd362f0940df249128249c2835cc0235573cbc52586e621c1c2517b5f65cd334d05a39ab86b233c021fcffb23dabbb37079256445aecdb37f38e82f0089d SHA512 614b0e6000754d17b938f95e4b74ffb2510b13dbd877433dfe28cfc3b0ce0c9860cf3bf79ac2fb9de6e6f64023aebd6a7aaa1dbcb634c1d16ab0404bcf169ee7

View File

@ -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
}

View File

@ -0,0 +1,61 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8,9} )
inherit python-single-r1 xdg-utils
DESCRIPTION="Daemon for monitoring and adaptive tuning of system devices"
HOMEPAGE="https://github.com/redhat-performance/tuned"
SRC_URI="https://github.com/redhat-performance/tuned/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="
${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-python/configobj[${PYTHON_MULTI_USEDEP}]
dev-python/decorator[${PYTHON_MULTI_USEDEP}]
dev-python/pyudev[${PYTHON_MULTI_USEDEP}]
dev-python/dbus-python[${PYTHON_MULTI_USEDEP}]
dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
dev-python/python-linux-procfs[${PYTHON_MULTI_USEDEP}]
')"
RDEPEND="
${DEPEND}
sys-apps/dbus
sys-apps/ethtool
sys-power/powertop
dev-util/systemtap"
RESTRICT="test"
src_prepare() {
default
sed -i \
-e "/^export DOCDIR/s/$/&\-\$(VERSION)/g" \
-e "/\$(DESTDIR)\/run\/tuned/d" \
-e "/\$(DESTDIR)\/var\/lib\/tuned/d" \
-e "/\$(DESTDIR)\/var\/log\/tuned/d" \
Makefile || die
}
src_install() {
default
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
python_fix_shebang "${D}"
python_optimize
}
pkg_postinst() {
xdg_icon_cache_update
}