network/openvswitch: Updated for version 2.0.0.

Install the kernel module only if not available

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2013-11-16 19:43:16 +01:00 committed by Robby Workman
parent 216951f8c8
commit 9aca669283
2 changed files with 10 additions and 9 deletions

View File

@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=openvswitch
VERSION=${VERSION:-1.9.0}
VERSION=${VERSION:-2.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -89,11 +89,12 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/lib/modules/${KERNEL}/kernel/extra/openvswitch
install -m 644 datapath/linux/openvswitch.ko \
$PKG/lib/modules/${KERNEL}/kernel/extra/openvswitch
install -m 644 datapath/linux/brcompat.ko \
# install the kernel module only if not already available
if [ ! -f /lib/modules/$(uname -r)/kernel/net/openvswitch/openvswitch.ko ]; then
mkdir -p $PKG/lib/modules/${KERNEL}/kernel/extra/openvswitch
install -m 644 datapath/linux/openvswitch.ko \
$PKG/lib/modules/${KERNEL}/kernel/extra/openvswitch
fi
mkdir -p $PKG/etc/openvswitch $PKG/etc/rc.d $PKG/var/run/openvswitch
sed -e "s,@DOCDIR@,/usr/doc/$PRGNAM-$VERSION,g" $CWD/rc.openvswitch \

View File

@ -1,8 +1,8 @@
PRGNAM="openvswitch"
VERSION="1.9.0"
VERSION="2.0.0"
HOMEPAGE="http://openvswitch.org"
DOWNLOAD="http://openvswitch.org/releases/openvswitch-1.9.0.tar.gz"
MD5SUM="e9004202b0e10c0de9870f19d2044f11"
DOWNLOAD="http://openvswitch.org/releases/openvswitch-2.0.0.tar.gz"
MD5SUM="7d7a58350e634e515e0fe43c64d64f44"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""