From 7da2824fd31a234d55fc658fb319ac30cf2c2798 Mon Sep 17 00:00:00 2001 From: leavelet Date: Mon, 20 May 2024 18:11:58 +0800 Subject: [PATCH] cloud-init: new, 24.1.4+git20240513 --- app-admin/cloud-init/autobuild/build | 30 ++++++++++++++++++++++++++ app-admin/cloud-init/autobuild/defines | 7 ++++++ app-admin/cloud-init/spec | 4 ++++ 3 files changed, 41 insertions(+) create mode 100644 app-admin/cloud-init/autobuild/build create mode 100644 app-admin/cloud-init/autobuild/defines create mode 100644 app-admin/cloud-init/spec diff --git a/app-admin/cloud-init/autobuild/build b/app-admin/cloud-init/autobuild/build new file mode 100644 index 00000000000..b81904fea1e --- /dev/null +++ b/app-admin/cloud-init/autobuild/build @@ -0,0 +1,30 @@ +abinfo "Building cloud-init" + +python3 -m build --wheel --no-isolation -C--distro=aosc -C--prefix=/usr + +abinfo "Installing cloud-init" +python3 -m installer --destdir="$PKGDIR" $SRCDIR/dist/*.whl + +abinfo "Creating necessary directories" + +install -vDm 644 $SRCDIR/config/cloud.cfg.d/* -t "$PKGDIR/etc/cloud/cloud.cfg.d/" +$SRCDIR/tools/render-template --variant aosc $SRCDIR/config/cloud.cfg.tmpl "$PKGDIR/etc/cloud/cloud.cfg" +install -vDm 644 $SRCDIR/templates/*.tmpl -t "$PKGDIR/etc/cloud/templates/" +install -vDm 755 $SRCDIR/tools/{ds-identify,hook-hotplug,uncloud-init,write-ssh-key-fingerprints} -t "$PKGDIR/usr/lib/$PKGNAME/" +install -vDm 644 $SRCDIR/doc/*.txt -t "$PKGDIR/usr/share/doc/$PKGNAME/" +install -vDm 644 $SRCDIR/doc/examples/*.txt -t "$PKGDIR/usr/share/doc/$PKGNAME/examples/" +install -vDm 644 $SRCDIR/doc/examples/seed/* -t "$PKGDIR/usr/share/doc/$PKGNAME/examples/seed/" +install -vDm 644 $SRCDIR/doc/man/*.1 -t "$PKGDIR/usr/share/man/man1/" +install -vDm 655 $SRCDIR/bash_completion/$PKGNAME -t "$PKGDIR/usr/share/bash-completion/completions/" + +install -vDm 644 $SRCDIR/udev/*.rules -t "$PKGDIR/usr/lib/udev/rules.d/" +install -vdm 755 "$PKGDIR/usr/lib/systemd/system"{,-generators} + +for _file in cloud-{config,final,init-local,init}.service; do + $SRCDIR/tools/render-template --variant aosc $SRCDIR/systemd/$_file.tmpl "$PKGDIR/usr/lib/systemd/system/$_file" +done + +install -vDm 644 $SRCDIR/systemd/*.{service,socket,target} "$PKGDIR/usr/lib/systemd/system/" +$SRCDIR/tools/render-template --variant aosc $SRCDIR/systemd/cloud-init-generator.tmpl "$PKGDIR/usr/lib/systemd/system-generators/cloud-init-generator" +chmod 755 "$PKGDIR/usr/lib/systemd/system-generators/cloud-init-generator" +install -vDm 644 $SRCDIR/systemd/disable-sshd-keygen-if-cloud-init-active.conf -t "$PKGDIR/usr/lib/systemd/system/sshd-keygen@.service.d/" diff --git a/app-admin/cloud-init/autobuild/defines b/app-admin/cloud-init/autobuild/defines new file mode 100644 index 00000000000..bceb190bc83 --- /dev/null +++ b/app-admin/cloud-init/autobuild/defines @@ -0,0 +1,7 @@ +PKGNAME=cloud-init +PKGSEC=admin +PKGDEP="python-3 python-build wheel configobj jinja2 netifaces pyserial pyyaml requests typing-extensions jsonschema jsonpatch oauthlib" +BUILDDEP="python-installer" +PKGDES="Cloud instance initialization" + +ABHOST=noarch diff --git a/app-admin/cloud-init/spec b/app-admin/cloud-init/spec new file mode 100644 index 00000000000..8a896cccc9d --- /dev/null +++ b/app-admin/cloud-init/spec @@ -0,0 +1,4 @@ +VER=24.1.4+git20240513 +SRCS="git::commit=e98cae2::https://github.com/AOSC-Tracking/cloud-init" +CHKSUMS="SKIP" +CHKUPDATE="anitya::id=11545"