X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=xenserver%2Fvswitch-xen.spec;h=e660027c34838246f1ddf62f436183dfca801650;hb=96fba48f52254c0cef942dcce130e33d290297da;hp=58e35dec95e6b8cc23f5bb8e78dece0d6d8b8933;hpb=064af42167bf4fc9aaea2702d80ce08074b889c0;p=openvswitch diff --git a/xenserver/vswitch-xen.spec b/xenserver/vswitch-xen.spec index 58e35dec..e660027c 100644 --- a/xenserver/vswitch-xen.spec +++ b/xenserver/vswitch-xen.spec @@ -19,12 +19,13 @@ Name: vswitch Summary: Virtual switch Group: System Environment/Daemons -URL: http://www.vswitch.org/ +URL: http://www.openvswitch.org/ Version: %{vswitch_version} License: GPL3 Release: 1 Source: openvswitch-%{vswitch_version}.tar.gz Buildroot: /tmp/vswitch-xen-rpm +Requires: kernel-xen = %(echo '%{xen_version}' | sed 's/xen$//') %description The vswitch provides standard network bridging functions augmented with @@ -36,7 +37,7 @@ traffic. %build ./configure --prefix=%{_prefix} --localstatedir=%{_localstatedir} --with-l26=/lib/modules/%{xen_version}/build --enable-ssl %{build_number} -make +make %{_smp_mflags} %install rm -rf $RPM_BUILD_ROOT @@ -64,7 +65,9 @@ install -m 755 xenserver/opt_xensource_libexec_interface-reconfigure \ $RPM_BUILD_ROOT%{_prefix}/scripts/interface-reconfigure install -m 755 xenserver/etc_xensource_scripts_vif \ $RPM_BUILD_ROOT%{_prefix}/scripts/vif -install -m 755 \ +install -m 755 xenserver/root_vswitch_scripts_dump-vif-details \ + $RPM_BUILD_ROOT%{_prefix}/scripts/dump-vif-details +install -m 644 \ xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py \ $RPM_BUILD_ROOT%{_prefix}/scripts/XSFeatureVSwitch.py @@ -81,6 +84,7 @@ rm -rf \ $RPM_BUILD_ROOT/root/vswitch/bin/ovs-switchui \ $RPM_BUILD_ROOT/root/vswitch/bin/ovs-wdt \ $RPM_BUILD_ROOT/root/vswitch/bin/secchan \ + $RPM_BUILD_ROOT/root/vswitch/kernel_modules/veth_mod.ko \ $RPM_BUILD_ROOT/root/vswitch/sbin/ovs-monitor \ $RPM_BUILD_ROOT/root/vswitch/share/man/man8/ovs-controller.8 \ $RPM_BUILD_ROOT/root/vswitch/share/man/man8/ovs-discover.8 \ @@ -114,7 +118,7 @@ EOF fi fi -if test ! -e /etc/vswitch.dbcache; then +if test ! -e /etc/ovs-vswitch.dbcache; then if test "$1" = 1; then printf "Creating xapi database cache... " else @@ -141,7 +145,7 @@ try: finally: session.xenapi.session.logout() -dbcache_file = "/etc/vswitch.dbcache" +dbcache_file = "/etc/ovs-vswitch.dbcache" f = open(dbcache_file, 'w') pickle.dump({'vlans': vlans, 'bonds': bonds, @@ -284,7 +288,7 @@ fi /etc/profile.d/vswitch.sh /root/vswitch/kernel_modules/brcompat_mod.ko /root/vswitch/kernel_modules/openvswitch_mod.ko -/root/vswitch/kernel_modules/veth_mod.ko +/root/vswitch/scripts/dump-vif-details /root/vswitch/scripts/interface-reconfigure /root/vswitch/scripts/vif /root/vswitch/scripts/XSFeatureVSwitch.py