diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2013-11-16 19:43:16 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-16 13:58:39 -0600 |
commit | 9aca669283c47ce7910b1bcde6c4cae941d0349f (patch) | |
tree | bd81dd5e476854427218aece51e9a7b3a6c2ea9a /network/openvswitch/openvswitch.SlackBuild | |
parent | 216951f8c84f7e09fdc1165a8446d6ff8c19efb8 (diff) |
network/openvswitch: Updated for version 2.0.0.
Install the kernel module only if not available
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/openvswitch/openvswitch.SlackBuild')
-rw-r--r-- | network/openvswitch/openvswitch.SlackBuild | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/network/openvswitch/openvswitch.SlackBuild b/network/openvswitch/openvswitch.SlackBuild index ac30050473701..0cfd750534523 100644 --- a/network/openvswitch/openvswitch.SlackBuild +++ b/network/openvswitch/openvswitch.SlackBuild @@ -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 \ - $PKG/lib/modules/${KERNEL}/kernel/extra/openvswitch +# 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 \ |