diff --git a/srcpkgs/containerd/files/containerd/run b/srcpkgs/containerd/files/containerd/run new file mode 100755 index 00000000000..92738de8099 --- /dev/null +++ b/srcpkgs/containerd/files/containerd/run @@ -0,0 +1,3 @@ +#!/bin/sh +env modeprobe overlay +exec containerd diff --git a/srcpkgs/containerd/template b/srcpkgs/containerd/template new file mode 100644 index 00000000000..9ad06580b1d --- /dev/null +++ b/srcpkgs/containerd/template @@ -0,0 +1,30 @@ +# Template file for 'containerd' +pkgname=containerd +version=1.0.2 +revision=1 +_subver="rc.1" +_ver="$version-$_subver" +build_style=go +go_import_path=github.com/containerd/containerd +wrksrc="$pkgname-$_ver" +hostmakedepends="git go" +makedepends="libbtrfs-devel" +depends="runc" +short_desc="An open and reliable container runtime" +maintainer="Paul Knopf " +license="Apache-2.0" +homepage="https://github.com/containerd/containerd" +distfiles="https://github.com/containerd/containerd/archive/v${_ver}.tar.gz" +checksum=abece915b8017fa9de9afc1139a6adfbb829f192c707a6a8e13f17f17bb2c602 +make_dirs="/var/lib/containerd 0755 root root" + +do_build() { + cd ${GOSRCPATH} + make +} + +do_install() { + vsv containerd + cd ${GOSRCPATH} + make install DESTDIR=${DESTDIR}/usr/ +}