diff options
author | Mark Asselstine <mark.asselstine@windriver.com> | 2015-12-11 12:28:24 -0500 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2015-12-15 08:47:25 -0500 |
commit | 5181ec2259eba5f4d3ec8516ea693bbc94481cf3 (patch) | |
tree | 5404662634a996cdcde7e82e501446f24628ed6e /recipes-networking | |
parent | 9772ddbec385f08a3b92bd70a0de898c6e982aa7 (diff) | |
download | meta-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')
-rwxr-xr-x | recipes-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.inc | 36 |
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 | ||
32 | PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | 32 | PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin |
33 | 33 | ||
34 | DAEMON=/usr/bin/ovs-controller # Introduce the server's location here | 34 | DAEMON=/usr/bin/ovs-testcontroller # Introduce the server's location here |
35 | NAME=ovs-controller # Introduce the short server's name here | 35 | NAME=ovs-testcontroller # Introduce the short server's name here |
36 | DESC=ovs-controller # Introduce a short description here | 36 | DESC=ovs-testcontroller # Introduce a short description here |
37 | LOGDIR=/var/log/openvswitch # Log directory to use | 37 | LOGDIR=/var/log/openvswitch # Log directory to use |
38 | 38 | ||
39 | PIDFILE=/var/run/openvswitch/$NAME.pid | 39 | PIDFILE=/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 |
47 | DAEMON_OPTS="" # Additional options given to the server | 47 | DAEMON_OPTS="" # Additional options given to the server |
48 | 48 | ||
49 | DODTIME=10 # Time to wait for the server to die, in seconds | 49 | DODTIME=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 |
59 | default=/etc/default/openvswitch-controller | 59 | default=/etc/default/openvswitch-testcontroller |
60 | if [ -f $default ] ; then | 60 | if [ -f $default ] ; then |
61 | . $default | 61 | . $default |
62 | fi | 62 | fi |
@@ -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. |
18 | PRIVKEY=/etc/openvswitch-controller/privkey.pem | 18 | PRIVKEY=/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. |
22 | CERT=/etc/openvswitch-controller/cert.pem | 22 | CERT=/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. |
26 | CACERT=/etc/openvswitch-controller/cacert.pem | 26 | CACERT=/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" |
29 | DAEMON_OPTS="" | 29 | DAEMON_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" | |||
14 | DEPENDS += "bridge-utils openssl python perl" | 14 | DEPENDS += "bridge-utils openssl python perl" |
15 | 15 | ||
16 | RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid coreutils \ | 16 | RDEPENDS_${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" |
19 | RDEPENDS_${PN}-controller = "${PN} lsb ${PN}-pki" | 19 | RDEPENDS_${PN}-testcontroller = "${PN} lsb ${PN}-pki" |
20 | RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen" | 20 | RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen" |
21 | RDEPENDS_${PN}-pki = "${PN}" | 21 | RDEPENDS_${PN}-pki = "${PN}" |
22 | RDEPENDS_${PN}-brcompat = "${PN} ${PN}-switch" | 22 | RDEPENDS_${PN}-brcompat = "${PN} ${PN}-switch" |
@@ -29,8 +29,8 @@ RDEPENDS_${PN} += "sed gawk grep" | |||
29 | SRC_URI = "\ | 29 | SRC_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 | ||
49 | ALLOW_EMPTY_${PN}-pki = "1" | 49 | ALLOW_EMPTY_${PN}-pki = "1" |
50 | PACKAGES =+ "${PN}-controller ${PN}-switch ${PN}-brcompat ${PN}-pki" | 50 | PACKAGES =+ "${PN}-testcontroller ${PN}-switch ${PN}-brcompat ${PN}-pki" |
51 | 51 | ||
52 | FILES_${PN}-controller = "\ | 52 | FILES_${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 | ||
59 | FILES_${PN}-brcompat = "${sbindir}/ovs-brcompatd" | 59 | FILES_${PN}-brcompat = "${sbindir}/ovs-brcompatd" |
@@ -69,21 +69,21 @@ FILES_${PN} += "/run" | |||
69 | 69 | ||
70 | inherit autotools update-rc.d | 70 | inherit autotools update-rc.d |
71 | 71 | ||
72 | INITSCRIPT_PACKAGES = "${PN}-switch ${PN}-controller" | 72 | INITSCRIPT_PACKAGES = "${PN}-switch ${PN}-testcontroller" |
73 | INITSCRIPT_NAME_${PN}-switch = "openvswitch-switch" | 73 | INITSCRIPT_NAME_${PN}-switch = "openvswitch-switch" |
74 | INITSCRIPT_PARAMS_${PN}-switch = "defaults 71" | 74 | INITSCRIPT_PARAMS_${PN}-switch = "defaults 71" |
75 | 75 | ||
76 | INITSCRIPT_NAME_${PN}-controller = "openvswitch-controller" | 76 | INITSCRIPT_NAME_${PN}-testcontroller = "openvswitch-testcontroller" |
77 | INITSCRIPT_PARAMS_${PN}-controller = "defaults 72" | 77 | INITSCRIPT_PARAMS_${PN}-testcontroller = "defaults 72" |
78 | 78 | ||
79 | do_install_append() { | 79 | do_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 | ||
105 | pkg_postinst_${PN}-controller () { | 105 | pkg_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 |