blob: 2f1cf85229640ac6be4185eaa06d768348b19474 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# Contributor: Vladimir Avinkin <mouzfun@gmail.com>
# Contributor: Dermot Bradley <dermot_bradley@yahoo.com>
# Maintainer: Dermot Bradley <dermot_bradley@yahoo.com>
pkgname=cloud-utils
pkgver=0.33
pkgrel=0
pkgdesc="Utilities for interacting with cloud VM images"
url="https://launchpad.net/cloud-utils/"
arch="noarch !s390x" # tests are broken on big-endian
license="GPL-3.0-or-later"
depends="
bash
coreutils
e2fsprogs
e2fsprogs-extra
file
gzip
qemu-img
sfdisk
tar
util-linux-misc
"
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() {
make
}
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 unnecessary scripts
rm bin/ubuntu-cloudimg-query bin/vcs-run
make DESTDIR="$pkgdir" install
cp README.md $pkgdir/usr/share/doc/$pkgname/
}
ec2metadata() {
pkgdesc="Retrieve metadata on AWS EC2 (and compatible) VMs"
depends="
python3
py3-urllib3
"
amove usr/bin/ec2metadata
}
growpart() {
pkgdesc="Grow the size of disk partitions"
depends="
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="
1e58e085bde295d4adf8ff219a7f22382fadff798f5398f3e2a62cb0926c740babba76ea6326f6042b46dbdeb12c15d1e080fb9890b10482e31c3acb64014c95 cloud-utils-0.33.tar.gz
"
|