diff options
Diffstat (limited to 'recipes-networking/openvswitch')
-rw-r--r-- | recipes-networking/openvswitch/openvswitch_1.10.0.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/recipes-networking/openvswitch/openvswitch_1.10.0.bb b/recipes-networking/openvswitch/openvswitch_1.10.0.bb index fff597c1..4fb2670b 100644 --- a/recipes-networking/openvswitch/openvswitch_1.10.0.bb +++ b/recipes-networking/openvswitch/openvswitch_1.10.0.bb | |||
@@ -14,7 +14,7 @@ RDEPENDS_${PN}-pki = "${PN}" | |||
14 | RDEPENDS_${PN}-brcompat = "${PN} ${PN}-switch" | 14 | RDEPENDS_${PN}-brcompat = "${PN} ${PN}-switch" |
15 | RRECOMMENDS_${PN} += "kernel-module-openvswitch" | 15 | RRECOMMENDS_${PN} += "kernel-module-openvswitch" |
16 | 16 | ||
17 | PR = "r1" | 17 | PR = "r2" |
18 | 18 | ||
19 | SRC_URI = "http://openvswitch.org/releases/openvswitch-${PV}.tar.gz \ | 19 | SRC_URI = "http://openvswitch.org/releases/openvswitch-${PV}.tar.gz \ |
20 | file://openvswitch-switch \ | 20 | file://openvswitch-switch \ |
@@ -91,6 +91,10 @@ pkg_postinst_${PN}-controller () { | |||
91 | exit 1 | 91 | exit 1 |
92 | fi | 92 | fi |
93 | 93 | ||
94 | if test ! -d $D/${datadir}/${PN}/pki; then | ||
95 | ovs-pki init --dir=$D/${datadir}/${PN}/pki | ||
96 | fi | ||
97 | |||
94 | cd $D/${sysconfdir}/openvswitch-controller | 98 | cd $D/${sysconfdir}/openvswitch-controller |
95 | if ! test -e cacert.pem; then | 99 | if ! test -e cacert.pem; then |
96 | ln -s $D/${datadir}/${PN}/pki/switchca/cacert.pem cacert.pem | 100 | ln -s $D/${datadir}/${PN}/pki/switchca/cacert.pem cacert.pem |