add tuned-2.14.0 and openvswitch-2.14.0
This commit is contained in:
parent
439fda5245
commit
c4c2dc2483
14
net-misc/openvswitch/Manifest
Normal file
14
net-misc/openvswitch/Manifest
Normal file
@ -0,0 +1,14 @@
|
||||
AUX openvswitch.tmpfiles 40 BLAKE2B df482f24d2c48d54b6cabb1f0a37fcb193c9da71d9ae2eab0dd9a15209462e118a7160411d6d0cdb10f1721f0a86b689dd9c286325ed965ac1a510ae0af791a1 SHA512 020aaa9599b853d75a612f7bbd4ef8ea024908f283afe5c727f5d2a1f3a5a98634f82d840b3ebf886b9a82e9c60c237ced2fb13057bc7bb9ab5c449e11b51997
|
||||
AUX ovs-delete-transient-ports.service 272 BLAKE2B 4ee3767f84b4f47fe0d01aa9aaff35c9ca2be5afa6ba0f595d37ab0cdb4ccbdd7abcfb2a9c91a04d7820d1819f7757c7de569dd62cdc6c76cf533c27908f3471 SHA512 045f9c59275c555eb83c15e7cc0af4db3e9cd834385b4bbca35f5863e8432a0cf2038d10b8a55ad90a180b386a4bd0962ddcc401b4f3cf55b7e398e0683cc0f8
|
||||
AUX ovs-vswitchd-r1 436 BLAKE2B 3660edee0906e3bd7fb1715601eb08567fba2ccb20a9b25b7ef250f130737d903acd187b35cb487a4141396ef3b7746d296ab613477b7fe907f1c6bb4c3da85d SHA512 7a98f85251a7b60d93a28ade482669537585fc05265cc51eb61e283739537df980230bd5f9dccfdb60772afe3f0bf2493eed9a25b289c7ef37d998e8ca5ec4df
|
||||
AUX ovs-vswitchd-r3.service 904 BLAKE2B 1a9880154a7628c57838a7d0fcf60d3734f35bef36fcaf6e396da92a35fa80a056bb1122d218f0331cc3382c13433672471dba7d7e711fd4f2ced4803b5623fa SHA512 408b52e74dab747bf83c66e43515868eaddb24de6e914c7ed201425cdc24c731b3d705cf9abf2cfc30c2499b77f2795b72d11f31bcfc3237cca0ad13ca17fc63
|
||||
AUX ovs-vswitchd.confd-r2 188 BLAKE2B b38ed709f5d59caed9146df078c26b08d85178e7dd783ecc1f431721a23732fdacad77886ab4387ab94121eebca267b1d628f5a3e2f8c95e11f90b8a260a80c6 SHA512 b1afe4a4095ea78e7a58c69a26c0eac6e944594702364d81766944f7470cdbac09922286b8a8f926aad8ff2e14ee6b5311188d2dc22ea2d8bb9cf28034157135
|
||||
AUX ovs-vswitchd.service 393 BLAKE2B 6ca53819e5bda787eeefcf94f76749621da3462f2f92ccd70de35ba407b4dd74b29552b609871d77f85ccca764640555167b40b97d6585b80bf3bbfcb1ae242c SHA512 74d2ba9b76ad29dbb75e9b3321e1e714140a1c9bf9f5176c8418b025ffdb9c14d9f532709835c163c7256b4c81d69b522fcbc12d6bd9399283c8bd45b94cd7f2
|
||||
AUX ovsdb-server-r1 855 BLAKE2B 894b2bd417ad1e8113a0288db59af133e5b705deac982b01fcc9266c7c0387423a1897d55cd70651c3a0407461c641455869ceefe330cc1880abc2cf79516de6 SHA512 fa51b2a661c1bdd345adf58c2b0e4c4c68bb4ed4ce78dc6e195ba9fe662fa451753664c72f56d755cfa682d0c9accd283dc501aee3c4ba58238f44df1ddaf5a5
|
||||
AUX ovsdb-server-r3.service 813 BLAKE2B ba16534aaf407121f56e1ffc711dcc87b4c5ee07cc12f74e1d8ca2b7e85fefede4100154ef2031470b68fe5085539984b6b38b8c518fa38a8eb19d8af3a24c1c SHA512 ed3137fb0b26be82f311aa9a56855d91bb113a64fd43ecde8d97979354edffe26ee7712eac91c96b19e56c35a5b4ef2c68acfe5c3c0c0cd21e35745fde41574e
|
||||
AUX ovsdb-server.service 480 BLAKE2B 5192dfe98551bbd81eead18a7eaba70ff0901bf2cab42fa1c93b079901777bc0e7fca0847427affc5a069e9041297369364f9aa28869f63a463e3646f70f47fd SHA512 cb9196ebdb7f16eca4182172a079027dc2c28f366d0a4f9251480b20172758cb581cd91b9a0f2a3dde95742455bec9ef96aa584305f17bdc97b3de7d4c99aa19
|
||||
AUX ovsdb-server_conf 492 BLAKE2B e82cd92a1ac46023d63a70093e0f9cf78b72eed20a70d2599f5a405f6f7e30e1d550090b9debc2262da674b9d04d3be16aadf375ca2031e74056433c1ce20818 SHA512 a9aab68cf5188ebdff520e8ae1bc90018fab13fea5cf7c36dda42a4acdeb842de8344191f2f52213ea173a73e647fe48e7bd29ce6974c9bf3880d0f91a3713aa
|
||||
AUX ovsdb-server_conf2 584 BLAKE2B ac54fe7f3b593dce07f051874e4ebc59ab2872fcc994e55464f8ab74135498613f9a3bb38366babeae909ae8179be87c1168a069f427d4310f220afbb58d12da SHA512 0878963eef09a3933fcdb66e7ce1ab66131ce3ee1af5d403456e0f44d763e96ff90460d9013cea9a3eb0630d60a6b8aed04aeee6789882842975df2e86bc0b9e
|
||||
AUX xcp-interface-reconfigure-2.3.2.patch 920 BLAKE2B a0cf230e9793484309ec38a6faf7ba386ae4e1ba7b8c77e3a3f0cbdef63d128dd765362e4ab8077da04a60444718283cc68d0a402ed12fa168c2ca983c1064a6 SHA512 7f2dd6fbd3f734abe2cf8e23a0aa49d81a8acb26ac5c28004a95ec0fe4630f7792aabdaeb8825a62ff96fcf1c3a871eea10b11c6b92ddf7965aa1f73150f7ec7
|
||||
DIST openvswitch-2.14.0.tar.gz 7359886 BLAKE2B e7633578e9db395b534e2aca84f08919d06d14b68cdf78b04de25b887bcb4eb0e476c7d6c54ae23b72f797a3b083e09d23d8eb142da1e1463b2fbcde76069108 SHA512 5fe377f9b2857e238e3d40e4452e8b36c80283230f1d0f4b983324532beba725913da817e545c8d7630762f170bb5b0dfe810fd1b8b559994d5eae828beb8ec1
|
||||
EBUILD openvswitch-2.14.0.ebuild 4403 BLAKE2B 6da017c71efd2756299b5b019af8ec8b393f8582a15b2c654edf4219a6cee91122e5ba9578504b9e91d230e50078d8d5b024843a4b5678687db584b1606ea4c0 SHA512 63e01858fbd24a8efc0677e580da93b73d069056488ee0580af53250173134d6ed366b96a33b24b62f4ec786ffb5fc0d76efc6bb34f8d5e519b897df345b6f13
|
1
net-misc/openvswitch/files/openvswitch.tmpfiles
Normal file
1
net-misc/openvswitch/files/openvswitch.tmpfiles
Normal file
@ -0,0 +1 @@
|
||||
d /var/run/openvswitch 0770 root root -
|
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Open vSwitch Delete Transient Ports
|
||||
After=ovsdb-server.service
|
||||
Before=ovs-vswitchd.service
|
||||
AssertPathExists=/var/run/openvswitch/db.sock
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/share/openvswitch/scripts/ovs-ctl delete-transient-ports
|
21
net-misc/openvswitch/files/ovs-vswitchd-r1
Normal file
21
net-misc/openvswitch/files/ovs-vswitchd-r1
Normal file
@ -0,0 +1,21 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Open vSwitch virtual switch"
|
||||
|
||||
command="/usr/sbin/ovs-vswitchd"
|
||||
command_args="
|
||||
--pidfile
|
||||
--detach
|
||||
--monitor
|
||||
${OPTIONS} ${DATABASE}"
|
||||
pidfile="/var/run/openvswitch/ovs-vswitchd.pid"
|
||||
|
||||
depend() {
|
||||
use ovsdb-server logger
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -d "/var/run/openvswitch" -m 0750
|
||||
}
|
26
net-misc/openvswitch/files/ovs-vswitchd-r3.service
Normal file
26
net-misc/openvswitch/files/ovs-vswitchd-r3.service
Normal file
@ -0,0 +1,26 @@
|
||||
[Unit]
|
||||
Description=Open vSwitch Daemon
|
||||
Documentation=man:ovs-vswitchd
|
||||
Wants=network.target
|
||||
Before=network.target network.service
|
||||
Requires=ovsdb-server.service
|
||||
After=ovsdb-server.service network-pre.target systemd-udev-settle.service
|
||||
ReloadPropagatedFrom=ovsdb-server.service
|
||||
AssertPathIsReadWrite=/var/run/openvswitch/db.sock
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Restart=on-failure
|
||||
Environment=HOME=/var/run/openvswitch
|
||||
EnvironmentFile=-/etc/conf.d/ovs-vswitchd
|
||||
ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \
|
||||
--no-ovsdb-server --no-monitor --system-id=random \
|
||||
--ovs-user=${OVS_USER_ID} start $OPTIONS
|
||||
ExecStop=/usr/share/openvswitch/scripts/ovs-ctl --no-ovsdb-server stop
|
||||
ExecReload=/usr/share/openvswitch/scripts/ovs-ctl --no-ovsdb-server \
|
||||
--no-monitor --system-id=random --ovs-user=${OVS_USER_ID} \
|
||||
restart $OPTIONS
|
||||
TimeoutSec=300
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
7
net-misc/openvswitch/files/ovs-vswitchd.confd-r2
Normal file
7
net-misc/openvswitch/files/ovs-vswitchd.confd-r2
Normal file
@ -0,0 +1,7 @@
|
||||
# Connection string for the configuration database (usually a unix socket)
|
||||
DATABASE="unix:/var/run/openvswitch/db.sock"
|
||||
|
||||
# Additional options
|
||||
OPTIONS="--mlockall"
|
||||
|
||||
OVS_USER_ID="root:root"
|
15
net-misc/openvswitch/files/ovs-vswitchd.service
Normal file
15
net-misc/openvswitch/files/ovs-vswitchd.service
Normal file
@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Open vSwitch Daemon
|
||||
Documentation=man:ovs-vswitchd
|
||||
Wants=network.target
|
||||
Before=network.target
|
||||
Requires=ovsdb-server.service
|
||||
After=ovsdb-server.service
|
||||
|
||||
[Service]
|
||||
# --pidfile options is needed for create file used
|
||||
# by ovs-appctl command.
|
||||
ExecStart=/usr/sbin/ovs-vswitchd --mlockall --monitor unix:/var/run/openvswitch/db.sock --pidfile
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
34
net-misc/openvswitch/files/ovsdb-server-r1
Normal file
34
net-misc/openvswitch/files/ovsdb-server-r1
Normal file
@ -0,0 +1,34 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Open vSwitch database server"
|
||||
|
||||
remote_punix=${DB_SOCKET:+"--remote=punix:${DB_SOCKET}"}
|
||||
remote_db=${REMOTE_DB:+"--remote=${REMOTE_DB}"}
|
||||
private_key=${PRIVATE_KEY:+"--private-key=${PRIVATE_KEY}"}
|
||||
certificate=${CERTIFICATE:+"--certificate=${CERTIFICATE}"}
|
||||
bootstrap_ca_cert=${BOOTSTRAP_CA_CERT:+"--bootstrap-ca-cert=${BOOTSTRAP_CA_CERT}"}
|
||||
|
||||
command="/usr/sbin/ovsdb-server"
|
||||
command_args="
|
||||
--pidfile
|
||||
--detach
|
||||
--monitor
|
||||
${remote_punix}
|
||||
${remote_db}
|
||||
${private_key}
|
||||
${certificate}
|
||||
${bootstrap_ca_cert}
|
||||
${DATABASE}
|
||||
${OPTIONS}"
|
||||
pidfile="/var/run/openvswitch/ovsdb-server.pid"
|
||||
|
||||
depend() {
|
||||
need localmount
|
||||
use logger
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -d "/var/run/openvswitch" -m 0750
|
||||
}
|
22
net-misc/openvswitch/files/ovsdb-server-r3.service
Normal file
22
net-misc/openvswitch/files/ovsdb-server-r3.service
Normal file
@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=Open vSwitch Database Unit
|
||||
Documentation=man:ovsdb-server
|
||||
After=syslog.target network-pre.target
|
||||
Before=network.target network.service
|
||||
Wants=ovs-delete-transient-ports.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Restart=on-failure
|
||||
EnvironmentFile=-/etc/conf.d/ovsdb-server
|
||||
ExecStartPre=/bin/chown ${OVS_USER_ID} /var/run/openvswitch /var/log/openvswitch
|
||||
ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \
|
||||
--no-ovs-vswitchd --no-monitor --system-id=random \
|
||||
--ovs-user=${OVS_USER_ID} \
|
||||
start $OPTIONS
|
||||
ExecStop=/usr/share/openvswitch/scripts/ovs-ctl --no-ovs-vswitchd stop
|
||||
ExecReload=/usr/share/openvswitch/scripts/ovs-ctl --no-ovs-vswitchd \
|
||||
--ovs-user=${OVS_USER_ID} \
|
||||
--no-monitor restart $OPTIONS
|
||||
RuntimeDirectory=openvswitch
|
||||
RuntimeDirectoryMode=0755
|
14
net-misc/openvswitch/files/ovsdb-server.service
Normal file
14
net-misc/openvswitch/files/ovsdb-server.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Open vSwitch Database Server
|
||||
Documentation=man:ovsdb-server
|
||||
|
||||
[Service]
|
||||
# The file can be shared for this as this values are prone to change
|
||||
# and that way we don't need to update them in two different places
|
||||
EnvironmentFile=/etc/conf.d/ovsdb-server
|
||||
ExecStart=/usr/sbin/ovsdb-server --monitor \
|
||||
--remote=punix:${DB_SOCKET} \
|
||||
--remote=${REMOTE_DB} \
|
||||
--private-key=${PRIVATE_KEY} \
|
||||
--certificate=${CERTIFICATE} \
|
||||
--bootstrap-ca-cert=${BOOTSTRAP_CA_CERT}
|
16
net-misc/openvswitch/files/ovsdb-server_conf
Normal file
16
net-misc/openvswitch/files/ovsdb-server_conf
Normal file
@ -0,0 +1,16 @@
|
||||
# Socket for bringing the server up
|
||||
DB_SOCKET="/var/run/openvswitch/db.sock"
|
||||
|
||||
# Remote sockets are defined in the database by default
|
||||
REMOTE_DB="db:Open_vSwitch,manager_options"
|
||||
|
||||
# All certificates and keys are stored in the database (if any)
|
||||
PRIVATE_KEY="db:SSL,private_key"
|
||||
CERTIFICATE="db:SSL,certificate"
|
||||
BOOTSTRAP_CA_CERT="db:SSL,ca_cert"
|
||||
|
||||
# Alternative path for the database (default is /etc/openvswitch/conf.db)
|
||||
# DATABASE="/etc/openvswitch/conf.db"
|
||||
|
||||
# Additional options
|
||||
# OPTIONS=""
|
19
net-misc/openvswitch/files/ovsdb-server_conf2
Normal file
19
net-misc/openvswitch/files/ovsdb-server_conf2
Normal file
@ -0,0 +1,19 @@
|
||||
# Socket for bringing the server up
|
||||
DB_SOCKET="/var/run/openvswitch/db.sock"
|
||||
|
||||
# Remote sockets are defined in the database by default
|
||||
REMOTE_DB="db:Open_vSwitch,Open_vSwitch,manager_options"
|
||||
|
||||
# All certificates and keys are stored in the database (if any)
|
||||
PRIVATE_KEY="db:Open_vSwitch,SSL,private_key"
|
||||
CERTIFICATE="db:Open_vSwitch,SSL,certificate"
|
||||
BOOTSTRAP_CA_CERT="db:Open_vSwitch,SSL,ca_cert"
|
||||
|
||||
# Default user
|
||||
OVS_USER_ID="root:root"
|
||||
|
||||
# Alternative path for the database (default is /etc/openvswitch/conf.db)
|
||||
# DATABASE="/etc/openvswitch/conf.db"
|
||||
|
||||
# Additional options
|
||||
# OPTIONS=""
|
@ -0,0 +1,20 @@
|
||||
Description: Use xcp-xapi interface-reconfigure if found
|
||||
Ubuntu/Debian provide the XCP interface-reconfigure hook in
|
||||
a FHS compliant location; use this if found.
|
||||
Author: James Page <james.page@ubuntu.com>
|
||||
Ubuntu-Bug: https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1195053
|
||||
Forwarded: no
|
||||
|
||||
--- a/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update
|
||||
+++ b/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update
|
||||
@@ -43,6 +43,10 @@ def delete_cacert():
|
||||
def update(session, args):
|
||||
# Refresh bridge network UUIDs in case this host joined or left a pool.
|
||||
script = '/opt/xensource/libexec/interface-reconfigure'
|
||||
+ # NOTE(jamespage): Override with distro xcp xapi locations
|
||||
+ # if present
|
||||
+ if os.path.exists('/usr/lib/xcp/lib/interface-reconfigure'):
|
||||
+ script = '/usr/lib/xcp/lib/interface-reconfigure'
|
||||
try:
|
||||
retval = subprocess.call([script, 'rewrite'])
|
||||
if retval != 0:
|
146
net-misc/openvswitch/openvswitch-2.14.0.ebuild
Normal file
146
net-misc/openvswitch/openvswitch-2.14.0.ebuild
Normal file
@ -0,0 +1,146 @@
|
||||
# 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 autotools eutils linux-info linux-mod python-r1 systemd
|
||||
|
||||
DESCRIPTION="Production quality, multilayer virtual switch"
|
||||
HOMEPAGE="https://www.openvswitch.org"
|
||||
SRC_URI="https://www.openvswitch.org/releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
IUSE="debug modules monitor +ssl"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
ssl? ( dev-libs/openssl:0= )
|
||||
${PYTHON_DEPS}
|
||||
~dev-python/ovs-2.13.0[${PYTHON_USEDEP}]
|
||||
dev-python/twisted[conch,${PYTHON_USEDEP}]
|
||||
dev-python/zope-interface[${PYTHON_USEDEP}]
|
||||
debug? ( dev-lang/perl )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-apps/util-linux[caps]
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES="
|
||||
"${FILESDIR}/xcp-interface-reconfigure-2.3.2.patch"
|
||||
"
|
||||
|
||||
CONFIG_CHECK="~NET_CLS_ACT ~NET_CLS_U32 ~NET_SCH_INGRESS ~NET_ACT_POLICE ~IPV6 ~TUN"
|
||||
MODULE_NAMES="openvswitch(net:${S}/datapath/linux)"
|
||||
BUILD_TARGETS="all"
|
||||
|
||||
pkg_setup() {
|
||||
if use modules ; then
|
||||
CONFIG_CHECK+=" ~!OPENVSWITCH"
|
||||
kernel_is ge 3 10 0 || die "Linux >= 3.10.0 and <= 4.8 required for userspace modules"
|
||||
# docs state 4.17.x code states 4.15.x
|
||||
kernel_is le 5 5 999 || die "Linux >= 3.10.0 and <= 4.18 required for userspace modules"
|
||||
linux-mod_pkg_setup
|
||||
else
|
||||
CONFIG_CHECK+=" ~OPENVSWITCH"
|
||||
linux-info_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Never build kernelmodules, doing this manually
|
||||
sed -i \
|
||||
-e '/^SUBDIRS/d' \
|
||||
datapath/Makefile.in || die "sed failed"
|
||||
eautoreconf
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
set_arch_to_kernel
|
||||
# monitor is statically enabled for bug 596206
|
||||
# use monitor || export ovs_cv_python="no"
|
||||
# pyside is staticly disabled
|
||||
export ovs_cv_pyuic4="no"
|
||||
|
||||
# flake8 is primarily a style guide tool, running it as part of the tests
|
||||
# in Gentoo does not make much sense, only breaks them: bug 607280
|
||||
export ovs_cv_flake8="no"
|
||||
|
||||
local linux_config
|
||||
use modules && linux_config="--with-linux=${KV_OUT_DIR}"
|
||||
|
||||
econf ${linux_config} \
|
||||
--with-rundir=/var/run/openvswitch \
|
||||
--with-logdir=/var/log/openvswitch \
|
||||
--with-pkidir=/etc/ssl/openvswitch \
|
||||
--with-dbdir=/var/lib/openvswitch \
|
||||
$(use_enable ssl) \
|
||||
$(use_enable !debug ndebug)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
use modules && linux-mod_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
local SCRIPT
|
||||
if use monitor; then
|
||||
for SCRIPT in ovs-{pcap,parse-backtrace,dpctl-top,l3ping,tcpdump,tcpundump,test,vlan-test} bugtool/ovs-bugtool; do
|
||||
sed -e '1s|^.*$|#!/usr/bin/python|' -i utilities/"${SCRIPT}"
|
||||
python_foreach_impl python_doscript utilities/"${SCRIPT}"
|
||||
done
|
||||
rm -r "${ED%}"/usr/share/openvswitch/python || die
|
||||
fi
|
||||
|
||||
keepdir /var/{lib,log}/openvswitch
|
||||
keepdir /etc/ssl/openvswitch
|
||||
fperms 0750 /etc/ssl/openvswitch
|
||||
|
||||
rm -rf "${ED%}"/var/run || die
|
||||
|
||||
newconfd "${FILESDIR}/ovsdb-server_conf2" ovsdb-server
|
||||
newconfd "${FILESDIR}/ovs-vswitchd.confd-r2" ovs-vswitchd
|
||||
newinitd "${FILESDIR}/ovsdb-server-r1" ovsdb-server
|
||||
newinitd "${FILESDIR}/ovs-vswitchd-r1" ovs-vswitchd
|
||||
|
||||
systemd_newunit "${FILESDIR}/ovsdb-server-r3.service" ovsdb-server.service
|
||||
systemd_newunit "${FILESDIR}/ovs-vswitchd-r3.service" ovs-vswitchd.service
|
||||
systemd_newunit rhel/usr_lib_systemd_system_ovs-delete-transient-ports.service ovs-delete-transient-ports.service
|
||||
systemd_newtmpfilesd "${FILESDIR}/openvswitch.tmpfiles" openvswitch.conf
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins rhel/etc_logrotate.d_openvswitch openvswitch
|
||||
|
||||
use modules && linux-mod_src_install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use modules && linux-mod_pkg_postinst
|
||||
|
||||
# only needed on non-systemd, but helps anyway
|
||||
elog "Use the following command to create an initial database for ovsdb-server:"
|
||||
elog " emerge --config =${CATEGORY}/${PF}"
|
||||
elog "(will create a database in /var/lib/openvswitch/conf.db)"
|
||||
elog "or to convert the database to the current schema after upgrading."
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
local db="${EROOT%}"/var/lib/openvswitch/conf.db
|
||||
if [[ -e "${db}" ]] ; then
|
||||
einfo "Database '${db}' already exists, doing schema migration..."
|
||||
einfo "(if the migration fails, make sure that ovsdb-server is not running)"
|
||||
ovsdb-tool convert "${db}" \
|
||||
"${EROOT%}"/usr/share/openvswitch/vswitch.ovsschema || die "converting database failed"
|
||||
else
|
||||
einfo "Creating new database '${db}'..."
|
||||
ovsdb-tool create "${db}" \
|
||||
"${EROOT%}"/usr/share/openvswitch/vswitch.ovsschema || die "creating database failed"
|
||||
fi
|
||||
}
|
@ -1,13 +1,13 @@
|
||||
AUX configure.gvpe-2.21.patch 1595 SHA256 c5b3370fca29540a7d8f6595930895bb73531d7125117271bd59bbfbca65b970 SHA512 0a7ee490873b257b863b94e1daf33d0ad0a452a501d999685f16ec1e2007399d3cd231addc9a425782c1509ef354cf88f2f76fd43c9d3f02598b3f28b2cfeb70 WHIRLPOOL 37eb4536b140a9eac8205a268a7db309b71981d6ba29313d21efd66280064f50558588a422658966eb7b76f983b0debd0306d0baeeb65092c942fe2dcb46bcaa
|
||||
AUX gvpe.conf.example 723 SHA256 e5a302273b8641faf7db4c8c1d6e44482f07f8a5434a86612b922e488aadf987 SHA512 1c3660259a7fa3346d62c93c617540931586b667349131c54b0cbb16980ee7e5b9ec32060d09f5d2c646dd3c4f46821de3671c1aa68d9cdda514455ce924cf6d WHIRLPOOL 85077d2a0b5b9ecd86eccfb695c78a6f38cb2521303dfc8e89dc8c9fbf3459d701c2e5d1a5671eef16b9229465b887dba192ea244347682f43529c2ce2c3a4cc
|
||||
AUX gvpe.confd 67 SHA256 3b8476b50c5406430f45b509e015fd12c5883280ee87263b2887ffd7e643919f SHA512 c6b13eae127d51b8e269bb451c7faf12a2e9c0f27b2ed7c087b64f4297d84c5dc5d9ecb373ae6d2171b61f3c685360ac2d74978f8a7b3c7dcff967d40759c421 WHIRLPOOL 0dfc50b42008c3c860aafbbdae0a8d9f664e477c7e16687cc5a43156acdc7dcc5eda52be3490740df3012929c5aa89b687519bb4be67526c0be7424e7fafddfd
|
||||
AUX gvpe.rc 607 SHA256 513201fbf999da25b2b5a65c4e9ff69ac765591bb805a695278b0fe5c0e47326 SHA512 b21c22b776f2e2f53fa52e1d9474016d8e366229f90d062a970ff15c562bab83d1018f1ef9cb717d159f7d1038664d3790c73694fcc48f34a5ff50c536385e81 WHIRLPOOL c7abff3330a589cffccaa11afce6aae7d54d648c56f6e46c9d761b8d9365ef67a771053fdf52515d4f6d0289db26133e22fa8ef37fef737310ebbf7ccef22c51
|
||||
AUX if-up 135 SHA256 f658c1512ad81c549c1aee49fccdd0f02005b23805f88712252bd00314e4212d SHA512 0fde496757369c0799b8ee0becf2e01cf83040d63478b2495bde6891211778fa4a22cc615f3c68a37f7e72b26c1718a76e2a7f16c50eb4753c22f372d2e9af07 WHIRLPOOL 55ca732c14532a1b8fb2c4930862ee33db259fb75e2abe064a4d58942d73e3198b0c91e405aecebda85396ae61f56cbe7ef19e01d8e1bdd765d611949be4f167
|
||||
DIST gvpe-2.21.tar.gz 495636 SHA256 de242e8b6f8e9f15c57b345e4302f6c67c3e0754d75b67bc8da2e03867c46ce6 SHA512 074178914667c8f3cb8bfbac46d0796b1583f913cff294e72df57e520d56ac844c916a90992655a89b35e433baba7d9dff1b1712c85e323ced89a3c98c3f5266 WHIRLPOOL 433ce5d8220b099bc03c7d2e86acbcb31d4531089ff8f034f7d689f45fe5d816e8a47ba171bd10ad30a091e3e5a8de5ec81540d77f4b737d7a7e6874acc6ec13
|
||||
DIST gvpe-2.25.tar.gz 516339 SHA256 73c32d9a28fadd6aa531e0fed27c7a96bc0e5e9a5626ebf70368eaad3dbb51bf SHA512 9122efde787641603c91e067f03f4534c137e5cd274b1d096652cc176335bef6b36662fae1ab2330af6ca17043249086c1c7ee0643f8854154938e161e452e3d WHIRLPOOL c9a83e310a77cc51c8f8c2ebd1f74000b475a19bf6718a5f6ae317b7534d5c0cde301b4376549150df9fe4ffdf609edfb501e0fca57a69aa89dfd40802c5fe6e
|
||||
DIST gvpe-3.0.tar.gz 519289 SHA256 0e0a2db4dc7ac591c4368989329773a1b2399bca959d1cc10fa9f95884acc1ec SHA512 b1a917277746226c78e083aaaf80cbfa96dd311a77229cbc81ad306eb1a7f996e2bc3e40cc6e80edd9e7df69f9c891154ee8118d5d57a5c05fb1cb224b9e59a7 WHIRLPOOL 9704a3643d6950b0dbe2172a56749e8ddeee5c148a5a884d708188f3a60b8eba320000f822bfb1dbd8cc42c5b3a306bef34fcd75f0531a6f9f1bee6c5cdc4b23
|
||||
EBUILD gvpe-2.21.ebuild 3526 SHA256 8d3a6035e78bcd3766cabe54fccb26e107dfc6137195e25a66218ea5a42eb90c SHA512 bce11abc37c0c8f25528a3d13c1c08403832f66220abd3400b1196083b3576904e4a6911e9233ed50dadfd5b5b2b89ccfe54355512fd3849d7c8ff500ad789fb WHIRLPOOL 901bbdb8e51e997b4188219b09a398d12e8df660478ab1996510de2cd0960ee27a22f597abd54aff17c7c1ee45834f31a0685b2ee2fcb798361a5e0093bf1b4a
|
||||
EBUILD gvpe-2.25.ebuild 3436 SHA256 75e947416f57a7b98e0658b941f534739511df6e72adebf3877dcd37f9338c52 SHA512 ac4854acbe2d653a0779e50fee950478788d13b9bfa414e1c22c3deeef0f2789e71e3585d5dc84067d0e2f502a480420cbae833876b7aa28af69b55161e2fec7 WHIRLPOOL 40808308f51cfe150e2620f3e2e918a857e7cd73729554b613142802b129349bb0cc3016786c1824cf4a1cff2e7be759eabcd73b5b54c76dba99c34ecda0670e
|
||||
EBUILD gvpe-3.0.ebuild 3474 SHA256 382f70657dcc5c894a326d05dfc80e356584725f7c6ba9ad0451de72a71161a6 SHA512 62f3a5d96daf428975f40a543b365ef9296f939c0727a06e026a5b42e6a11298f05900057373149878c07463626a46c451c4e9f847f1005a8285984cd743424a WHIRLPOOL d6af093519f7c8b4e8953a83d0b8107631d6def87409d50045ef51b1813a19f5ef12a8cec92128d92261a661cdd28469b137630055f3749f458bf4b3e4f916f4
|
||||
MISC ChangeLog 933 SHA256 e1cc983faded572bdf21f4516bd7a0725de22f464b2121a1c1b999f940e0cc7f SHA512 5950187dac76003fbf7fbf68f84dfd96d7307ba0d8a623d234a640d3919ea8b1e37d46879df80d0fd5d7fa9fd03ef9b5c985773f4b6f39e111b821bee7c83d42 WHIRLPOOL 221c48e5189293409611642775fe915fe4cba8344705a0b54ca543162032a94e1b93f082d6939fb67cee1e1ebae335a5e24ce7f55a7b35918d3523af1a963024
|
||||
MISC metadata.xml 1529 SHA256 8febe5ed8bd495d2f7fdd37fc8d9f758406fafb70379a7c16cfd2fc0c6d12ee8 SHA512 bb57cb89a1da2d405abf8cc294d75cbc57d472248f7c6d054a5f299a7243290303eb25514a25bd91f478add92392fe5d114a101aaa70f9413e189b3d3e4eee6b WHIRLPOOL 9a30a262adc27b83b5f54ad44d3bbd31786b0fe3811a8379b126e20a7ad0b8921f37db72c33bac009c34b306c28d0a16ed6df7d2c800fd8cc029e8597cc0d63d
|
||||
AUX configure.gvpe-2.21.patch 1595 BLAKE2B 13794d1d161a34f2a0c7f2f3b9da45cedf1108046754f66450a959176e24c0f50a96c2cbb4a46894b49ca4f9c1b51f82e19cddf89d0a408191cc966a9bebc031 SHA512 0a7ee490873b257b863b94e1daf33d0ad0a452a501d999685f16ec1e2007399d3cd231addc9a425782c1509ef354cf88f2f76fd43c9d3f02598b3f28b2cfeb70
|
||||
AUX gvpe.conf.example 723 BLAKE2B 3dc7d812263f1beccfdbf201beac3e7954e5cf1b832dfe9faed77648e9812ebe4c29fa73a6a670b52c018e8462ed8154c4f8c897e43472b1842ed71fdc11db72 SHA512 1c3660259a7fa3346d62c93c617540931586b667349131c54b0cbb16980ee7e5b9ec32060d09f5d2c646dd3c4f46821de3671c1aa68d9cdda514455ce924cf6d
|
||||
AUX gvpe.confd 67 BLAKE2B 53f67b5064d05330aeab275e76523aba5d109f950f49065ea1a99c76e1d85c8f0e9cc2667b0c2fde2b36da365bbf0786c52a6ae83a2e67634ed796577ff5d9f0 SHA512 c6b13eae127d51b8e269bb451c7faf12a2e9c0f27b2ed7c087b64f4297d84c5dc5d9ecb373ae6d2171b61f3c685360ac2d74978f8a7b3c7dcff967d40759c421
|
||||
AUX gvpe.rc 607 BLAKE2B 28e0a52c3d9fdd02505cf4a157f7b2a7afb39718361a6f2ce795427d10feeae5fdcf68d8600d59f93cd7394e8c4e9c87de574ae4a12f0123a69c6601756a68d2 SHA512 b21c22b776f2e2f53fa52e1d9474016d8e366229f90d062a970ff15c562bab83d1018f1ef9cb717d159f7d1038664d3790c73694fcc48f34a5ff50c536385e81
|
||||
AUX if-up 135 BLAKE2B 475e3152a07dfc216495a51e8a54ff33dd1471a9da7366a880e89037d874e0f82371cc53373628f393a78be2afb808f8413e904e8d54db725de2e818bb94443a SHA512 0fde496757369c0799b8ee0becf2e01cf83040d63478b2495bde6891211778fa4a22cc615f3c68a37f7e72b26c1718a76e2a7f16c50eb4753c22f372d2e9af07
|
||||
DIST gvpe-2.21.tar.gz 495636 BLAKE2B 092d0459438622d6a920902cb15e48d724cd2b21e42a4cf882acaeae84fb21f81c6a2fa4b8ad97b816487e334b1840476fc1afa4e4f4c6f2430ed334f6fe9049 SHA512 074178914667c8f3cb8bfbac46d0796b1583f913cff294e72df57e520d56ac844c916a90992655a89b35e433baba7d9dff1b1712c85e323ced89a3c98c3f5266
|
||||
DIST gvpe-2.25.tar.gz 516339 BLAKE2B c72d0747b5decc93b21e3befabbe7fdb0bbad533408e8663e0c4e11c6ae6305c48a76ea2701c5224f44b67569b235bbf130bc57f3f2ef3c0756d6ffb55d24192 SHA512 9122efde787641603c91e067f03f4534c137e5cd274b1d096652cc176335bef6b36662fae1ab2330af6ca17043249086c1c7ee0643f8854154938e161e452e3d
|
||||
DIST gvpe-3.0.tar.gz 519289 BLAKE2B 515b9ad507ca2be142ef0a2d01e81b26a65ecede7411ca75d64df3ff66908e75640f3137f19cc4a9ba59a68dac10ba15844796e615281cfbea72938dcdf18b42 SHA512 b1a917277746226c78e083aaaf80cbfa96dd311a77229cbc81ad306eb1a7f996e2bc3e40cc6e80edd9e7df69f9c891154ee8118d5d57a5c05fb1cb224b9e59a7
|
||||
EBUILD gvpe-2.21.ebuild 3526 BLAKE2B b5132910494e1359d107b0c24a25d6bd9d3119a82bd9677ca2d165184fee7166aeb41d564a3dbee016fe4db5754a2d448d6657d6e534da5dadc8726f985149d6 SHA512 bce11abc37c0c8f25528a3d13c1c08403832f66220abd3400b1196083b3576904e4a6911e9233ed50dadfd5b5b2b89ccfe54355512fd3849d7c8ff500ad789fb
|
||||
EBUILD gvpe-2.25.ebuild 3436 BLAKE2B 5f368a2b11271ceb30d872c6ea48c828c63f910236631d5b03ba7bd5a5543c0bacc031919dc063086544d69cad9b0884038768bd1f9ccd9f05ff24764a258e50 SHA512 ac4854acbe2d653a0779e50fee950478788d13b9bfa414e1c22c3deeef0f2789e71e3585d5dc84067d0e2f502a480420cbae833876b7aa28af69b55161e2fec7
|
||||
EBUILD gvpe-3.0.ebuild 3474 BLAKE2B 2c416011df0ff40a8d24c26c6601d1cb91e5ee5589684147e3527b04557d2af836c76cf8cbfee7591941edc09107622d72071fab40f19bf82ee7af3b88d8aef2 SHA512 62f3a5d96daf428975f40a543b365ef9296f939c0727a06e026a5b42e6a11298f05900057373149878c07463626a46c451c4e9f847f1005a8285984cd743424a
|
||||
MISC ChangeLog 933 BLAKE2B 976ff83bad03b086dcb92893d8ea5e07efde08ff7343e1055ef636b3646bc9baf6753bd0b776e9a20bfed4e89a413b7ddb34eda9996e7074f055ab655c296aa6 SHA512 5950187dac76003fbf7fbf68f84dfd96d7307ba0d8a623d234a640d3919ea8b1e37d46879df80d0fd5d7fa9fd03ef9b5c985773f4b6f39e111b821bee7c83d42
|
||||
MISC metadata.xml 1529 BLAKE2B ed52b91008dd4afa020014801b081f8e940bb3034a38f18fc5d087cf6e38f3efedaf8913c482b45aab8474396bb47a2c5725cd9abe84f14287ea3bf665f96f85 SHA512 bb57cb89a1da2d405abf8cc294d75cbc57d472248f7c6d054a5f299a7243290303eb25514a25bd91f478add92392fe5d114a101aaa70f9413e189b3d3e4eee6b
|
||||
|
3
sys-apps/tuned/Manifest
Normal file
3
sys-apps/tuned/Manifest
Normal 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
|
16
sys-apps/tuned/files/tuned.initd
Normal file
16
sys-apps/tuned/files/tuned.initd
Normal 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
|
||||
}
|
61
sys-apps/tuned/tuned-2.14.0.ebuild
Normal file
61
sys-apps/tuned/tuned-2.14.0.ebuild
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user