mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
netplan: upgrade 0.106 -> 1.0
Release Notes: https://github.com/canonical/netplan/releases/tag/1.0 * Switch to meson build * Add systemd to REQUIRED_DISTRO_FEATURES as systemd dependency can not be removed. * Add a patch to fix build with clang. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
SUMMARY = "The network configuration abstraction renderer"
|
||||
DESCRIPTION = "Netplan is a utility for easily configuring networking on a \
|
||||
linux system. You simply create a YAML description of the required network \
|
||||
interfaces and what each should be configured to do. From this description \
|
||||
Netplan will generate all the necessary configuration for your chosen renderer \
|
||||
tool."
|
||||
HOMEPAGE = "https://netplan.io"
|
||||
SECTION = "net/misc"
|
||||
|
||||
LICENSE = "GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
||||
|
||||
inherit meson pkgconfig systemd python3targetconfig features_check
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "systemd"
|
||||
|
||||
SRC_URI = "git://github.com/CanonicalLtd/netplan.git;branch=main;protocol=https \
|
||||
file://0001-meson.build-drop-unnecessary-build-dependencies.patch \
|
||||
file://0002-meson.build-do-not-use-Werror.patch \
|
||||
"
|
||||
|
||||
SRC_URI:append:libc-musl = " file://0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch"
|
||||
SRC_URI:append:toolchain-clang = " file://0001-networkd.c-define-scope-specific-to-case-statement.patch"
|
||||
|
||||
SRCREV = "45f7cd1569896d9e316c130bf5c60b7ccfc8211d"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
DEPENDS = "glib-2.0 libyaml util-linux-libuuid \
|
||||
systemd python3-cffi-native \
|
||||
"
|
||||
|
||||
EXTRA_OEMESON = "-Dunit_testing=false"
|
||||
|
||||
RDEPENDS:${PN} = "python3-core python3-netifaces python3-pyyaml \
|
||||
python3-dbus python3-rich python3-cffi \
|
||||
util-linux-libuuid libnetplan \
|
||||
"
|
||||
|
||||
PACKAGES += "${PN}-dbus libnetplan"
|
||||
|
||||
FILES:libnetplan = "${libdir}/libnetplan.so.*"
|
||||
FILES:${PN} = "${sbindir} ${libexecdir}/netplan/generate \
|
||||
${datadir}/netplan ${datadir}/bash-completion \
|
||||
${systemd_unitdir} ${PYTHON_SITEPACKAGES_DIR} \
|
||||
"
|
||||
FILES:${PN}-dbus = "${libexecdir}/netplan/netplan-dbus ${datadir}/dbus-1"
|
||||
Reference in New Issue
Block a user