diff options
Diffstat (limited to 'main/lxc/APKBUILD')
-rw-r--r-- | main/lxc/APKBUILD | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/main/lxc/APKBUILD b/main/lxc/APKBUILD index bc617593e1..1690e5e10c 100644 --- a/main/lxc/APKBUILD +++ b/main/lxc/APKBUILD @@ -1,10 +1,11 @@ # Contributor: Ćukasz Jendrysik <scadu@yandex.com> # Contributor: William Pitcock <nenolod@dereferenced.org> +# Contributor: Jakub Jirutka <jakub@jirutka.cz> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=lxc pkgver=2.0.3 _pkgver=${pkgver/_rc/.rc} -pkgrel=2 +pkgrel=3 pkgdesc="Userspace interface for the Linux kernel containment features" url="https://linuxcontainers.org/lxc/" arch="all" @@ -15,7 +16,7 @@ makedepends="$depends_dev lvm2 util-linux automake autoconf libtool lua5.2-dev linux-headers bash tar docbook2x" options="suid" subpackages="$pkgname-dev $pkgname-doc $pkgname-lvm lua5.2-lxc:_lua52 - $pkgname-templates $pkgname-libs" + $pkgname-download:_download $pkgname-templates $pkgname-libs" source="https://github.com/lxc/lxc/archive/lxc-$_pkgver.tar.gz version.patch download-template-tmpfs.patch @@ -24,6 +25,8 @@ source="https://github.com/lxc/lxc/archive/lxc-$_pkgver.tar.gz " builddir="$srcdir/lxc-lxc-$_pkgver" +_tmpldir="usr/share/lxc/templates" + prepare() { default_prepare || return 1 ./autogen.sh @@ -78,17 +81,25 @@ _lua52() { done } +_download() { + pkgdesc="LXC container image downloader template" + arch="noarch" + depends="$pkgname gnupg tar xz" + + mkdir -p "$subpkgdir"/$_tmpldir + mv "$pkgdir"/$_tmpldir/lxc-download "$subpkgdir"/$_tmpldir/ +} + templates() { - local tmpldir="usr/share/lxc/templates" - pkgdesc="Templates for LXC" + pkgdesc="Templates for LXC (except alpine and download)" arch="noarch" depends="bash tar" - mkdir -p "$subpkgdir"/$tmpldir - mv "$pkgdir"/$tmpldir/* "$subpkgdir"/$tmpldir/ || return 1 + mkdir -p "$subpkgdir"/$_tmpldir + mv "$pkgdir"/$_tmpldir/* "$subpkgdir"/$_tmpldir/ || return 1 # Keep alpine template in the base package (doesn't need bash or GNU tar). - mv "$subpkgdir"/$tmpldir/lxc-alpine "$pkgdir"/$tmpldir/ + mv "$subpkgdir"/$_tmpldir/lxc-alpine "$pkgdir"/$_tmpldir/ } dev() { |