diff options
-rw-r--r-- | network/openvswitch/README | 20 | ||||
-rw-r--r-- | network/openvswitch/doinst.sh | 29 | ||||
-rw-r--r-- | network/openvswitch/openvswitch.SlackBuild | 125 | ||||
-rw-r--r-- | network/openvswitch/openvswitch.info | 10 | ||||
-rw-r--r-- | network/openvswitch/rc.openvswitch | 58 | ||||
-rw-r--r-- | network/openvswitch/slack-desc | 19 |
6 files changed, 0 insertions, 261 deletions
diff --git a/network/openvswitch/README b/network/openvswitch/README deleted file mode 100644 index 3416c573e5..0000000000 --- a/network/openvswitch/README +++ /dev/null @@ -1,20 +0,0 @@ -Open vSwitch is a production quality, multilayer virtual switch licensed -under the open source Apache 2.0 license. It is designed to enable -massive network automation through programmatic extension, while still -supporting standard management interfaces (e.g. NetFlow, sFlow, RSPAN, -ERSPAN, CLI). In addition, it is designed to support distribution -across multiple physical servers similar to VMware.s vNetwork distributed -vswitch or Cisco.s Nexus 1000V. - -Open vSwitch can operate both as a soft switch running within the -hypervisor, and as the control stack for switching silicon. It has been -ported to multiple virtualization platforms and switching chipsets. It -is the default switch in the Xen Cloud Platform and also supports Xen, -XenServer, KVM, and VirtualBox. The bulk of the code is written in -platform-independent C and is easily ported to other environments. - -NOTE: In order to remain compatible with newer versions of Slackware this - build script will check for the existence of the Slackware provided - openvswitch.ko kernel module. If the kernel module already exists - on the machine then the script will skip installation of the module - file. Open vSwitch utilities are always installed. diff --git a/network/openvswitch/doinst.sh b/network/openvswitch/doinst.sh deleted file mode 100644 index 9a89f95fb8..0000000000 --- a/network/openvswitch/doinst.sh +++ /dev/null @@ -1,29 +0,0 @@ -config() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - # If there's no config file by that name, mv it over: - if [ ! -r $OLD ]; then - mv $NEW $OLD - elif [ "$(cat $OLD|md5sum)" = "$(cat $NEW|md5sum)" ]; then - # toss the redundant copy - rm $NEW - fi - # Otherwise, we leave the .new copy for the admin to consider... -} - -preserve_perms() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - if [ -e $OLD ]; then - cp -a $OLD ${NEW}.incoming - cat $NEW > ${NEW}.incoming - mv ${NEW}.incoming $NEW - fi - config $NEW -} - -preserve_perms etc/rc.d/rc.openvswitch.new - -if [ -x /sbin/depmod ]; then - chroot . /sbin/depmod -a >/dev/null 2>&1 -fi diff --git a/network/openvswitch/openvswitch.SlackBuild b/network/openvswitch/openvswitch.SlackBuild deleted file mode 100644 index 389bef4bf9..0000000000 --- a/network/openvswitch/openvswitch.SlackBuild +++ /dev/null @@ -1,125 +0,0 @@ -#!/bin/sh - -# Slackware build script for openvswitch - -# Copyright 2008-2015 Christopher Walker Copperas Cove, TX -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -PRGNAM=openvswitch -VERSION=${VERSION:-2.3.2} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} - -KERNEL=${KERNEL:-$(uname -r)} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --with-l26=/lib/modules/${KERNEL}/build \ - --enable-ndebug \ - --enable-ssl \ - --enable-static=no \ - --enable-shared=yes \ - --build=$ARCH-slackware-linux - -make -make install DESTDIR=$PKG - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -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 - -# 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/var/lib/openvswitch $PKG/etc/rc.d $PKG/var/run/openvswitch -sed -e "s,@DOCDIR@,/usr/doc/$PRGNAM-$VERSION,g" $CWD/rc.openvswitch \ - > $PKG/etc/rc.d/rc.openvswitch.new -chmod 0755 $PKG/etc/rc.d/rc.openvswitch.new - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/schema -cp -a \ - AUTHORS BUILD.Windows COPYING CodingStyle DESIGN FAQ INSTALL* \ - IntegrationGuide NEWS NOTICE OPENFLOW-1.1+ PORTING README* \ - REPORTING-BUGS TODO WHY-OVS \ - $PKG/usr/doc/$PRGNAM-$VERSION -cp -a vswitchd/vswitch.ovsschema $PKG/usr/doc/$PRGNAM-$VERSION/schema -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/openvswitch/openvswitch.info b/network/openvswitch/openvswitch.info deleted file mode 100644 index 3ccf422da6..0000000000 --- a/network/openvswitch/openvswitch.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="openvswitch" -VERSION="2.3.2" -HOMEPAGE="http://openvswitch.org" -DOWNLOAD="http://openvswitch.org/releases/openvswitch-2.3.2.tar.gz" -MD5SUM="5a5739ed82f1accac1c2d8d7553dc88f" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Christopher Walker" -EMAIL="kris240376@gmail.com" diff --git a/network/openvswitch/rc.openvswitch b/network/openvswitch/rc.openvswitch deleted file mode 100644 index 9d2fd75e46..0000000000 --- a/network/openvswitch/rc.openvswitch +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh -# Start/stop/restart openvswitch. - -# To start Open vSwitch automatically at boot, be sure this script is -# executable: -# -# % chmod 755 /etc/rc.d/rc.openvswitch - -DBCONF=/var/lib/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 - -# Insert kernel driver for Open vSwitch: -/sbin/modprobe openvswitch - -# Insert kernel driver for VLANs: -/sbin/modprobe 8021q - -# Start openvswitch: -openvswitch_start() { - echo "Starting openvswitch: /etc/rc.d/rc.openvswitch" - if [ ! -f $DBCONF ]; then - ovsdb-tool create $DBCONF @DOCDIR@/schema/vswitch.ovsschema - fi - /usr/sbin/ovsdb-server $DBCONF --remote=punix:$SOCKET --detach --pidfile=$DBPID --verbose=ANY:ANY:err - /usr/bin/ovs-vsctl --no-wait --verbose=ANY:ANY:err init - /usr/sbin/ovs-vswitchd unix:$SOCKET --detach --pidfile=$VSPID --verbose=ANY:ANY:err -} - -# Stop openvswitch: -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 - fi - if [ -e $DBPID ]; then - pid=$(cat $DBPID) - /usr/bin/ovs-appctl -t /var/run/openvswitch/ovsdb-server.$pid.ctl exit - fi -} - -case "$1" in -'start') - openvswitch_start - ;; -'stop') - openvswitch_stop - ;; -'restart') - openvswitch_stop - sleep 1 - openvswitch_start - ;; -*) - echo "usage $0 start|stop|restart" -esac diff --git a/network/openvswitch/slack-desc b/network/openvswitch/slack-desc deleted file mode 100644 index ca49b52d7d..0000000000 --- a/network/openvswitch/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -openvswitch: openvswitch (multilayer virtual switch) -openvswitch: -openvswitch: Open vSwitch is a production quality, multilayer virtual switch -openvswitch: licensed under the open source Apache 2.0 license. It is designed -openvswitch: to enable massive network automation through programmatic extension, -openvswitch: while still supporting standard management interface (e.g. NetFlow, -openvswitch: sFlow, RSPAN, ERSPAN, CLI). -openvswitch: -openvswitch: Homepage: http://openvswitch.org/ -openvswitch: -openvswitch: |