void-packages/srcpkgs/rkt/template

88 lines
2.5 KiB
Bash
Raw Normal View History

2016-02-09 11:50:12 +01:00
# Template file for 'rkt'
pkgname=rkt
2016-05-04 10:26:34 +02:00
version=1.5.1
2016-03-02 21:07:26 +01:00
revision=1
2016-02-09 11:50:12 +01:00
build_style=gnu-configure
hostmakedepends="automake wget cpio squashfs-tools bc gnupg git go"
2016-03-02 21:07:26 +01:00
makedepends="acl-devel zlib-devel libressl-devel"
2016-02-11 23:12:00 +01:00
depends="virtual?rkt-stage1"
2016-02-09 11:50:12 +01: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-04 10:26:34 +02:00
checksum=2a9320b0fe41551e88e8477e4223ef9e2b7ebaf9947829235b5e936dbd61f5d4
2016-02-09 11:50:12 +01:00
configure_args="--enable-tpm=no
2016-02-11 23:12:00 +01:00
--with-stage1-flavors=fly,kvm,coreos
2016-02-09 11:50:12 +01:00
--with-stage1-default-location=/usr/lib/rkt/stage1.aci"
system_groups="rkt"
nocross=yes
2016-02-11 23:15:38 +01:00
only_for_archs="x86_64 x86_64-musl"
2016-02-09 11:50:12 +01: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 08:24:52 +01:00
vinstall ${FILESDIR}/rkt-gc 755 etc/cron.daily
2016-02-09 11:50:12 +01:00
vbin build-${pkgname}-${version}/bin/rkt
2016-02-11 23:12:00 +01:00
vbin build-${pkgname}-${version}/bin/actool
}
rkt-stage1-fly_package() {
2016-02-29 14:48:57 +01:00
alternatives="rkt-stage1:/usr/lib/rkt/stage1.aci:/usr/lib/rkt/stage1-fly.aci"
2016-02-11 23:12:00 +01: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 14:48:57 +01:00
alternatives="rkt-stage1:/usr/lib/rkt/stage1.aci:/usr/lib/rkt/stage1-kvm.aci"
2016-02-11 23:12:00 +01: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 14:48:57 +01:00
alternatives="rkt-stage1:/usr/lib/rkt/stage1.aci:/usr/lib/rkt/stage1-coreos.aci"
2016-02-11 23:12:00 +01: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 11:50:12 +01:00
}