mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-misc/openvswitch: eutils--, BDEPEND, fully drop old slash strip
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_7 python3_8 python3_9 )
|
||||
|
||||
inherit autotools eutils linux-info linux-mod python-r1 systemd tmpfiles
|
||||
inherit autotools linux-info linux-mod python-r1 systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Production quality, multilayer virtual switch"
|
||||
HOMEPAGE="https://www.openvswitch.org"
|
||||
@@ -24,8 +24,8 @@ RDEPEND="
|
||||
dev-python/zope-interface[${PYTHON_USEDEP}]
|
||||
debug? ( dev-lang/perl )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-apps/util-linux[caps]
|
||||
virtual/pkgconfig"
|
||||
sys-apps/util-linux[caps]"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
PATCHES="
|
||||
"${FILESDIR}/xcp-interface-reconfigure-2.3.2.patch"
|
||||
@@ -95,14 +95,14 @@ src_install() {
|
||||
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
|
||||
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
|
||||
rm -rf "${ED}"/var/run || die
|
||||
|
||||
newconfd "${FILESDIR}/ovsdb-server_conf2" ovsdb-server
|
||||
newconfd "${FILESDIR}/ovs-vswitchd.confd-r2" ovs-vswitchd
|
||||
@@ -136,10 +136,10 @@ pkg_config() {
|
||||
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"
|
||||
"${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"
|
||||
"${EROOT}"/usr/share/openvswitch/vswitch.ovsschema || die "creating database failed"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user