mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-05 05:15:25 +02:00

These changes are the result of running the convert-spdx-licenses.py oe-core script. There's no impact to the build, but we will avoid issues when interacting with core QA by the alignment. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
61 lines
2.0 KiB
BlitzBasic
61 lines
2.0 KiB
BlitzBasic
DESCRIPTION = "Init scripts for use on cloud images"
|
|
HOMEPAGE = "https://github.com/canonical/cloud-init"
|
|
SECTION = "devel/python"
|
|
LICENSE = "GPL-3.0-only"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=c6dd79b6ec2130a3364f6fa9d6380408"
|
|
|
|
SRCREV = "a97fd062f7dbd4b824fd006edd08927ef9dbf24a"
|
|
SRC_URI = "git://github.com/canonical/cloud-init;branch=main;protocol=https \
|
|
file://cloud-init-source-local-lsb-functions.patch \
|
|
file://0001-setup.py-check-for-install-anywhere-in-args.patch \
|
|
file://0001-setup.py-respect-udevdir-variable.patch \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
DISTUTILS_INSTALL_ARGS:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', '--init-system=sysvinit_deb', '', d)}"
|
|
DISTUTILS_INSTALL_ARGS:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--init-system=systemd', '', d)}"
|
|
|
|
do_install:append() {
|
|
ln -s ${libdir}/${BPN}/uncloud-init ${D}${sysconfdir}/cloud/uncloud-init
|
|
ln -s ${libdir}/${BPN}/write-ssh-key-fingerprints ${D}${sysconfdir}/cloud/write-ssh-key-fingerprints
|
|
}
|
|
|
|
inherit pkgconfig
|
|
inherit setuptools3
|
|
inherit update-rc.d
|
|
inherit systemd
|
|
|
|
# setup.py calls "pkg-config systemd --variable=systemdsystemunitdir" and needs to find our systemd
|
|
DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
|
|
|
|
inherit python3native
|
|
|
|
PACKAGES += "${PN}-systemd"
|
|
|
|
FILES:${PN} += "${sysconfdir}/* \
|
|
${datadir}/*"
|
|
|
|
FILES:${PN}-systemd += "${systemd_unitdir}/*"
|
|
RDEPENDS:${PN}-systemd += " ${PN}"
|
|
|
|
INITSCRIPT_PACKAGES = "${PN}"
|
|
INITSCRIPT_NAME:${BPN} = "cloud-init"
|
|
|
|
DEPENDS += "python3-pyyaml-native \
|
|
python3-requests-native \
|
|
python3-jinja2-native \
|
|
"
|
|
|
|
RDEPENDS:${PN} = "python3 \
|
|
python3-jinja2 \
|
|
python3-configobj \
|
|
python3-requests \
|
|
python3-jsonpatch \
|
|
python3-jsonschema \
|
|
python3-pyyaml \
|
|
python3-oauthlib \
|
|
bash \
|
|
"
|
|
|