2016-02-09 10:50:12 +00:00
|
|
|
# Template file for 'rkt'
|
|
|
|
pkgname=rkt
|
2016-05-14 08:26:11 +00:00
|
|
|
version=1.6.0
|
2016-03-02 20:07:26 +00:00
|
|
|
revision=1
|
2016-02-09 10:50:12 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
hostmakedepends="automake wget cpio squashfs-tools bc gnupg git go"
|
2016-03-02 20:07:26 +00:00
|
|
|
makedepends="acl-devel zlib-devel libressl-devel"
|
2016-02-11 22:12:00 +00:00
|
|
|
depends="virtual?rkt-stage1"
|
2016-02-09 10:50:12 +00:00
|
|
|
short_desc="App Container runtime for Linux"
|
|
|
|
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
|
|
|
license="Apache-2.0"
|
|
|
|
homepage="https://github.com/coreos/rkt"
|
|
|
|
distfiles="$homepage/archive/v$version.tar.gz"
|
2016-05-14 08:26:11 +00:00
|
|
|
checksum=767f2ed21d6dbf00a7a264d0dbd84a2733d56dbe97bab90b3d99af47d33c9b5c
|
2016-02-09 10:50:12 +00:00
|
|
|
|
|
|
|
configure_args="--enable-tpm=no
|
2016-02-11 22:12:00 +00:00
|
|
|
--with-stage1-flavors=fly,kvm,coreos
|
2016-02-09 10:50:12 +00:00
|
|
|
--with-stage1-default-location=/usr/lib/rkt/stage1.aci"
|
|
|
|
|
|
|
|
system_groups="rkt"
|
|
|
|
|
|
|
|
nocross=yes
|
|
|
|
|
2016-02-11 22:15:38 +00:00
|
|
|
only_for_archs="x86_64 x86_64-musl"
|
2016-02-09 10:50:12 +00:00
|
|
|
|
|
|
|
make_dirs="
|
|
|
|
/var/lib/rkt 2750 root rkt
|
|
|
|
/var/lib/rkt/tmp 2750 root rkt
|
|
|
|
/var/lib/rkt/cas 2770 root rkt
|
|
|
|
/var/lib/rkt/cas/db 2770 root rkt
|
|
|
|
/var/lib/rkt/cas/imagelocks 2770 root rkt
|
|
|
|
/var/lib/rkt/cas/imageManifest 2770 root rkt
|
|
|
|
/var/lib/rkt/cas/blob 2770 root rkt
|
|
|
|
/var/lib/rkt/cas/tmp 2770 root rkt
|
|
|
|
/var/lib/rkt/cas/tree 2700 root rkt
|
|
|
|
/var/lib/rkt/cas/treestorelocks 2700 root rkt
|
|
|
|
/var/lib/rkt/locks 2750 root rkt
|
|
|
|
/var/lib/rkt/pods 2750 root rkt
|
|
|
|
/var/lib/rkt/pods/embryo 2750 root rkt
|
|
|
|
/var/lib/rkt/pods/prepare 2750 root rkt
|
|
|
|
/var/lib/rkt/pods/prepared 2750 root rkt
|
|
|
|
/var/lib/rkt/pods/run 2750 root rkt
|
|
|
|
/var/lib/rkt/pods/exited-garbage 2750 root rkt
|
|
|
|
/var/lib/rkt/pods/garbage 2750 root rkt"
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
./autogen.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vsv rkt-metadata
|
|
|
|
|
2016-02-12 07:24:52 +00:00
|
|
|
vinstall ${FILESDIR}/rkt-gc 755 etc/cron.daily
|
2016-02-09 10:50:12 +00:00
|
|
|
|
|
|
|
vbin build-${pkgname}-${version}/bin/rkt
|
2016-02-11 22:12:00 +00:00
|
|
|
vbin build-${pkgname}-${version}/bin/actool
|
|
|
|
}
|
|
|
|
|
|
|
|
rkt-stage1-fly_package() {
|
2016-02-29 13:48:57 +00:00
|
|
|
alternatives="rkt-stage1:/usr/lib/rkt/stage1.aci:/usr/lib/rkt/stage1-fly.aci"
|
2016-02-11 22:12:00 +00:00
|
|
|
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() {
|
2016-02-29 13:48:57 +00:00
|
|
|
alternatives="rkt-stage1:/usr/lib/rkt/stage1.aci:/usr/lib/rkt/stage1-kvm.aci"
|
2016-02-11 22:12:00 +00:00
|
|
|
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() {
|
2016-02-29 13:48:57 +00:00
|
|
|
alternatives="rkt-stage1:/usr/lib/rkt/stage1.aci:/usr/lib/rkt/stage1-coreos.aci"
|
2016-02-11 22:12:00 +00:00
|
|
|
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
|
|
|
|
}
|
2016-02-09 10:50:12 +00:00
|
|
|
}
|