summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2015-12-11 12:28:24 -0500
committerBruce Ashfield <bruce.ashfield@windriver.com>2015-12-15 08:47:25 -0500
commit5181ec2259eba5f4d3ec8516ea693bbc94481cf3 (patch)
tree5404662634a996cdcde7e82e501446f24628ed6e /recipes-networking/openvswitch
parent9772ddbec385f08a3b92bd70a0de898c6e982aa7 (diff)
downloadmeta-virtualization-5181ec2259eba5f4d3ec8516ea693bbc94481cf3.tar.gz
openvswitch: rename openvswitch-controller
As of version 2.4.0 openvswitch-controller has been renamed to openvswitch-testcontroller. This was documented in the upstream 'NEWS': - test-controller has been renamed ovs-testcontroller at request of users who find it useful for testing basic OpenFlow setups. It is still not a necessary or desirable part of most Open vSwitch deployments. Our initscripts and such have continued to reference the old name despite the application name name changing and so openvswitch-controller packaging has been broken for some time now. We rename the openvswitch-controller package to reflect the upstream name change and apply this name change throughout. We also drop the RDEPENDS as the upstream comments also indicate that this package is not needed for a normal openvswitch deployment. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-networking/openvswitch')
-rwxr-xr-xrecipes-networking/openvswitch/files/openvswitch-testcontroller (renamed from recipes-networking/openvswitch/files/openvswitch-controller)20
-rw-r--r--recipes-networking/openvswitch/files/openvswitch-testcontroller-setup (renamed from recipes-networking/openvswitch/files/openvswitch-controller-setup)6
-rw-r--r--recipes-networking/openvswitch/openvswitch.inc36
3 files changed, 31 insertions, 31 deletions
diff --git a/recipes-networking/openvswitch/files/openvswitch-controller b/recipes-networking/openvswitch/files/openvswitch-testcontroller
index 026974a7..aad5ad60 100755
--- a/recipes-networking/openvswitch/files/openvswitch-controller
+++ b/recipes-networking/openvswitch/files/openvswitch-testcontroller
@@ -19,7 +19,7 @@
19# Suite 330, Boston, MA 02111-1307 USA 19# Suite 330, Boston, MA 02111-1307 USA
20# 20#
21### BEGIN INIT INFO 21### BEGIN INIT INFO
22# Provides: openvswitch-controller 22# Provides: openvswitch-testcontroller
23# Required-Start: $network $local_fs $remote_fs 23# Required-Start: $network $local_fs $remote_fs
24# Required-Stop: $remote_fs 24# Required-Stop: $remote_fs
25# Should-Start: $named 25# Should-Start: $named
@@ -31,9 +31,9 @@
31 31
32PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 32PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
33 33
34DAEMON=/usr/bin/ovs-controller # Introduce the server's location here 34DAEMON=/usr/bin/ovs-testcontroller # Introduce the server's location here
35NAME=ovs-controller # Introduce the short server's name here 35NAME=ovs-testcontroller # Introduce the short server's name here
36DESC=ovs-controller # Introduce a short description here 36DESC=ovs-testcontroller # Introduce a short description here
37LOGDIR=/var/log/openvswitch # Log directory to use 37LOGDIR=/var/log/openvswitch # Log directory to use
38 38
39PIDFILE=/var/run/openvswitch/$NAME.pid 39PIDFILE=/var/run/openvswitch/$NAME.pid
@@ -43,7 +43,7 @@ test -x $DAEMON || exit 0
43. /lib/lsb/init-functions 43. /lib/lsb/init-functions
44 44
45# Default options, these can be overriden by the information 45# Default options, these can be overriden by the information
46# at /etc/default/openvswitch-controller 46# at /etc/default/openvswitch-testcontroller
47DAEMON_OPTS="" # Additional options given to the server 47DAEMON_OPTS="" # Additional options given to the server
48 48
49DODTIME=10 # Time to wait for the server to die, in seconds 49DODTIME=10 # Time to wait for the server to die, in seconds
@@ -56,7 +56,7 @@ LOGFILE=$LOGDIR/$NAME.log # Server logfile
56 # is set start-stop-daemon will chuid the server 56 # is set start-stop-daemon will chuid the server
57 57
58# Include defaults if available 58# Include defaults if available
59default=/etc/default/openvswitch-controller 59default=/etc/default/openvswitch-testcontroller
60if [ -f $default ] ; then 60if [ -f $default ] ; then
61 . $default 61 . $default
62fi 62fi
@@ -113,9 +113,9 @@ start_server() {
113 SSL_OPTS= 113 SSL_OPTS=
114 case $LISTEN in 114 case $LISTEN in
115 *ssl*) 115 *ssl*)
116 : ${PRIVKEY:=/etc/openvswitch-controller/privkey.pem} 116 : ${PRIVKEY:=/etc/openvswitch-testcontroller/privkey.pem}
117 : ${CERT:=/etc/openvswitch-controller/cert.pem} 117 : ${CERT:=/etc/openvswitch-testcontroller/cert.pem}
118 : ${CACERT:=/etc/openvswitch-controller/cacert.pem} 118 : ${CACERT:=/etc/openvswitch-testcontroller/cacert.pem}
119 if test ! -e "$PRIVKEY" || test ! -e "$CERT" || 119 if test ! -e "$PRIVKEY" || test ! -e "$CERT" ||
120 test ! -e "$CACERT"; then 120 test ! -e "$CACERT"; then
121 if test ! -e "$PRIVKEY"; then 121 if test ! -e "$PRIVKEY"; then
@@ -265,7 +265,7 @@ case "$1" in
265 log_warning_msg "cannot re-read the config file (use restart)." 265 log_warning_msg "cannot re-read the config file (use restart)."
266 ;; 266 ;;
267 *) 267 *)
268 N=/etc/init.d/openvswitch-controller 268 N=/etc/init.d/openvswitch-testcontroller
269 echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2 269 echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2
270 exit 1 270 exit 1
271 ;; 271 ;;
diff --git a/recipes-networking/openvswitch/files/openvswitch-controller-setup b/recipes-networking/openvswitch/files/openvswitch-testcontroller-setup
index 1d9f9261..b431ece5 100644
--- a/recipes-networking/openvswitch/files/openvswitch-controller-setup
+++ b/recipes-networking/openvswitch/files/openvswitch-testcontroller-setup
@@ -15,15 +15,15 @@ LISTEN="pssl:"
15 15
16# PRIVKEY: Name of file containing controller's private key. 16# PRIVKEY: Name of file containing controller's private key.
17# Required if SSL enabled. 17# Required if SSL enabled.
18PRIVKEY=/etc/openvswitch-controller/privkey.pem 18PRIVKEY=/etc/openvswitch-testcontroller/privkey.pem
19 19
20# CERT: Name of file containing certificate for private key. 20# CERT: Name of file containing certificate for private key.
21# Required if SSL enabled. 21# Required if SSL enabled.
22CERT=/etc/openvswitch-controller/cert.pem 22CERT=/etc/openvswitch-testcontroller/cert.pem
23 23
24# CACERT: Name of file containing switch CA certificate. 24# CACERT: Name of file containing switch CA certificate.
25# Required if SSL enabled. 25# Required if SSL enabled.
26CACERT=/etc/openvswitch-controller/cacert.pem 26CACERT=/etc/openvswitch-testcontroller/cacert.pem
27 27
28# Additional options to pass to controller, e.g. "--hub" 28# Additional options to pass to controller, e.g. "--hub"
29DAEMON_OPTS="" 29DAEMON_OPTS=""
diff --git a/recipes-networking/openvswitch/openvswitch.inc b/recipes-networking/openvswitch/openvswitch.inc
index 454aadf0..13c7d062 100644
--- a/recipes-networking/openvswitch/openvswitch.inc
+++ b/recipes-networking/openvswitch/openvswitch.inc
@@ -14,9 +14,9 @@ LICENSE = "Apache-2"
14DEPENDS += "bridge-utils openssl python perl" 14DEPENDS += "bridge-utils openssl python perl"
15 15
16RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid coreutils \ 16RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid coreutils \
17 python perl perl-module-strict ${PN}-switch ${PN}-controller \ 17 python perl perl-module-strict ${PN}-switch \
18 bash" 18 bash"
19RDEPENDS_${PN}-controller = "${PN} lsb ${PN}-pki" 19RDEPENDS_${PN}-testcontroller = "${PN} lsb ${PN}-pki"
20RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen" 20RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen"
21RDEPENDS_${PN}-pki = "${PN}" 21RDEPENDS_${PN}-pki = "${PN}"
22RDEPENDS_${PN}-brcompat = "${PN} ${PN}-switch" 22RDEPENDS_${PN}-brcompat = "${PN} ${PN}-switch"
@@ -29,8 +29,8 @@ RDEPENDS_${PN} += "sed gawk grep"
29SRC_URI = "\ 29SRC_URI = "\
30 file://openvswitch-switch \ 30 file://openvswitch-switch \
31 file://openvswitch-switch-setup \ 31 file://openvswitch-switch-setup \
32 file://openvswitch-controller \ 32 file://openvswitch-testcontroller \
33 file://openvswitch-controller-setup \ 33 file://openvswitch-testcontroller-setup \
34 file://openvswitch-add-target-python-handling.patch \ 34 file://openvswitch-add-target-python-handling.patch \
35 file://openvswitch-add-target-perl-handling.patch \ 35 file://openvswitch-add-target-perl-handling.patch \
36 " 36 "
@@ -47,13 +47,13 @@ CONFIGUREOPT_DEPTRACK = ""
47# EXTRA_OECONF = "--with-linux=${STAGING_KERNEL_DIR} KARCH=${TARGET_ARCH}" 47# EXTRA_OECONF = "--with-linux=${STAGING_KERNEL_DIR} KARCH=${TARGET_ARCH}"
48 48
49ALLOW_EMPTY_${PN}-pki = "1" 49ALLOW_EMPTY_${PN}-pki = "1"
50PACKAGES =+ "${PN}-controller ${PN}-switch ${PN}-brcompat ${PN}-pki" 50PACKAGES =+ "${PN}-testcontroller ${PN}-switch ${PN}-brcompat ${PN}-pki"
51 51
52FILES_${PN}-controller = "\ 52FILES_${PN}-testcontroller = "\
53 ${sysconfdir}/init.d/openvswitch-controller \ 53 ${sysconfdir}/init.d/openvswitch-testcontroller \
54 ${sysconfdir}/default/openvswitch-controller \ 54 ${sysconfdir}/default/openvswitch-testcontroller \
55 ${sysconfdir}/openvswitch-controller \ 55 ${sysconfdir}/openvswitch-testcontroller \
56 ${bindir}/ovs-controller \ 56 ${bindir}/ovs-testcontroller \
57 " 57 "
58 58
59FILES_${PN}-brcompat = "${sbindir}/ovs-brcompatd" 59FILES_${PN}-brcompat = "${sbindir}/ovs-brcompatd"
@@ -69,21 +69,21 @@ FILES_${PN} += "/run"
69 69
70inherit autotools update-rc.d 70inherit autotools update-rc.d
71 71
72INITSCRIPT_PACKAGES = "${PN}-switch ${PN}-controller" 72INITSCRIPT_PACKAGES = "${PN}-switch ${PN}-testcontroller"
73INITSCRIPT_NAME_${PN}-switch = "openvswitch-switch" 73INITSCRIPT_NAME_${PN}-switch = "openvswitch-switch"
74INITSCRIPT_PARAMS_${PN}-switch = "defaults 71" 74INITSCRIPT_PARAMS_${PN}-switch = "defaults 71"
75 75
76INITSCRIPT_NAME_${PN}-controller = "openvswitch-controller" 76INITSCRIPT_NAME_${PN}-testcontroller = "openvswitch-testcontroller"
77INITSCRIPT_PARAMS_${PN}-controller = "defaults 72" 77INITSCRIPT_PARAMS_${PN}-testcontroller = "defaults 72"
78 78
79do_install_append() { 79do_install_append() {
80 install -d ${D}/${sysconfdir}/default/ 80 install -d ${D}/${sysconfdir}/default/
81 install -m 660 ${WORKDIR}/openvswitch-switch-setup ${D}/${sysconfdir}/default/openvswitch-switch 81 install -m 660 ${WORKDIR}/openvswitch-switch-setup ${D}/${sysconfdir}/default/openvswitch-switch
82 install -d ${D}/${sysconfdir}/openvswitch-controller 82 install -d ${D}/${sysconfdir}/openvswitch-testcontroller
83 install -m 660 ${WORKDIR}/openvswitch-controller-setup ${D}/${sysconfdir}/default/openvswitch-controller 83 install -m 660 ${WORKDIR}/openvswitch-testcontroller-setup ${D}/${sysconfdir}/default/openvswitch-testcontroller
84 84
85 install -d ${D}/${sysconfdir}/init.d/ 85 install -d ${D}/${sysconfdir}/init.d/
86 install -m 755 ${WORKDIR}/openvswitch-controller ${D}/${sysconfdir}/init.d/openvswitch-controller 86 install -m 755 ${WORKDIR}/openvswitch-testcontroller ${D}/${sysconfdir}/init.d/openvswitch-testcontroller
87 install -m 755 ${WORKDIR}/openvswitch-switch ${D}/${sysconfdir}/init.d/openvswitch-switch 87 install -m 755 ${WORKDIR}/openvswitch-switch ${D}/${sysconfdir}/init.d/openvswitch-switch
88 true || rm -fr ${D}/${datadir}/${PN}/pki 88 true || rm -fr ${D}/${datadir}/${PN}/pki
89 89
@@ -102,7 +102,7 @@ pkg_postinst_${PN}-pki () {
102 fi 102 fi
103} 103}
104 104
105pkg_postinst_${PN}-controller () { 105pkg_postinst_${PN}-testcontroller () {
106 # can't do this offline 106 # can't do this offline
107 if [ "x$D" != "x" ]; then 107 if [ "x$D" != "x" ]; then
108 exit 1 108 exit 1
@@ -112,7 +112,7 @@ pkg_postinst_${PN}-controller () {
112 ovs-pki init --dir=$D/${datadir}/${PN}/pki 112 ovs-pki init --dir=$D/${datadir}/${PN}/pki
113 fi 113 fi
114 114
115 cd $D/${sysconfdir}/openvswitch-controller 115 cd $D/${sysconfdir}/openvswitch-testcontroller
116 if ! test -e cacert.pem; then 116 if ! test -e cacert.pem; then
117 ln -s $D/${datadir}/${PN}/pki/switchca/cacert.pem cacert.pem 117 ln -s $D/${datadir}/${PN}/pki/switchca/cacert.pem cacert.pem
118 fi 118 fi