diff options
Diffstat (limited to 'recipes-networking/openvswitch/openvswitch.inc')
| -rw-r--r-- | recipes-networking/openvswitch/openvswitch.inc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes-networking/openvswitch/openvswitch.inc b/recipes-networking/openvswitch/openvswitch.inc index 58e0fcb0..70ac5bc5 100644 --- a/recipes-networking/openvswitch/openvswitch.inc +++ b/recipes-networking/openvswitch/openvswitch.inc | |||
| @@ -63,6 +63,8 @@ FILES_${PN}-switch = "\ | |||
| 63 | ${systemd_unitdir}/system/ovs-vswitchd.service \ | 63 | ${systemd_unitdir}/system/ovs-vswitchd.service \ |
| 64 | ${systemd_unitdir}/system/openvswitch.service \ | 64 | ${systemd_unitdir}/system/openvswitch.service \ |
| 65 | ${systemd_unitdir}/system/ovsdb-server.service \ | 65 | ${systemd_unitdir}/system/ovsdb-server.service \ |
| 66 | ${sysconfdir}/sysconfig/openvswitch \ | ||
| 67 | ${sysconfdir}/openvswitch/default.conf \ | ||
| 66 | " | 68 | " |
| 67 | 69 | ||
| 68 | # silence a warning | 70 | # silence a warning |
| @@ -92,6 +94,14 @@ do_configure_prepend() { | |||
| 92 | CC=`echo '${CC}' | sed 's/-Wa,/-Xassembler /g'` | 94 | CC=`echo '${CC}' | sed 's/-Wa,/-Xassembler /g'` |
| 93 | } | 95 | } |
| 94 | 96 | ||
| 97 | do_install_prepend() { | ||
| 98 | SERVICE_FILE="${S}/rhel/usr_lib_systemd_system_ovs-vswitchd.service" | ||
| 99 | ${S}/build-aux/dpdkstrip.py \ | ||
| 100 | ${@bb.utils.contains('PACKAGECONFIG','dpdk','--dpdk','--nodpdk',d)} \ | ||
| 101 | < ${S}/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in \ | ||
| 102 | > ${SERVICE_FILE} | ||
| 103 | } | ||
| 104 | |||
| 95 | do_install_append() { | 105 | do_install_append() { |
| 96 | install -d ${D}/${sysconfdir}/default/ | 106 | install -d ${D}/${sysconfdir}/default/ |
| 97 | install -m 660 ${WORKDIR}/openvswitch-switch-setup ${D}/${sysconfdir}/default/openvswitch-switch | 107 | install -m 660 ${WORKDIR}/openvswitch-switch-setup ${D}/${sysconfdir}/default/openvswitch-switch |
| @@ -103,6 +113,14 @@ do_install_append() { | |||
| 103 | install -m 755 ${WORKDIR}/openvswitch-switch ${D}/${sysconfdir}/init.d/openvswitch-switch | 113 | install -m 755 ${WORKDIR}/openvswitch-switch ${D}/${sysconfdir}/init.d/openvswitch-switch |
| 104 | true || rm -fr ${D}/${datadir}/${PN}/pki | 114 | true || rm -fr ${D}/${datadir}/${PN}/pki |
| 105 | 115 | ||
| 116 | install -d ${D}/${sysconfdir}/sysconfig | ||
| 117 | install -m 644 ${S}/rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \ | ||
| 118 | ${D}/${sysconfdir}/sysconfig/openvswitch | ||
| 119 | |||
| 120 | install -d ${D}/${sysconfdir}/openvswitch | ||
| 121 | install -m 644 ${S}/rhel/etc_openvswitch_default.conf \ | ||
| 122 | ${D}/${sysconfdir}/openvswitch/default.conf | ||
| 123 | |||
| 106 | install -d ${D}/${systemd_unitdir}/system/ | 124 | install -d ${D}/${systemd_unitdir}/system/ |
| 107 | install -m 644 ${S}/rhel/usr_lib_systemd_system_ovs-vswitchd.service \ | 125 | install -m 644 ${S}/rhel/usr_lib_systemd_system_ovs-vswitchd.service \ |
| 108 | ${D}/${systemd_unitdir}/system/ovs-vswitchd.service | 126 | ${D}/${systemd_unitdir}/system/ovs-vswitchd.service |
