From c63472775b114141f955a5690d3a8df7b1afa223 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Fri, 22 Jul 2016 21:29:39 +0200 Subject: main/lxc: move alpine template to the base package --- main/lxc/APKBUILD | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'main/lxc/APKBUILD') 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() { -- cgit v1.2.3