blob: 2d0671779e6c4e4295928c03e85f9038f0ab7edc (
plain) (
blame)
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
94
95
96
97
|
# Contributor: Matt Dainty <matt+alpine@bodgit-n-scarper.com>
# Contributor: Dermot Bradley <dermot_bradley@yahoo.com>
# Maintainer: Dermot Bradley <dermot_bradley@yahoo.com>
pkgname=cloud-init
pkgver=20.4
pkgrel=0
pkgdesc="Cloud instance init scripts"
url="https://cloud-init.io"
# Dependant package "cloud-utils-growpart" is not available for mips,
# mips64, or s390x so disable these archs for this package too.
arch="noarch !mips !mips64 !s390x"
license="Apache-2.0 OR GPL-3.0-only"
depends="
blkid
cloud-utils-growpart
e2fsprogs-extra
eudev
ifupdown-ng
iproute2-minimal
lsblk
python3
py3-configobj
py3-jinja2
py3-jsonpatch
py3-jsonschema
py3-requests
py3-yaml
shadow
sudo
"
makedepends="py3-setuptools"
subpackages="$pkgname-doc $pkgname-bash-completion $pkgname-openrc"
source="cloud-init-$pkgver.tar.gz::https://github.com/canonical/cloud-init/archive/$pkgver.tar.gz
01-oauthlib-remove.patch
02-hosts-template-fix.patch
interfaces
setup-cloud-init
README.Alpine
"
install="$pkgname.post-install"
prepare() {
default_prepare
}
build() {
python3 setup.py build
}
check() {
python3 setup.py check
}
package() {
python3 setup.py install \
--prefix=/usr --root="$pkgdir" --init-system=sysvinit_openrc
# Delete __pycache__ directories containing PYC files
find "$pkgdir" -name '__pycache__' -type d -print0 | xargs -0 rm -Rf
mkdir -p \
"$pkgdir"/etc/network
install -m644 \
"$srcdir"/interfaces \
"$pkgdir"/etc/network/
mkdir -p \
"$pkgdir"/sbin
install -m755 \
"$srcdir"/setup-cloud-init \
"$pkgdir"/sbin/
install -m644 \
"$srcdir"/README.Alpine \
"$pkgdir"/usr/share/doc/"$pkgname"/
# Delete non-Alpine distribution template files
for distro in \
debian fedora freebsd opensuse redhat rhel sles suse ubuntu
do
for file in \
"$pkgdir"/etc/cloud/templates/*."$distro".tmpl
do
rm "$file"
done
done
# Delete systemd template file
rm "$pkgdir"/etc/cloud/templates/timesyncd.conf.tmpl
}
sha512sums="c5acf4843504a20d1d0d92c42dceb82b2b979af9e105ad9a84a60732dcde9335af4535cb1fd21a45914a37b8d93e0a0a6b899c05ab5eb1fc34d6cc24f490dc83 cloud-init-20.4.tar.gz
c14ce3b27c55d1c381e27b2898bb73da8a74c53480d496bdfc87318b69fb612678205ab5a686c1ce703ef5c2c7a8529f629c8f908aeff39524d36870a83c1929 01-oauthlib-remove.patch
444b15f0d81138f7f3767bc10b0bee29ff10fa8b74dfc3542e1abe20d745f09bb2e36cb30ef8035a677ba81af80743207fbd9973d7cb4f33ca37891ae7493916 02-hosts-template-fix.patch
48b25ec4457c2b3772a7d210033551d041749a0d1869818d888030e6df7fd9bbc13a38b95cf465de3d46d96881a722f94a337584ce48f280c4a52b819586563a interfaces
f32b90f26d1df0d88fbea7a1a9ab6704a20babdb750b933484bb7c4e91cc19a587d4bfbc95489a354003ecd00795d1592e71b4b93eccd41e392bb7170bfebb0e setup-cloud-init
2a491afea3ea979d0910f0b21739ee3bfb902ddfe66a8162eb1dd477475c4185ac85afc6522e979015d966f4b984b151cb4b6515aec6ce6eaf7e13ac7def1b5f README.Alpine"
|