Update to 1.10.0 (#958814)

f38
Thomas Graf 12 years ago
parent 84554fe5b0
commit 9dc09e0e0a

1
.gitignore vendored

@ -3,3 +3,4 @@
/openvswitch-1.7.1.tar.gz /openvswitch-1.7.1.tar.gz
/openvswitch-1.7.3.tar.gz /openvswitch-1.7.3.tar.gz
/openvswitch-1.9.0.tar.gz /openvswitch-1.9.0.tar.gz
/openvswitch-1.10.0.tar.gz

@ -5,7 +5,7 @@
# chkconfig: 2345 09 91 # chkconfig: 2345 09 91
# description: Manage Open vSwitch kernel modules and user-space daemons # description: Manage Open vSwitch kernel modules and user-space daemons
# Copyright (C) 2009, 2010, 2011 Nicira Networks, Inc. # Copyright (C) 2009, 2010, 2011 Nicira, Inc.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
@ -31,7 +31,7 @@
test -e /etc/sysconfig/openvswitch && . /etc/sysconfig/openvswitch test -e /etc/sysconfig/openvswitch && . /etc/sysconfig/openvswitch
start () { start () {
set $ovs_ctl ${1-start} set ovs_ctl ${1-start}
set "$@" --system-id=random set "$@" --system-id=random
if test X"$FORCE_COREFILES" != X; then if test X"$FORCE_COREFILES" != X; then
set "$@" --force-corefiles="$FORCE_COREFILES" set "$@" --force-corefiles="$FORCE_COREFILES"
@ -45,23 +45,28 @@ start () {
if test X"$VSWITCHD_MLOCKALL" != X; then if test X"$VSWITCHD_MLOCKALL" != X; then
set "$@" --mlockall="$VSWITCHD_MLOCKALL" set "$@" --mlockall="$VSWITCHD_MLOCKALL"
fi fi
if test X"$BRCOMPAT" = Xyes; then set "$@" $OVS_CTL_OPTS
set "$@" --brcompat
fi
"$@" "$@"
# Fedora kernel does not support OVS GRE tunneling yet ovs_ctl --protocol=gre enable-protocol
# $ovs_ctl --protocol=gre enable-protocol
touch /var/lock/subsys/openvswitch touch /var/lock/subsys/openvswitch
} }
stop () { stop () {
$ovs_ctl stop ovs_ctl stop
rm -f /var/lock/subsys/openvswitch rm -f /var/lock/subsys/openvswitch
} }
ovs_ctl=/usr/share/openvswitch/scripts/ovs-ctl restart () {
if [ "$1" = "--save-flows=yes" ]; then
start restart
else
stop
start
fi
}
case $1 in case $1 in
start) start)
start start
@ -70,17 +75,17 @@ case $1 in
stop stop
;; ;;
restart) restart)
stop shift
start restart "$@"
;; ;;
reload|force-reload) reload|force-reload)
# Nothing to do. # Nothing to do.
;; ;;
status) status)
$ovs_ctl status ovs_ctl status
;; ;;
version) version)
$ovs_ctl version ovs_ctl version
;; ;;
force-reload-kmod) force-reload-kmod)
start force-reload-kmod start force-reload-kmod

@ -1,4 +1,4 @@
# Copyright (C) 2009, 2010, 2011 Nicira Networks, Inc. # Copyright (C) 2009, 2010, 2011, 2012 Nicira, Inc.
# #
# Copying and distribution of this file, with or without modification, # Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright # are permitted in any medium without royalty provided the copyright
@ -10,11 +10,8 @@
missingok missingok
postrotate postrotate
# Tell Open vSwitch daemons to reopen their log files # Tell Open vSwitch daemons to reopen their log files
if [ -e /var/run/openvswitch/ovs-vswitchd.pid ]; then for pidfile in `cd /var/run/openvswitch && echo *.pid`; do
/usr/bin/ovs-appctl -t ovs-vswitchd vlog/reopen ovs-appctl -t "${pidfile%%.pid}" vlog/reopen
fi done
if [ -e /var/run/openvswitch/ovsdb-server.pid ]; then
/usr/bin/ovs-appctl -t ovsdb-server vlog/reopen
fi
endscript endscript
} }

@ -1,5 +1,5 @@
Name: openvswitch Name: openvswitch
Version: 1.9.0 Version: 1.10.0
Release: 1%{?dist} Release: 1%{?dist}
Summary: Open vSwitch daemon/database/utilities Summary: Open vSwitch daemon/database/utilities
@ -24,9 +24,9 @@ BuildRequires: groff graphviz
Requires: openssl iproute module-init-tools Requires: openssl iproute module-init-tools
Requires(post): systemd Requires(post): systemd-units
Requires(preun): systemd Requires(preun): systemd-units
Requires(postun): systemd Requires(postun): systemd-units
%description %description
Open vSwitch provides standard network bridging functions and Open vSwitch provides standard network bridging functions and
@ -117,17 +117,47 @@ rm -f \
desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE6} desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE6}
%post %post
# Initial installation %if 0%{?systemd_post:1}
%systemd_post openvswitch.service %systemd_post %{name}.service
%else
# Package install, not upgrade
if [ $1 -eq 1 ]; then
/bin/systemctl daemon-reload >dev/null || :
fi
%endif
# Package with native systemd unit file is installed for the first time
%triggerun -- %{name} < 1.9.0-1
# Save the current service runlevel info
# User must manually run systemd-sysv-convert --apply openvswitch
# to migrate them to systemd targets
/usr/bin/systemd-sysv-convert --save %{name} >/dev/null 2>&1 ||:
# Run these because the SysV package being removed won't do them
/sbin/chkconfig --del %{name} >/dev/null 2>&1 || :
/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
%preun %preun
%if 0%{?systemd_preun:1}
%systemd_preun %{name}.service
%else
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade # Package removal, not upgrade
%systemd_preun openvswitch.service /bin/systemctl --no-reload disable %{name}.service >/dev/null 2>&1 || :
/bin/systemctl stop %{name}.service >/dev/null 2>&1 || :
fi
%endif
%postun %postun
%if 0%{?systemd_postun_with_restart:1}
%systemd_postun_with_restart %{name}.service
%else
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ "$1" -ge "1" ] ; then
# Package upgrade, not uninstall # Package upgrade, not uninstall
%systemd_postun_with_restart openvswitch.service /bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
fi
%endif
%files %files
%{_sysconfdir}/openvswitch/ %{_sysconfdir}/openvswitch/
@ -202,6 +232,9 @@ desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE6}
%changelog %changelog
* Tue May 02 2013 Thomas Graf <tgraf@redhat.com> - 1.10.0-1
- Update to 1.10.0 (#958814)
* Tue Feb 28 2013 Thomas Graf <tgraf@redhat.com> - 1.9.0-1 * Tue Feb 28 2013 Thomas Graf <tgraf@redhat.com> - 1.9.0-1
- Update to 1.9.0 (#916537) - Update to 1.9.0 (#916537)

@ -1 +1,2 @@
e9004202b0e10c0de9870f19d2044f11 openvswitch-1.9.0.tar.gz e9004202b0e10c0de9870f19d2044f11 openvswitch-1.9.0.tar.gz
fe8b49efe9f86b57abab00166b971106 openvswitch-1.10.0.tar.gz

Loading…
Cancel
Save