rkt: add selectable stage1

This commit is contained in:
Andrea Brancaleoni 2016-02-11 23:12:00 +01:00
parent 7510705f90
commit 502129d6ef
4 changed files with 38 additions and 4 deletions

1
srcpkgs/rkt-stage1-coreos Symbolic link
View File

@ -0,0 +1 @@
rkt/

1
srcpkgs/rkt-stage1-fly Symbolic link
View File

@ -0,0 +1 @@
rkt/

1
srcpkgs/rkt-stage1-kvm Symbolic link
View File

@ -0,0 +1 @@
rkt/

View File

@ -1,10 +1,11 @@
# Template file for 'rkt' # Template file for 'rkt'
pkgname=rkt pkgname=rkt
version=1.0.0 version=1.0.0
revision=1 revision=2
build_style=gnu-configure build_style=gnu-configure
hostmakedepends="automake wget cpio squashfs-tools bc gnupg git go" hostmakedepends="automake wget cpio squashfs-tools bc gnupg git go"
makedepends="acl-devel zlib-devel" makedepends="acl-devel zlib-devel"
depends="virtual?rkt-stage1"
short_desc="App Container runtime for Linux" short_desc="App Container runtime for Linux"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>" maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="Apache-2.0" license="Apache-2.0"
@ -13,14 +14,14 @@ distfiles="$homepage/archive/v$version.tar.gz"
checksum=7e30b03fa51a34db095484c4b111c526e49bead4e33232e1b239090503d7ac97 checksum=7e30b03fa51a34db095484c4b111c526e49bead4e33232e1b239090503d7ac97
configure_args="--enable-tpm=no configure_args="--enable-tpm=no
--with-stage1-flavors=fly --with-stage1-flavors=fly,kvm,coreos
--with-stage1-default-location=/usr/lib/rkt/stage1.aci" --with-stage1-default-location=/usr/lib/rkt/stage1.aci"
system_groups="rkt" system_groups="rkt"
nocross=yes nocross=yes
only_for_archs="i686 x86_64 x86_64-musl" # there is a bug with squashfs in musl + it doesn't crosscompile only_for_archs="i686 x86_64 x86_64-musl"
make_dirs=" make_dirs="
/var/lib/rkt 2750 root rkt /var/lib/rkt 2750 root rkt
@ -53,5 +54,35 @@ do_install() {
vinstall ${FILESDIR}/rkt-gc 755 etc/cron.daily/rkt-gc vinstall ${FILESDIR}/rkt-gc 755 etc/cron.daily/rkt-gc
vbin build-${pkgname}-${version}/bin/rkt vbin build-${pkgname}-${version}/bin/rkt
vinstall build-${pkgname}-${version}/bin/stage1-fly.aci 644 usr/lib/rkt stage1.aci vbin build-${pkgname}-${version}/bin/actool
}
rkt-stage1-fly_package() {
alternatives="rkt-stage1:/usr/lib/rkt/stage1-fly.aci:/usr/lib/rkt/stage1.aci"
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - fly stage1"
provides="rkt-stage1-${version}_${revision}"
pkg_install() {
vinstall build-${sourcepkg}-${version}/bin/stage1-fly.aci 644 usr/lib/rkt
}
}
rkt-stage1-kvm_package() {
alternatives="rkt-stage1:/usr/lib/rkt/stage1-kvm.aci:/usr/lib/rkt/stage1.aci"
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - kvm stage1"
provides="rkt-stage1-${version}_${revision}"
pkg_install() {
vinstall build-${sourcepkg}-${version}/bin/stage1-kvm.aci 644 usr/lib/rkt
}
}
rkt-stage1-coreos_package() {
alternatives="rkt-stage1:/usr/lib/rkt/stage1-coreos.aci:/usr/lib/rkt/stage1.aci"
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - coreos stage1"
provides="rkt-stage1-${version}_${revision}"
pkg_install() {
vinstall build-${sourcepkg}-${version}/bin/stage1-coreos.aci 644 usr/lib/rkt
}
} }