aboutsummaryrefslogtreecommitdiffstats
path: root/community/cloud-utils/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/cloud-utils/APKBUILD')
-rw-r--r--[-rwxr-xr-x]community/cloud-utils/APKBUILD76
1 files changed, 42 insertions, 34 deletions
diff --git a/community/cloud-utils/APKBUILD b/community/cloud-utils/APKBUILD
index ad506223959..d0df492c5b6 100755..100644
--- a/community/cloud-utils/APKBUILD
+++ b/community/cloud-utils/APKBUILD
@@ -1,33 +1,33 @@
# Contributor: Vladimir Avinkin <mouzfun@gmail.com>
# Contributor: Dermot Bradley <dermot_bradley@yahoo.com>
-# Maintainer: Dermot Bradley <dermot_bradley@yahoo.com>
+# Maintainer:
pkgname=cloud-utils
-pkgver=0.32
-pkgrel=5
+pkgver=0.33
+pkgrel=1
pkgdesc="Utilities for interacting with cloud VM images"
url="https://launchpad.net/cloud-utils/"
-arch="noarch !mips !mips64 !s390x" # tests are broken on big-endian
+arch="noarch !s390x" # tests are broken on big-endian
license="GPL-3.0-or-later"
depends="
bash
- cdrkit
coreutils
e2fsprogs
e2fsprogs-extra
- eudev
- mtools
- python3
+ file
+ gzip
qemu-img
+ sfdisk
tar
- util-linux
+ util-linux-misc
"
-subpackages="$pkgname-doc $pkgname-ec2metadata $pkgname-growpart"
-source="cloud-utils-$pkgver.tar.gz::https://github.com/canonical/cloud-utils/archive/$pkgver.tar.gz
- 01-minor-corrections.patch
- 02-make-udev-optional.patch
- 03-growpart-flock.patch
- 04-set-sfdisk-lang.patch
- 05-set-sfdisk-lang-2.patch
+subpackages="
+ $pkgname-doc
+ $pkgname-ec2metadata
+ $pkgname-growpart
+ $pkgname-localds
+ $pkgname-multipart
+ "
+source="cloud-utils-$pkgver.tar.gz::https://github.com/canonical/cloud-utils/archive/refs/tags/$pkgver.tar.gz
"
build() {
@@ -37,20 +37,12 @@ build() {
check() {
# the other tests require root permissions
PATH=$PATH:$builddir/bin TMPDIR="$srcdir" ./test/test-growpart-fsimage
+ PATH=$PATH:$builddir/bin TMPDIR="$srcdir" ./test/test-growpart-overprovision
}
package() {
- # Delete a "broken" script and 3 irrelevant manpages.
- # These changes are addressed by upstream PR 20 which didn't make
- # the 0.32 release. This can hopefully be remove upon the next
- # upstream release.
- rm bin/cloud-publish-ubuntu \
- man/cloud-publish-image.1 \
- man/cloud-publish-tarball.1 \
- man/cloud-run-instances.1
-
- # Delete an unnecessary script
- rm bin/vcs-run
+ # Delete unnecessary scripts
+ rm bin/ubuntu-cloudimg-query bin/vcs-run
make DESTDIR="$pkgdir" install
@@ -61,6 +53,7 @@ ec2metadata() {
pkgdesc="Retrieve metadata on AWS EC2 (and compatible) VMs"
depends="
python3
+ py3-urllib3
"
amove usr/bin/ec2metadata
}
@@ -68,18 +61,33 @@ ec2metadata() {
growpart() {
pkgdesc="Grow the size of disk partitions"
depends="
- blkid
partx
sfdisk
"
amove usr/bin/growpart
}
+localds() {
+ pkgdesc="create cloud-init configuration disk"
+ depends="
+ bash
+ cdrkit
+ dosfstools
+ mtools
+ qemu-img
+ tar
+ "
+ amove usr/bin/cloud-localds
+}
+
+multipart() {
+ pkgdesc="write files to a MIME multipart document"
+ depends="
+ python3
+ "
+ amove usr/bin/write-mime-multipart
+}
+
sha512sums="
-62bc07759c9c74397cd16a6a0781efb50803efc9f59969e16943fcab0d73ef96966c6abfe21edd17c15ac96dbffaaffa594b3abc0d3fab23102d2d6e7f380a7d cloud-utils-0.32.tar.gz
-0efa8170b41cb5b6799fda9de3d3054aab1f765dfc46d1bada11edb103797ddd8153582dbfa1b4c22fd088d4cbf3a1f0729ff708f128d899645f988a8bc4c35e 01-minor-corrections.patch
-83275289265f9a754bc49262133c3cbb42683f42e58de05fc446e9411be457f012edad7058325bbaae2ba8aa7fb7e42698df94f28682b0869d7f15956bde8f2a 02-make-udev-optional.patch
-4c579ef4b03a6c7018eec86919c8ced9b4f73de806e74b82528d3002cd49a75252df3f4cd6a6a21c9492bc3c6f0464dbf31098e426ad91855ee05aa42cb78227 03-growpart-flock.patch
-5ed0c747a9383021cb393187045c52bce5e5470d542a3d69e05ab4d51c06926c6f983ebed308eed8f0a110916cf03af11d391e596b911ce84bf13f933d7baab2 04-set-sfdisk-lang.patch
-1e1a8f86a44f898b42156cd22ef9658a7a50e2c4ef80673dfbec93d2cd2b223c5eba81091c113ae1e94377512bd1c71c3bbde5497ef5da13b22ff02350224faa 05-set-sfdisk-lang-2.patch
+1e58e085bde295d4adf8ff219a7f22382fadff798f5398f3e2a62cb0926c740babba76ea6326f6042b46dbdeb12c15d1e080fb9890b10482e31c3acb64014c95 cloud-utils-0.33.tar.gz
"