openvswitch: initial import

This commit is contained in:
Thomas Penteker 2014-01-30 22:52:52 +01:00
parent 18cf5a596d
commit 95dba9b8e8
5 changed files with 199 additions and 0 deletions

133
openvswitch/.footprint Normal file
View File

@ -0,0 +1,133 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/openvswitch/
-rwxr-xr-x root/root etc/ovsd
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/ovs-appctl
-rwxr-xr-x root/root usr/bin/ovs-benchmark
-rwxr-xr-x root/root usr/bin/ovs-controller
-rwxr-xr-x root/root usr/bin/ovs-dpctl
-rwxr-xr-x root/root usr/bin/ovs-dpctl-top
-rwxr-xr-x root/root usr/bin/ovs-l3ping
-rwxr-xr-x root/root usr/bin/ovs-ofctl
-rwxr-xr-x root/root usr/bin/ovs-parse-backtrace
-rwxr-xr-x root/root usr/bin/ovs-pcap
-rwxr-xr-x root/root usr/bin/ovs-pki
-rwxr-xr-x root/root usr/bin/ovs-tcpundump
-rwxr-xr-x root/root usr/bin/ovs-test
-rwxr-xr-x root/root usr/bin/ovs-vlan-test
-rwxr-xr-x root/root usr/bin/ovs-vsctl
-rwxr-xr-x root/root usr/bin/ovsdb-client
-rwxr-xr-x root/root usr/bin/ovsdb-tool
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/ovs-benchmark.1.gz
-rw-r--r-- root/root usr/man/man1/ovs-pcap.1.gz
-rw-r--r-- root/root usr/man/man1/ovs-tcpundump.1.gz
-rw-r--r-- root/root usr/man/man1/ovsdb-client.1.gz
-rw-r--r-- root/root usr/man/man1/ovsdb-server.1.gz
-rw-r--r-- root/root usr/man/man1/ovsdb-tool.1.gz
drwxr-xr-x root/root usr/man/man5/
-rw-r--r-- root/root usr/man/man5/ovs-vswitchd.conf.db.5.gz
drwxr-xr-x root/root usr/man/man8/
-rw-r--r-- root/root usr/man/man8/ovs-appctl.8.gz
-rw-r--r-- root/root usr/man/man8/ovs-bugtool.8.gz
-rw-r--r-- root/root usr/man/man8/ovs-controller.8.gz
-rw-r--r-- root/root usr/man/man8/ovs-ctl.8.gz
-rw-r--r-- root/root usr/man/man8/ovs-dpctl-top.8.gz
-rw-r--r-- root/root usr/man/man8/ovs-dpctl.8.gz
-rw-r--r-- root/root usr/man/man8/ovs-l3ping.8.gz
-rw-r--r-- root/root usr/man/man8/ovs-ofctl.8.gz
-rw-r--r-- root/root usr/man/man8/ovs-parse-backtrace.8.gz
-rw-r--r-- root/root usr/man/man8/ovs-pki.8.gz
-rw-r--r-- root/root usr/man/man8/ovs-test.8.gz
-rw-r--r-- root/root usr/man/man8/ovs-vlan-bug-workaround.8.gz
-rw-r--r-- root/root usr/man/man8/ovs-vlan-test.8.gz
-rw-r--r-- root/root usr/man/man8/ovs-vsctl.8.gz
-rw-r--r-- root/root usr/man/man8/ovs-vswitchd.8.gz
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/ovs-bugtool
-rwxr-xr-x root/root usr/sbin/ovs-vlan-bug-workaround
-rwxr-xr-x root/root usr/sbin/ovs-vswitchd
-rwxr-xr-x root/root usr/sbin/ovsdb-server
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/applications/
drwxr-xr-x root/root usr/share/openvswitch/
drwxr-xr-x root/root usr/share/openvswitch/bugtool-plugins/
drwxr-xr-x root/root usr/share/openvswitch/bugtool-plugins/kernel-info/
-rw-r--r-- root/root usr/share/openvswitch/bugtool-plugins/kernel-info/openvswitch.xml
drwxr-xr-x root/root usr/share/openvswitch/bugtool-plugins/network-status/
-rw-r--r-- root/root usr/share/openvswitch/bugtool-plugins/network-status/openvswitch.xml
-rw-r--r-- root/root usr/share/openvswitch/bugtool-plugins/system-configuration.xml
drwxr-xr-x root/root usr/share/openvswitch/bugtool-plugins/system-configuration/
-rw-r--r-- root/root usr/share/openvswitch/bugtool-plugins/system-configuration/openvswitch.xml
drwxr-xr-x root/root usr/share/openvswitch/bugtool-plugins/system-logs/
-rw-r--r-- root/root usr/share/openvswitch/bugtool-plugins/system-logs/openvswitch.xml
drwxr-xr-x root/root usr/share/openvswitch/python/
drwxr-xr-x root/root usr/share/openvswitch/python/ovs/
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/__init__.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/daemon.py
drwxr-xr-x root/root usr/share/openvswitch/python/ovs/db/
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/db/__init__.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/db/data.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/db/error.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/db/idl.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/db/parser.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/db/schema.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/db/types.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/dirs.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/fatal_signal.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/json.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/jsonrpc.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/ovsuuid.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/poller.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/process.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/reconnect.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/socket_util.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/stream.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/timeval.py
drwxr-xr-x root/root usr/share/openvswitch/python/ovs/unixctl/
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/unixctl/__init__.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/unixctl/client.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/unixctl/server.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/util.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/version.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovs/vlog.py
drwxr-xr-x root/root usr/share/openvswitch/python/ovstest/
-rw-r--r-- root/root usr/share/openvswitch/python/ovstest/__init__.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovstest/args.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovstest/rpcserver.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovstest/tcp.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovstest/tests.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovstest/udp.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovstest/util.py
-rw-r--r-- root/root usr/share/openvswitch/python/ovstest/vswitch.py
drwxr-xr-x root/root usr/share/openvswitch/scripts/
-rwxr-xr-x root/root usr/share/openvswitch/scripts/ovs-bugtool-bfd-show
-rwxr-xr-x root/root usr/share/openvswitch/scripts/ovs-bugtool-bond-show
-rwxr-xr-x root/root usr/share/openvswitch/scripts/ovs-bugtool-cfm-show
-rwxr-xr-x root/root usr/share/openvswitch/scripts/ovs-bugtool-coverage-show
-rwxr-xr-x root/root usr/share/openvswitch/scripts/ovs-bugtool-daemons-ver
-rwxr-xr-x root/root usr/share/openvswitch/scripts/ovs-bugtool-lacp-show
-rwxr-xr-x root/root usr/share/openvswitch/scripts/ovs-bugtool-list-dbs
-rwxr-xr-x root/root usr/share/openvswitch/scripts/ovs-bugtool-memory-show
-rwxr-xr-x root/root usr/share/openvswitch/scripts/ovs-bugtool-ovs-appctl-dpif
-rwxr-xr-x root/root usr/share/openvswitch/scripts/ovs-bugtool-ovs-ofctl-dump-flows
-rwxr-xr-x root/root usr/share/openvswitch/scripts/ovs-bugtool-ovs-ofctl-show
-rwxr-xr-x root/root usr/share/openvswitch/scripts/ovs-bugtool-ovsdb-dump
-rwxr-xr-x root/root usr/share/openvswitch/scripts/ovs-bugtool-tc-class-show
-rwxr-xr-x root/root usr/share/openvswitch/scripts/ovs-bugtool-vsctl-show
-rwxr-xr-x root/root usr/share/openvswitch/scripts/ovs-check-dead-ifs
-rwxr-xr-x root/root usr/share/openvswitch/scripts/ovs-ctl
-rw-r--r-- root/root usr/share/openvswitch/scripts/ovs-lib
-rwxr-xr-x root/root usr/share/openvswitch/scripts/ovs-save
-rw-r--r-- root/root usr/share/openvswitch/vswitch.ovsschema
drwxr-xr-x root/root usr/share/ovsdbmonitor/
drwxr-xr-x root/root var/
drwxr-xr-x root/root var/lib/
drwxr-xr-x root/root var/lib/openvswitch/
drwxr-xr-x root/root var/lib/openvswitch/pki/
drwxr-xr-x root/root var/log/
drwxr-xr-x root/root var/log/openvswitch/
drwxr-xr-x root/root var/run/
drwxr-xr-x root/root var/run/openvswitch/

