void-packages/srcpkgs/rkt/template

92 lines
2.6 KiB
Bash
Raw Normal View History

2016-02-09 11:50:12 +01:00
# Template file for 'rkt'
pkgname=rkt
2016-09-02 09:46:29 +02:00
version=1.14.0
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-09-02 09:46:29 +02:00
checksum=2458783023c561358c59600accb58ccfe335535931a58da988d70893a1c5a5e7
2016-07-09 09:57:39 +02:00
patch_args="-Np1"
nopie=yes
2016-02-09 11:50:12 +01:00
configure_args="--enable-tpm=no
2016-07-09 09:57:39 +02:00
--enable-sdjournal=no
--with-stage1-flavors=fly,kvm,coreos,host
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
2016-07-09 09:57:39 +02:00
vbin build-${pkgname}-${version}/target/bin/rkt
vbin build-${pkgname}-${version}/tools/actool
2016-02-11 23:12:00 +01:00
}
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() {
2016-07-09 09:57:39 +02:00
vinstall build-${sourcepkg}-${version}/target/bin/stage1-fly.aci 644 usr/lib/rkt
2016-02-11 23:12:00 +01:00
}
}
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() {
2016-07-09 09:57:39 +02:00
vinstall build-${sourcepkg}-${version}/target/bin/stage1-kvm.aci 644 usr/lib/rkt
2016-02-11 23:12:00 +01:00
}
}
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() {
2016-07-09 09:57:39 +02:00
vinstall build-${sourcepkg}-${version}/target/bin/stage1-coreos.aci 644 usr/lib/rkt
2016-02-11 23:12:00 +01:00
}
2016-02-09 11:50:12 +01:00
}