Hi,
I've created openvswitch RPMs for opensuse 11.2. They're available
from software.opensuse.org. To install them on opensuse 11.2:
sudo zypper ar
http://download.opensuse.org/repositories/home:/jnaous/openSUSE_11.2
sudo zypper in openvswitch-kmp-<kernelflavor> openvswitch-utils
I've attached the two needed spec files I used, but they assume an
opensuse build environment and a pre-patched tarball, so until the
next release, it's better to install from the repo since they'll be
updated automatically.
Turns out there is a pmullaney from novell who has already built a
package for an older version. I'll try to keep the package updated.
Jad.
#
# spec file for package openvswitch
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild
Name: openvswitch
BuildRequires: %kernel_module_package_buildreqs autoconf >= 2.64 python >= 2.4 pyxml libopenssl-devel
Url: http://openvswitch.org/
License: Apache 2
Group: Productivity/Networking/Routing
Summary: Open vSwitch is a multilayer virtual switch
Version: git.20100702
Release: 1
Source: %{name}-%{version}.tar.bz2
Source1: preamble.spec
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kernel_module_package -p preamble.spec
%debug_package
%description
Open vSwitch is a multilayer virtual switch licensed under the open source
Apache 2 license. Our goal is to build a production quality switch for VM
environments that supports standard management interfaces (e.g. NetFlow,
RSPAN, ERSPAN, IOS-like CLI), and is open to programmatic extension and
control. In addition, it is designed to support distribution across multiple
physical servers similar to VMware’s distributed vswitch or Cisco’s Nexus
1000V.
Open vSwitch currently supports multiple virtualization technologies. It is
the default switch in the Xen Cloud Platform. And it supports open source Xen,
XenServer, KVM, and VirtualBox. The bulk of the code is written in
platform-independent C and is easily ported to other environments.
Authors:
--------
Andy Southgate [email protected]
Ben Pfaff [email protected]
Dan Wendlandt [email protected]
David Erickson [email protected]
Glen Gibb [email protected]
Ian Campbell [email protected]
Jean Tourrilhes [email protected]
Jeremy Stribling [email protected]
Jesse Gross [email protected]
Jun Nakajima [email protected]
Justin Pettit [email protected]
Keith Amidon [email protected]
Martin Casado [email protected]
Natasha Gude [email protected]
Neil McKee [email protected]
Paul Fazzone [email protected]
Reid Price [email protected]
Tetsuo NAKAGAWA [email protected]
Thomas Lacroix [email protected]
Todd Deshane [email protected]
Tom Everman [email protected]
Wei Yongjun [email protected]
Yu Zhiguo [email protected]
%prep
%setup
set -- *
mkdir -p obj
%build
################ kernel
for flavor in %flavors_to_build; do
./configure --with-l26=%{kernel_source $flavor} --with-l26-source=/usr/src/linux CFLAGS="$RPM_OPT_FLAGS"
make -C datapath/linux-2.6
rm -rf obj/$flavor
cp -r datapath/linux-2.6 obj/$flavor
done
################ utils
./configure --prefix=/usr --enable-ssl=yes CFLAGS="$RPM_OPT_FLAGS"
make
%install
################ kernel
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates
for flavor in %flavors_to_build; do
make -C %{kernel_source $flavor} modules_install \
M=$PWD/obj/$flavor
done
################ utils
make DESTDIR=${RPM_BUILD_ROOT} install
%clean
rm -rf ${RPM_BUILD_ROOT}
########################################################################
%package utils
Summary: Open vSwitch utilities
Group: Productivity/Networking/Routing
Requires: openssl
%description utils
The package provides utilities to work with Open vSwitch.
Open vSwitch is a multilayer virtual switch licensed under the open source
Apache 2 license. Our goal is to build a production quality switch for VM
environments that supports standard management interfaces (e.g. NetFlow,
RSPAN, ERSPAN, IOS-like CLI), and is open to programmatic extension and
control. In addition, it is designed to support distribution across multiple
physical servers similar to VMware’s distributed vswitch or Cisco’s Nexus
1000V.
Open vSwitch currently supports multiple virtualization technologies. It is
the default switch in the Xen Cloud Platform. And it supports open source Xen,
XenServer, KVM, and VirtualBox. The bulk of the code is written in
platform-independent C and is easily ported to other environments.
%files utils
%defattr(-, root, root)
/usr/bin/ovs-appctl
/usr/bin/ovs-controller
/usr/bin/ovs-discover
/usr/bin/ovs-dpctl
/usr/bin/ovs-kill
/usr/bin/ovs-ofctl
/usr/bin/ovs-openflowd
/usr/bin/ovs-pki
/usr/bin/ovs-vsctl
/usr/bin/ovs-wdt
/usr/bin/ovsdb-client
/usr/bin/ovsdb-tool
/usr/sbin/ovs-brcompatd
/usr/sbin/ovs-monitor
/usr/sbin/ovs-vswitchd
/usr/sbin/ovsdb-server
%doc /usr/share/man/man1/ovsdb-client.1.gz
%doc /usr/share/man/man1/ovsdb-server.1.gz
%doc /usr/share/man/man1/ovsdb-tool.1.gz
%doc /usr/share/man/man5/ovs-vswitchd.conf.db.5.gz
%doc /usr/share/man/man8/ovs-appctl.8.gz
%doc /usr/share/man/man8/ovs-brcompatd.8.gz
%doc /usr/share/man/man8/ovs-controller.8.gz
%doc /usr/share/man/man8/ovs-discover.8.gz
%doc /usr/share/man/man8/ovs-dpctl.8.gz
%doc /usr/share/man/man8/ovs-kill.8.gz
%doc /usr/share/man/man8/ovs-ofctl.8.gz
%doc /usr/share/man/man8/ovs-openflowd.8.gz
%doc /usr/share/man/man8/ovs-pki.8.gz
%doc /usr/share/man/man8/ovs-vsctl.8.gz
%doc /usr/share/man/man8/ovs-vswitchd.8.gz
########################################################################
%changelog
* Sat Jul 3 2010 Jad Naous <[email protected]> - git.20100702_1
- Initial build
Supplements: packageand(kernel-%{1}:%{name})
Requires: kernel-%{1}
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org