Skip to content

Commit

Permalink
cloud-init: new, 24.1.4+git20240513
Browse files Browse the repository at this point in the history
  • Loading branch information
leavelet committed May 18, 2024
1 parent d98548d commit 8090c8b
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
30 changes: 30 additions & 0 deletions app-admin/cloud-init/autobuild/build
Original file line number Diff line number Diff line change
@@ -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" dist/*.whl

abinfo "Creating necessary directories"

install -vDm 644 config/cloud.cfg.d/* -t "$PKGDIR/etc/cloud/cloud.cfg.d/"
./tools/render-template --variant aosc ./config/cloud.cfg.tmpl "$PKGDIR/etc/cloud/cloud.cfg"
install -vDm 644 templates/*.tmpl -t "$PKGDIR/etc/cloud/templates/"
install -vDm 755 tools/{ds-identify,hook-hotplug,uncloud-init,write-ssh-key-fingerprints} -t "$PKGDIR/usr/lib/$PKGNAME/"
install -vDm 644 doc/*.txt -t "$PKGDIR/usr/share/doc/$PKGNAME/"
install -vDm 644 doc/examples/*.txt -t "$PKGDIR/usr/share/doc/$PKGNAME/examples/"
install -vDm 644 doc/examples/seed/* -t "$PKGDIR/usr/share/doc/$PKGNAME/examples/seed/"
install -vDm 644 doc/man/*.1 -t "$PKGDIR/usr/share/man/man1/"
install -vDm 655 bash_completion/$PKGNAME -t "$PKGDIR/usr/share/bash-completion/completions/"

install -vDm 644 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
./tools/render-template --variant aosc ./systemd/$_file.tmpl "$PKGDIR/usr/lib/systemd/system/$_file"
done

install -vDm 644 systemd/*.{service,socket,target} "$PKGDIR/usr/lib/systemd/system/"
./tools/render-template --variant aosc ./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 systemd/disable-sshd-keygen-if-cloud-init-active.conf -t "$PKGDIR/usr/lib/systemd/system/sshd-keygen@.service.d/"
7 changes: 7 additions & 0 deletions app-admin/cloud-init/autobuild/defines
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions app-admin/cloud-init/spec
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 8090c8b

Please sign in to comment.