92 lines
2.6 KiB
Bash
92 lines
2.6 KiB
Bash
# Template file for 'rkt'
|
|
pkgname=rkt
|
|
version=1.15.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake wget cpio squashfs-tools bc gnupg git go"
|
|
makedepends="acl-devel zlib-devel libressl-devel"
|
|
depends="virtual?rkt-stage1"
|
|
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"
|
|
checksum=3efd0dc96c8783d5b378862c7239f733863a181bb3148f3b2e8e10023df06e01
|
|
|
|
patch_args="-Np1"
|
|
nopie=yes
|
|
|
|
configure_args="--enable-tpm=no
|
|
--enable-sdjournal=no
|
|
--with-stage1-flavors=fly,kvm,coreos,host
|
|
--with-stage1-default-location=/usr/lib/rkt/stage1.aci"
|
|
|
|
system_groups="rkt"
|
|
|
|
nocross=yes
|
|
|
|
only_for_archs="x86_64 x86_64-musl"
|
|
|
|
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
|
|
|
|
vinstall ${FILESDIR}/rkt-gc 755 etc/cron.daily
|
|
|
|
vbin build-${pkgname}-${version}/target/bin/rkt
|
|
vbin build-${pkgname}-${version}/tools/actool
|
|
}
|
|
|
|
rkt-stage1-fly_package() {
|
|
alternatives="rkt-stage1:/usr/lib/rkt/stage1.aci:/usr/lib/rkt/stage1-fly.aci"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - fly stage1"
|
|
provides="rkt-stage1-${version}_${revision}"
|
|
pkg_install() {
|
|
vinstall build-${sourcepkg}-${version}/target/bin/stage1-fly.aci 644 usr/lib/rkt
|
|
}
|
|
}
|
|
|
|
rkt-stage1-kvm_package() {
|
|
alternatives="rkt-stage1:/usr/lib/rkt/stage1.aci:/usr/lib/rkt/stage1-kvm.aci"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - kvm stage1"
|
|
provides="rkt-stage1-${version}_${revision}"
|
|
pkg_install() {
|
|
vinstall build-${sourcepkg}-${version}/target/bin/stage1-kvm.aci 644 usr/lib/rkt
|
|
}
|
|
}
|
|
|
|
rkt-stage1-coreos_package() {
|
|
alternatives="rkt-stage1:/usr/lib/rkt/stage1.aci:/usr/lib/rkt/stage1-coreos.aci"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - coreos stage1"
|
|
provides="rkt-stage1-${version}_${revision}"
|
|
pkg_install() {
|
|
vinstall build-${sourcepkg}-${version}/target/bin/stage1-coreos.aci 644 usr/lib/rkt
|
|
}
|
|
}
|