aboutsummaryrefslogtreecommitdiffstats
path: root/main/lxc/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-07-22 21:29:39 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-07-25 15:01:29 +0000
commitc63472775b114141f955a5690d3a8df7b1afa223 (patch)
tree7e33341c3cde22e94f1d9ba58472197e125f5350 /main/lxc/APKBUILD
parenteecb9e0c7829d54f181dc76769421db3052279d3 (diff)
downloadaports-c63472775b114141f955a5690d3a8df7b1afa223.tar.bz2
aports-c63472775b114141f955a5690d3a8df7b1afa223.tar.xz
main/lxc: move alpine template to the base package
Diffstat (limited to 'main/lxc/APKBUILD')
-rw-r--r--main/lxc/APKBUILD10
1 files changed, 7 insertions, 3 deletions
diff --git a/main/lxc/APKBUILD b/main/lxc/APKBUILD
index 967862c023..a40cc31365 100644
--- a/main/lxc/APKBUILD
+++ b/main/lxc/APKBUILD
@@ -4,7 +4,7 @@
pkgname=lxc
pkgver=2.0.3
_pkgver=${pkgver/_rc/.rc}
-pkgrel=0
+pkgrel=1
pkgdesc="Userspace interface for the Linux kernel containment features"
url="https://linuxcontainers.org/lxc/"
arch="all"
@@ -70,12 +70,16 @@ _lua52() {
}
templates() {
+ local tmpldir="usr/share/lxc/templates"
pkgdesc="Templates for LXC"
arch="noarch"
depends="bash tar"
- mkdir -p "$subpkgdir"/usr/share/lxc
- mv "$pkgdir"/usr/share/lxc/templates "$subpkgdir"/usr/share/lxc/
+ 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/
}
dev() {