* Morgan Yang ([email protected]) wrote:
> I have been using OpenVSwitch on RH6.4 following the rpmbuild and rpm install
> methods stated in INSTALL.RHEL. I've noticed that some utilities under the
> "utilities"directory is not installed a-part of the default rpm ovs install,
> namely ovs-controller.
>
> Examining the openvswitch.spec file, it looks like ovs-controller and a few
> tools are purposely removed to "make the RPM happy"
Any reason you are not using the packages w/ RHEL?
> # Get rid of stuff we don't want to make RPM happy.
> rm \
> $RPM_BUILD_ROOT/usr/bin/ovs-controller \
> $RPM_BUILD_ROOT/usr/share/man/man8/ovs-controller.8 \
> $RPM_BUILD_ROOT/usr/bin/ovs-test \
> $RPM_BUILD_ROOT/usr/bin/ovs-l3ping \
> $RPM_BUILD_ROOT/usr/share/man/man8/ovs-test.8 \
> $RPM_BUILD_ROOT/usr/share/man/man8/ovs-l3ping.8 \
> $RPM_BUILD_ROOT/usr/sbin/ovs-vlan-bug-workaround \
> $RPM_BUILD_ROOT/usr/share/man/man8/ovs-vlan-bug-workaround.8
>
> install -d -m 755 $RPM_BUILD_ROOT/var/lib/openvswitch
>
> Is it possible to build and install ovs-controller on RH separately?
Yes, that's how we build it now at RH.
The attached patch should build the controller as a separate
sub-package.
thanks,
-chris
diff --git a/rhel/openvswitch.spec.in b/rhel/openvswitch.spec.in
index f77cd3a..ba4e58b 100644
--- a/rhel/openvswitch.spec.in
+++ b/rhel/openvswitch.spec.in
@@ -25,6 +25,16 @@ Open vSwitch provides standard network bridging functions and
support for the OpenFlow protocol for remote per-flow control of
traffic.
+%package controller
+Summary: Open vSwitch OpenFlow controller
+License: ASL 2.0
+Requires: openvswitch = %{version}-%{release}
+
+%description controller
+Simple reference implementation of an OpenFlow controller for Open
+vSwitch. Manages any number of remote switches over OpenFlow protocol,
+causing them to function as L2 MAC-learning switches or hub.
+
%prep
%setup -q
@@ -56,8 +66,6 @@ install python/compat/argparse.py
$RPM_BUILD_ROOT/usr/share/openvswitch/python
# Get rid of stuff we don't want to make RPM happy.
rm \
- $RPM_BUILD_ROOT/usr/bin/ovs-controller \
- $RPM_BUILD_ROOT/usr/share/man/man8/ovs-controller.8 \
$RPM_BUILD_ROOT/usr/bin/ovs-test \
$RPM_BUILD_ROOT/usr/bin/ovs-l3ping \
$RPM_BUILD_ROOT/usr/share/man/man8/ovs-test.8 \
@@ -158,3 +166,7 @@ exit 0
/usr/share/doc/openvswitch-%{version}/README.RHEL
/var/lib/openvswitch
/var/log/openvswitch
+
+%files controller
+/usr/bin/ovs-controller
+/usr/share/man/man8/ovs-controller.8.gz
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss