summaryrefslogtreecommitdiffstats
path: root/recipes-networking/openvswitch/openvswitch.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-networking/openvswitch/openvswitch.inc')
-rw-r--r--recipes-networking/openvswitch/openvswitch.inc36
1 files changed, 18 insertions, 18 deletions
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