2
openvswitch/.md5sum Normal file
View File

@ -0,0 +1,2 @@
7d7a58350e634e515e0fe43c64d64f44 openvswitch-2.0.0.tar.gz
a39713e450024fc67ce14e51dda1e6ea ovsd

21
openvswitch/Pkgfile Normal file
View File

@ -0,0 +1,21 @@
# Description: multilayer virtual software switch
# URL: http://openvswitch.org/
# Maintainer: Thomas Penteker, tek at serverop dot de
# Depends on:
name=openvswitch
version=2.0.0
release=1
source=(http://openvswitch.org/releases/openvswitch-$version.tar.gz ovsd)
build() {
cd $name-$version
./configure --prefix=/usr \
--mandir=/usr/man \
--sysconfdir=/etc \
--localstatedir=/var
make
make install DESTDIR=$PKG
install -D $SRC/ovsd $PKG/etc/ovsd
}

40
openvswitch/ovsd Executable file
View File

@ -0,0 +1,40 @@
#!/bin/sh
case $1 in
start)
ovsdb-server --remote=punix:/var/run/openvswitch/db.sock \
--remote=db:Open_vSwitch,Open_vSwitch,manager_options \
--private-key=db:Open_vSwitch,SSL,private_key \
--certificate=db:Open_vSwitch,SSL,certificate \
--bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert \
--pidfile --detach \
--log-file
ovs-vswitchd --pidfile --detach --log-file
;;
stop)
PIDFILE=/var/run/openvswitch/ovsdb-server.pid
if [ -f "$PIDFILE" ]; then
kill $(< $PIDFILE)
rm -f "$PIDFILE"
else
killall -q /usr/sbin/ovsdb-server
fi
PIDFILE=/var/run/openvswitch/ovs-vswitchd.pid
if [ -f "$PIDFILE" ]; then
kill $(< $PIDFILE)
rm -f "$PIDFILE"
else
killall -q /usr/sbin/ovs-vswitchd
fi
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file

3
openvswitch/post-install Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
ovsdb-tool create /etc/openvswitch/conf.db /usr/share/openvswitch/vswitch.ovsschema