summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorJacopo Dall'Aglio <jacopo.dallaglio@kynetics.com>2020-06-26 14:29:02 +0200
committerKhem Raj <raj.khem@gmail.com>2020-06-26 09:00:05 -0700
commit5c39cf1d9e70820c7e42b0f36873d723912229e4 (patch)
tree7eb217135e9f23b7935b74cdb17e71d99516477e /meta-networking
parentc44140e7e35261a871997645c87944f43ae1f798 (diff)
downloadmeta-openembedded-5c39cf1d9e70820c7e42b0f36873d723912229e4.tar.gz
netplan: upgrade 0.98 -> 0.99
Main new features of netplan release 0.99: - YAML parser is now in a separate library named libnetplan - Systemd unit file for launching WPA Supplicant with netplan configuration is now generated at runtime See here for a full comparison: https://github.com/CanonicalLtd/netplan/compare/0.98...0.99 Signed-off-by: Jacopo Dall'Aglio <jacopo.dallaglio@kynetics.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-connectivity/netplan/netplan_0.99.bb (renamed from meta-networking/recipes-connectivity/netplan/netplan_0.98.bb)20
1 files changed, 10 insertions, 10 deletions
diff --git a/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb b/meta-networking/recipes-connectivity/netplan/netplan_0.99.bb
index 9f123c70f..67ccddf6a 100644
--- a/meta-networking/recipes-connectivity/netplan/netplan_0.98.bb
+++ b/meta-networking/recipes-connectivity/netplan/netplan_0.99.bb
@@ -11,8 +11,8 @@ LICENSE = "GPLv3"
11LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" 11LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
12 12
13S = "${WORKDIR}/git" 13S = "${WORKDIR}/git"
14SRCREV = "5d22e9d22c4a3724d27b80b0cd9b898ae8f59d2b" 14SRCREV = "1ccf7e0e3a7a91edbbe3f9f0669c8bbab8248cd1"
15PV = "0.98+git${SRCPV}" 15PV = "0.99+git${SRCPV}"
16 16
17SRC_URI = " \ 17SRC_URI = " \
18 git://github.com/CanonicalLtd/netplan.git \ 18 git://github.com/CanonicalLtd/netplan.git \
@@ -20,17 +20,17 @@ SRC_URI = " \
20 20
21DEPENDS = "glib-2.0 libyaml ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" 21DEPENDS = "glib-2.0 libyaml ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
22 22
23RDEPENDS_${PN} = "python3 python3-core python3-pyyaml python3-netifaces python3-nose python3-coverage python3-pycodestyle python3-pyflakes util-linux-libuuid" 23RDEPENDS_${PN} = "python3 python3-core python3-pyyaml python3-netifaces python3-nose python3-coverage python3-pycodestyle python3-pyflakes util-linux-libuuid libnetplan"
24 24
25inherit pkgconfig systemd 25inherit pkgconfig systemd
26 26
27TARGET_CC_ARCH += "${LDFLAGS}" 27TARGET_CC_ARCH += "${LDFLAGS}"
28 28
29EXTRA_OEMAKE = "generate" 29EXTRA_OEMAKE = "generate netplan/_features.py"
30EXTRA_OEMAKE =+ "${@bb.utils.contains('DISTRO_FEATURES','systemd','netplan-dbus dbus/io.netplan.Netplan.service','',d)}" 30EXTRA_OEMAKE =+ "${@bb.utils.contains('DISTRO_FEATURES','systemd','netplan-dbus dbus/io.netplan.Netplan.service','',d)}"
31 31
32do_install() { 32do_install() {
33 install -d ${D}${sbindir} ${D}${base_libdir}/netplan ${D}${datadir}/netplan/netplan/cli/commands ${D}${sysconfdir}/netplan 33 install -d ${D}${sbindir} ${D}${libdir} ${D}${base_libdir}/netplan ${D}${datadir}/netplan/netplan/cli/commands ${D}${sysconfdir}/netplan
34 install -m 755 ${S}/generate ${D}${base_libdir}/netplan/ 34 install -m 755 ${S}/generate ${D}${base_libdir}/netplan/
35 install -m 644 ${S}/netplan/*.py ${D}${datadir}/netplan/netplan 35 install -m 644 ${S}/netplan/*.py ${D}${datadir}/netplan/netplan
36 install -m 644 ${S}/netplan/cli/*.py ${D}${datadir}/netplan/netplan/cli 36 install -m 644 ${S}/netplan/cli/*.py ${D}${datadir}/netplan/netplan/cli
@@ -39,7 +39,6 @@ do_install() {
39 ln -srf ${D}${datadir}/netplan/netplan.script ${D}${sbindir}/netplan 39 ln -srf ${D}${datadir}/netplan/netplan.script ${D}${sbindir}/netplan
40 40
41 install -d ${D}/${systemd_unitdir}/system ${D}${systemd_unitdir}/system-generators 41 install -d ${D}/${systemd_unitdir}/system ${D}${systemd_unitdir}/system-generators
42 install -m 644 ${S}/src/netplan-wpa@.service ${D}${systemd_unitdir}/system/
43 ln -srf ${D}/${base_libdir}/netplan/generate ${D}${systemd_unitdir}/system-generators 42 ln -srf ${D}/${base_libdir}/netplan/generate ${D}${systemd_unitdir}/system-generators
44 43
45 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then 44 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
@@ -48,12 +47,13 @@ do_install() {
48 install -m 644 ${S}/dbus/io.netplan.Netplan.conf ${D}${datadir}/dbus-1/system.d 47 install -m 644 ${S}/dbus/io.netplan.Netplan.conf ${D}${datadir}/dbus-1/system.d
49 install -m 644 ${S}/dbus/io.netplan.Netplan.service ${D}${datadir}/dbus-1/system-services 48 install -m 644 ${S}/dbus/io.netplan.Netplan.service ${D}${datadir}/dbus-1/system-services
50 fi 49 fi
51}
52 50
53SYSTEMD_SERVICE_${PN} = "netplan-wpa@.service" 51 install -m 755 ${S}/libnetplan.so.0.0 ${D}${libdir}
54SYSTEMD_AUTO_ENABLE = "disable" 52 ln -rfs ${D}${libdir}/libnetplan.so.0.0 ${D}${libdir}/libnetplan.so
53}
55 54
56PACKAGES += "${PN}-dbus" 55PACKAGES += "${PN}-dbus libnetplan"
57 56
57FILES_libnetplan = "${libdir}/libnetplan.so.0.0"
58FILES_${PN} = "${sbindir} ${base_libdir}/netplan/generate ${datadir}/netplan ${sysconfdir}/netplan ${systemd_unitdir}" 58FILES_${PN} = "${sbindir} ${base_libdir}/netplan/generate ${datadir}/netplan ${sysconfdir}/netplan ${systemd_unitdir}"
59FILES_${PN}-dbus = "${base_libdir}/netplan/netplan-dbus ${datadir}/dbus-1" 59FILES_${PN}-dbus = "${base_libdir}/netplan/netplan-dbus ${datadir}/dbus-1"