mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
openvswitch: upgrade to 2.8.1 ; package more stuff from the OVS build
I should have packaged the OVN stuff, VTEP and what-not earlier, but was not inspired to do this earlier. I made some time now to package those parts. Disabling flake8 & python3 explicitly. They might get detected and cause weird build errors. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
30
net/openvswitch/patches/0006-adapt-ovs-scripts.patch
Normal file
30
net/openvswitch/patches/0006-adapt-ovs-scripts.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
diff --git a/utilities/ovs-ctl.in b/utilities/ovs-ctl.in
|
||||
index dc1d02c..61ecf2f 100755
|
||||
--- a/utilities/ovs-ctl.in
|
||||
+++ b/utilities/ovs-ctl.in
|
||||
@@ -108,7 +108,7 @@ set_system_ids () {
|
||||
esac
|
||||
set "$@" external-ids:system-id="\"$SYSTEM_ID\""
|
||||
|
||||
- set "$@" external-ids:hostname="\"$(hostname -f)\""
|
||||
+ set "$@" external-ids:hostname="\"$(cat /proc/sys/kernel/hostname)\""
|
||||
|
||||
set "$@" external-ids:rundir="\"$rundir\""
|
||||
|
||||
diff --git a/utilities/ovs-lib.in b/utilities/ovs-lib.in
|
||||
index 8665698..7931bc6 100644
|
||||
--- a/utilities/ovs-lib.in
|
||||
+++ b/utilities/ovs-lib.in
|
||||
@@ -157,7 +157,11 @@ install_dir () {
|
||||
[ "${OVS_USER##*:}" != "" ] && INSTALL_GROUP="${OVS_USER##*:}"
|
||||
|
||||
if test ! -d "$DIR"; then
|
||||
- install -d -m "$INSTALL_MODE" -o "$INSTALL_USER" -g "$INSTALL_GROUP" "$DIR"
|
||||
+ mkdir -p "$DIR"
|
||||
+ [ -n "$INSTALL_MODE" ] && chmod "$INSTALL_MODE" "$DIR"
|
||||
+ local OWN="$INSTALL_USER"
|
||||
+ [ -n "$OWN" ] && [ -n "$INSTALL_GROUP" ] && OWN="${OWN}:${INSTALL_GROUP}"
|
||||
+ [ -n "$OWN" ] && chown "$OWN" "$DIR"
|
||||
restorecon "$DIR" >/dev/null 2>&1
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user