Commit 15dcd422 authored by Dermot Bradley's avatar Dermot Bradley Committed by Leo

testing/cloud-utils: Split ec2metadata and growpart into separate packages.

ec2metadata and growpart have lighter dependancies than the other
cloud-utils tools and the also are used in VMs whereas the other tools are
typically used to create/launch VMs so it makes sense to split them.

Become package maintainer. Original maintainer has not made any changes
since package was first created more than 1 year ago, has not responded to
an email I recently sent, maintains no other Alpine packages and so I'm
assuming he is no longer actively involved with Alpine Linux.

My cloud-init packages make use of growpart and in order to move
cloud-init from testing to community repo cloud-utils would also need to
move so I have a self-interest in cloud-utils being actively maintained.
parent 3bd3f519
# Contributor: Vladimir Avinkin <mouzfun@gmail.com>
# Maintainer: Vladimir Avinkin <mouzfun@gmail.com>
# Contributor: Dermot Bradley <dermot_bradley@yahoo.com>
# Maintainer: Dermot Bradley <dermot_bradley@yahoo.com>
pkgname=cloud-utils
pkgver=0.31
pkgrel=0
pkgdesc="Useful set of utilities for interacting with a cloud"
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
license="GPL-3.0-or-later"
depends="bash python3 sfdisk sgdisk util-linux qemu-img mtools cdrkit coreutils"
subpackages="$pkgname-doc"
depends="bash cdrkit coreutils e2fsprogs e2fsprogs-extra eudev mtools
python3 qemu-img tar util-linux"
subpackages="$pkgname-doc $pkgname-ec2metadata $pkgname-growpart"
source="https://launchpad.net/cloud-utils/trunk/$pkgver/+download/cloud-utils-$pkgver.tar.gz"
build() {
......@@ -24,4 +26,18 @@ package() {
make DESTDIR="$pkgdir" install
}
ec2metadata() {
pkgdesc="Retrieve metadata on AWS EC2 (and compatible) VMs"
depends="python3"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/ec2metadata "$subpkgdir"/usr/bin/ec2metadata
}
growpart() {
pkgdesc="Grow the size of disk partitions"
depends="blkid coreutils sfdisk util-linux"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/growpart "$subpkgdir"/usr/bin/growpart
}
sha512sums="4ca22def9564e101e228ca363d7f2da593f0644a09581bf862d4aeb4b320cc7c8af5a5e7af6283966ee1a8828715bb94725c0aab584b77e97f77a3ad593c2629 cloud-utils-0.31.tar.gz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment