diff options
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 ac30050473..0cfd750534 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 \ |