@@ -75,8 +75,6 @@ install -m 755 xenserver/etc_xensource_scripts_vif \
7575 $RPM_BUILD_ROOT /usr/share/openvswitch/scripts/vif
7676install -m 755 xenserver/usr_share_openvswitch_scripts_ovs-external-ids \
7777 $RPM_BUILD_ROOT /usr/share/openvswitch/scripts/ovs-external-ids
78- install -m 755 xenserver/usr_share_openvswitch_scripts_refresh-xs-network-uuids \
79- $RPM_BUILD_ROOT /usr/share/openvswitch/scripts/refresh-xs-network-uuids
8078install -m 755 xenserver/usr_sbin_xen-bugtool \
8179 $RPM_BUILD_ROOT /usr/share/openvswitch/scripts/xen-bugtool
8280install -m 755 xenserver/usr_share_openvswitch_scripts_sysconfig.template \
@@ -111,77 +109,6 @@ install -d -m 755 $RPM_BUILD_ROOT/var/lib/openvswitch
111109rm -rf $RPM_BUILD_ROOT
112110
113111%post
114- if [ ! -f /etc/xensource-inventory ]; then
115- printf " XenSource inventory not present in /etc/xensource-inventory"
116- exit 1
117- fi
118- . /etc/xensource-inventory
119-
120- if [ "$1" = "1" ]; then
121- if md5sum -c --status << EOF
122- ca141d60061dcfdade73e75abc6529b5 /usr/sbin/brctl
123- b8e9835862ef1a9cec2a3f477d26c989 /etc/xensource/scripts/vif
124- 51970ad613a3996d5997e18e44db47da /opt/xensource/libexec/interface-reconfigure
125- 5654c8c36699fcc8744ca9cd5b855414 /usr/sbin/xen-bugtool
126- EOF
127- then
128- printf "\nVerified host scripts from XenServer 5.5.0.\n\n"
129- elif md5sum -c --status << EOF
130- ca141d60061dcfdade73e75abc6529b5 /usr/sbin/brctl
131- b8e9835862ef1a9cec2a3f477d26c989 /etc/xensource/scripts/vif
132- 51970ad613a3996d5997e18e44db47da /opt/xensource/libexec/interface-reconfigure
133- f6519085c2fc5f7bc4eccc294ed62000 /usr/sbin/xen-bugtool
134- EOF
135- then
136- printf "\nVerified host scripts from XenServer 5.5.0-24648p (Update 1)\n"
137- printf "or 5.5.0-25727p (Update 2).\n\n"
138- elif md5sum -c --status << EOF
139- ca141d60061dcfdade73e75abc6529b5 /usr/sbin/brctl
140- 02cf136237ed85fcbcc1efc15ce0591c /opt/xensource/libexec/interface-reconfigure
141- 3a192ee70ebf2153c90051b3af95f331 /opt/xensource/libexec/InterfaceReconfigureBridge.py
142- f71cadf1464caefa7943de0ab47fdd8a /opt/xensource/libexec/InterfaceReconfigure.py
143- d70f08f235fb1bfd49a0580e440f15a0 /opt/xensource/libexec/InterfaceReconfigureVswitch.py
144- f5c85ca825b1e6f5a0845530981cd836 /etc/xensource/scripts/vif
145- facb851606f82ca2bcc760a4d91bbe33 /usr/sbin/xen-bugtool
146- EOF
147- then
148- printf "\nVerified host scripts from XenServer 5.5.900-29381p.\n\n"
149- else
150- cat << EOF
151-
152- The original XenServer scripts replaced by this package are not those
153- of any supported version of XenServer. This could lead to unexpected
154- behavior of your server. Unless you are sure you know what you are
155- doing, it is highly recommended that you remove this package
156- immediately after the install completes, which will restore the
157- XenServer scripts that you were previously using.
158-
159- EOF
160- fi
161- fi
162-
163- # On XenServer 5.5.0, we need refresh-xs-network-uuids to run whenever
164- # XAPI starts or restarts. (On XenServer 5.6.0, XAPI calls the
165- # "update" method of the vswitch-cfg-update plugin whenever it starts
166- # or restarts, so this is no longer necessary.)
167- if test "$PRODUCT_VERSION" = "5.5.0"; then
168- RNU= /usr/share/openvswitch/scripts/refresh-xs-network-uuids
169- XSS= /opt/xensource/libexec/xapi-startup-script
170- if test -e $XSS && (test ! -L $XSS || test "`readlink $XSS`" != $RNU); then
171- echo "$XSS is already in use, refusing to overwrite"
172- exit 1
173- fi
174- rm -f $XSS
175- ln -s $RNU $XSS
176-
177- # If /etc/xensource/network.conf doesn't exist (it was added in 5.6.0),
178- # then interface-reconfigure will be unhappy when we run it below.
179- if test ! -e /etc/xensource/network.conf; then
180- echo bridge > /etc/xensource/network.conf
181- fi
182- fi
183-
184-
185112if test ! -e /var/xapi/network.dbcache; then
186113 if test " $1 " = 1; then
187114 printf " Creating xapi database cache... "
302229
303230%postun
304231if [ " $1 " = " 0" ]; then # $1 = 1 for upgrade
305- . /etc/xensource-inventory
306- if test " $PRODUCT_VERSION " = " 5.5.0" ; then
307- XSS=/opt/xensource/libexec/xapi-startup-script
308- rm -f $XSS
309- fi
310-
311232 rm -f /usr/lib/xsconsole/plugins-base/XSFeatureVSwitch.pyc \
312233 /usr/lib/xsconsole/plugins-base/XSFeatureVSwitch.pyo
313234
@@ -344,13 +265,8 @@ if [ "$1" = "0" ]; then # $1 = 1 for upgrade
344265 rm -f /etc/openvswitch/vswitchd.cacert
345266 rm -f /var/xapi/network.dbcache
346267
347- if test " $PRODUCT_VERSION " ! = " 5.5.0" ; then
348- # Configure system to use bridge
349- echo bridge > /etc/xensource/network.conf
350- else
351- # Get rid of network.conf entirely, to make the system pristine.
352- rm -f /etc/xensource/network.conf
353- fi
268+ # Configure system to use bridge
269+ echo bridge > /etc/xensource/network.conf
354270
355271 printf " \nYou MUST reboot the server now to complete the change to\n"
356272 printf " standard Xen networking. Attempts to modify networking on the\n"
367283/etc/logrotate.d/openvswitch
368284/etc/profile.d/openvswitch.sh
369285/lib/modules/%{xen_version }/kernel/extra/openvswitch/openvswitch_mod.ko
370- /lib/modules/%{xen_version }/kernel/extra/openvswitch/brcompat_mod.ko
371286/usr/share/openvswitch/python/ovs/__init__.py
372287/usr/share/openvswitch/python/ovs/daemon.py
373288/usr/share/openvswitch/python/ovs/db/__init__.py
391306/usr/share/openvswitch/python/ovs/util.py
392307/usr/share/openvswitch/python/uuid.py
393308/usr/share/openvswitch/scripts/ovs-external-ids
394- /usr/share/openvswitch/scripts/refresh-xs-network-uuids
395309/usr/share/openvswitch/scripts/interface-reconfigure
396310/usr/share/openvswitch/scripts/InterfaceReconfigure.py
397311/usr/share/openvswitch/scripts/InterfaceReconfigureBridge.py
401315/usr/share/openvswitch/scripts/sysconfig.template
402316/usr/share/openvswitch/scripts/ovs-save
403317/usr/share/openvswitch/vswitch.ovsschema
404- /usr/sbin/ovs-brcompatd
405318/usr/sbin/ovs-vswitchd
406319/usr/sbin/ovsdb-server
407320/usr/bin/ovs-appctl
419332/usr/share/man/man1/ovsdb-tool.1.gz
420333/usr/share/man/man5/ovs-vswitchd.conf.db.5.gz
421334/usr/share/man/man8/ovs-appctl.8.gz
422- /usr/share/man/man8/ovs-brcompatd.8.gz
423335/usr/share/man/man8/ovs-dpctl.8.gz
424336/usr/share/man/man8/ovs-ofctl.8.gz
425337/usr/share/man/man8/ovs-parse-leaks.8.gz
429341/usr/share/man/man8/ovs-vsctl.8.gz
430342/usr/share/man/man8/ovs-vswitchd.8.gz
431343/var/lib/openvswitch
344+ %exclude /lib/modules/%{xen_version }/kernel/extra/openvswitch/brcompat_mod.ko
432345%exclude /usr/lib/xsconsole/plugins-base/* .py[co]
346+ %exclude /usr/sbin/ovs-brcompatd
347+ %exclude /usr/share/man/man8/ovs-brcompatd.8.gz
433348%exclude /usr/share/openvswitch/scripts/* .py[co]
434349%exclude /usr/share/openvswitch/python/* .py[co]
435350%exclude /usr/share/openvswitch/python/ovs/* .py[co]
0 commit comments