diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2018-04-25 16:44:08 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2018-04-25 16:44:08 +0000 |
commit | c9014f0b7c2fc717cb2273c28ed288c5996c81fc (patch) | |
tree | 5e40c28a8a53a226f24ed7acbd57b8586671b84f /testing/lxd/APKBUILD | |
parent | a869dbcffabff78da79d2ed698a56fe2d421be53 (diff) | |
download | aports-c9014f0b7c2fc717cb2273c28ed288c5996c81fc.tar.bz2 aports-c9014f0b7c2fc717cb2273c28ed288c5996c81fc.tar.xz |
testing/lxd: added scripts and bash-completion subpkg
Diffstat (limited to 'testing/lxd/APKBUILD')
-rw-r--r-- | testing/lxd/APKBUILD | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/testing/lxd/APKBUILD b/testing/lxd/APKBUILD index ad9c24d1dd..1c61929b96 100644 --- a/testing/lxd/APKBUILD +++ b/testing/lxd/APKBUILD @@ -2,13 +2,14 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=lxd pkgver=3.0.0 -pkgrel=0 +pkgrel=1 pkgdesc="a container hypervisor and a new user experience for LXC" url="https://linuxcontainers.org/lxd/" arch="all" license="Apache-2.0" depends="acl xz netcat-openbsd cgmanager squashfs-tools rsync shadow-uidmap lxc ip6tables dnsmasq ca-certificates" makedepends="lxc-dev protobuf-dev rsync go gettext-dev linux-headers acl-dev" +subpackages="$pkgname-scripts $pkgname-bash-completion:bashcomp" install="$pkgname.pre-install" options="!check" source="https://linuxcontainers.org/downloads/$pkgname/$pkgname-$pkgver.tar.gz @@ -21,12 +22,12 @@ _project="github.com/lxc/lxd" builddir="$srcdir"/lxd-$pkgver prepare() { + default_prepare cd "$builddir" # symlink links to a path outside of $GOPATH # copy src to project directory to replace the symlink rm -f dist/src/"$_project" rsync -a . --exclude="dist" dist/src/"$_project" - default_prepare } build() { @@ -50,6 +51,23 @@ package() { "$pkgdir"/etc/conf.d/lxd } +bashcomp() { + depends="bash" + pkgdesc="Bash completions for $pkgname" + cd "$builddir" + mkdir -p "$subpkgdir"/usr/share/bash-completion/completions + mv scripts/bash/lxd-client "$subpkgdir"/usr/share/bash-completion/completions/lxd-client +} + +scripts() { + pkgdesc="LXD scripts" + arch="noarch" + depends="$pkgname python3" + cd "$builddir" + install -Dm755 scripts/lxc-to-lxd \ + "$subpkgdir/usr/sbin/lxc-to-lxd" +} + sha512sums="3f81c322f686a23afc5408403903b9349ccb29e607a1cfff2f48ebd83f4bed8dc618fb81d85c36fd6d84834a687a903af68f0213956c51ddba732d658ef09f8a lxd-3.0.0.tar.gz e2c0c96d0efc33e459cf14365f01d60b73ed03f028d36ca5ea27cd647f5d2a91ec61bcf2723437f7b930aec6ebabac3697e0e3adc6b2918817833c9f182aab49 lxd-dont-go-get.patch 13635b813c817ab503245203c97ed68130fde7254a0b17addd4fdc2bb0662d2d4a96db0efeed16dad540d5090cf186b83a9ca4d84610402634f38d1d25d5f933 fix-ppc64le-build.patch |