mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
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:
parent
e9a0293d9a
commit
2aaeed6737
3 changed files with 12 additions and 10 deletions
|
@ -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}
|
||||
|
|
|
@ -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=""
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue