-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |