diff --git a/srcpkgs/rkt/files/rkt-gc b/srcpkgs/rkt/files/rkt-gc new file mode 100644 index 00000000000..3cdbb011601 --- /dev/null +++ b/srcpkgs/rkt/files/rkt-gc @@ -0,0 +1,2 @@ +#!/bin/sh +rkt gc --grace-period=24h diff --git a/srcpkgs/rkt/files/rkt-metadata/run b/srcpkgs/rkt/files/rkt-metadata/run new file mode 100644 index 00000000000..af03ab826d7 --- /dev/null +++ b/srcpkgs/rkt/files/rkt-metadata/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec rkt metadata-service diff --git a/srcpkgs/rkt/template b/srcpkgs/rkt/template new file mode 100644 index 00000000000..bf7f8ae0e54 --- /dev/null +++ b/srcpkgs/rkt/template @@ -0,0 +1,57 @@ +# Template file for 'rkt' +pkgname=rkt +version=1.0.0 +revision=1 +build_style=gnu-configure +hostmakedepends="automake wget cpio squashfs-tools bc gnupg git go" +makedepends="acl-devel zlib-devel" +short_desc="App Container runtime for Linux" +maintainer="Andrea Brancaleoni " +license="Apache-2.0" +homepage="https://github.com/coreos/rkt" +distfiles="$homepage/archive/v$version.tar.gz" +checksum=7e30b03fa51a34db095484c4b111c526e49bead4e33232e1b239090503d7ac97 + +configure_args="--enable-tpm=no +--with-stage1-flavors=fly +--with-stage1-default-location=/usr/lib/rkt/stage1.aci" + +system_groups="rkt" + +nocross=yes + +only_for_archs="i686 x86_64 x86_64-musl" # there is a bug with squashfs in musl + it doesn't crosscompile + +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 dist/bash_completion/rkt.bash 644 usr/share/bash-completion/completions/rkt + vinstall ${FILESDIR}/rkt-gc 755 etc/cron.daily/rkt-gc + + vbin build-${pkgname}-${version}/bin/rkt + vinstall build-${pkgname}-${version}/bin/stage1-fly.aci 644 usr/lib/rkt stage1.aci +}