network/openvswitch-utils: Updated for version 2.15.1.

Signed-off-by: Mario Preksavec <mario@slackware.hr>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Mario Preksavec 2021-11-25 12:00:30 +01:00 committed by Willy Sudiarto Raharjo
parent e9a0293d9a
commit 2aaeed6737
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 12 additions and 10 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for openvswitch-utils
# Copyright 2010, 2011, 2013, 2014, 2015, 2016, 2018, 2020 Mario Preksavec, Zagreb, Croatia
# Copyright 2010, 2021 Mario Preksavec, Zagreb, Croatia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=openvswitch-utils
VERSION=${VERSION:-2.14.0}
VERSION=${VERSION:-2.15.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}

View file

@ -1,8 +1,8 @@
PRGNAM="openvswitch-utils"
VERSION="2.14.0"
VERSION="2.15.1"
HOMEPAGE="http://openvswitch.org/"
DOWNLOAD="http://openvswitch.org/releases/openvswitch-2.14.0.tar.gz"
MD5SUM="92e464f962c5ebbac73c58ad799fa9d9"
DOWNLOAD="http://openvswitch.org/releases/openvswitch-2.15.1.tar.gz"
MD5SUM="2eaee0ffd9caee87bed2d682af7075ac"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

View file

@ -13,9 +13,10 @@
#
DBCONF=/etc/openvswitch/ovs-vswitchd.conf.db
SOCKET=/var/run/openvswitch/db.sock
VSPID=/var/run/openvswitch/ovs-vswitchd.pid
DBPID=/var/run/openvswitch/ovsdb-server.pid
RUNDIR=/var/run/openvswitch
SOCKET=$RUNDIR/db.sock
VSPID=$RUNDIR/ovs-vswitchd.pid
DBPID=$RUNDIR/ovsdb-server.pid
# Insert kernel driver for Open vSwitch:
/sbin/modprobe openvswitch
@ -26,6 +27,7 @@ DBPID=/var/run/openvswitch/ovsdb-server.pid
# Start openvswitch:
openvswitch_start() {
echo "Starting openvswitch: /etc/rc.d/rc.openvswitch"
mkdir -p $RUNDIR
/usr/sbin/ovsdb-server /etc/openvswitch/ovs-vswitchd.conf.db --remote=punix:$SOCKET \
--detach --pidfile=$DBPID --verbose=ANY:ANY:err
/usr/bin/ovs-vsctl --no-wait --verbose=ANY:ANY:err init
@ -37,11 +39,11 @@ openvswitch_stop() {
echo "Stopping openvswitch: /etc/rc.d/rc.openvswitch"
if [ -e $VSPID ]; then
pid=$(cat $VSPID)
/usr/bin/ovs-appctl -t /var/run/openvswitch/ovs-vswitchd.$pid.ctl exit
/usr/bin/ovs-appctl -t $RUNDIR/ovs-vswitchd.$pid.ctl exit
fi
if [ -e $DBPID ]; then
pid=$(cat $DBPID)
/usr/bin/ovs-appctl -t /var/run/openvswitch/ovsdb-server.$pid.ctl exit
/usr/bin/ovs-appctl -t $RUNDIR/ovsdb-server.$pid.ctl exit
fi
}