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 20, 2024
1 parent a32c251 commit 7da2824
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" $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/"
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 7da2824

Please sign in to comment.