diff options
author | Mario Preksavec <mario@slackware.hr> | 2021-11-25 12:00:30 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-11-29 09:43:58 +0700 |
commit | 2aaeed6737780992afc283bcf0e10d9f59f1392e (patch) | |
tree | b765fef9a13d204b276e1935a29c25f5bf836971 /network/openvswitch-utils | |
parent | e9a0293d9ac899a92268f7776fa93c3c923ddd54 (diff) |
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>
Diffstat (limited to 'network/openvswitch-utils')
-rw-r--r-- | network/openvswitch-utils/openvswitch-utils.SlackBuild | 4 | ||||
-rw-r--r-- | network/openvswitch-utils/openvswitch-utils.info | 6 | ||||
-rw-r--r-- | network/openvswitch-utils/rc.openvswitch | 12 |
3 files changed, 12 insertions, 10 deletions
diff --git a/network/openvswitch-utils/openvswitch-utils.SlackBuild b/network/openvswitch-utils/openvswitch-utils.SlackBuild index 4dfa7fc6b4ad..d8dd942db05d 100644 --- a/network/openvswitch-utils/openvswitch-utils.SlackBuild +++ b/network/openvswitch-utils/openvswitch-utils.SlackBuild @@ -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} diff --git a/network/openvswitch-utils/openvswitch-utils.info b/network/openvswitch-utils/openvswitch-utils.info index 7574a95b01e8..5e074837c4bb 100644 --- a/network/openvswitch-utils/openvswitch-utils.info +++ b/network/openvswitch-utils/openvswitch-utils.info @@ -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="" diff --git a/network/openvswitch-utils/rc.openvswitch b/network/openvswitch-utils/rc.openvswitch index 8022ae3b7431..c173da0a921c 100644 --- a/network/openvswitch-utils/rc.openvswitch +++ b/network/openvswitch-utils/rc.openvswitch @@ -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 } |