# Contributor: Jake Buchholz # Maintainer: Jake Buchholz pkgname=containerd # NOTE: containerd's Makefile tries to get REVISION from git, but we're building from a tarball. _commit=c7a4f874b3267c499484aae602d1257b12d69e40 pkgver=1.3.1 pkgrel=0 pkgdesc="An open and reliable container runtime" url="https://containerd.io" arch="all" license="Apache-2.0" depends="runc" makedepends="btrfs-progs-dev go go-md2man libseccomp-dev" subpackages="$pkgname-doc" source="containerd-$pkgver.tar.gz::https://github.com/containerd/containerd/archive/v$pkgver.tar.gz" builddir="$srcdir/src/github.com/containerd/containerd" # secfixes: # 1.3.1: # - CVE-2019-17596 # 1.3.0: # - CVE-2019-16884 # 1.2.9: # - CVE-2019-9512 # - CVE-2019-9514 # - CVE-2019-9515 # 1.2.6: # - CVE-2019-9946 build() { cd "$srcdir" export GOPATH="$PWD" mkdir -p $(dirname "$builddir") ln -s "$PWD/$pkgname-$pkgver" "$builddir" cd "$builddir" make VERSION="v$pkgver" REVISION="$_commit" # new generated manpages make genman # older non-generated manpages make MANPAGES="containerd-config.1 containerd-config.toml.5" man } check() { ./bin/containerd --version } package() { install -d "$pkgdir"/usr/bin/ install -Dsm755 "$builddir"/bin/* "$pkgdir"/usr/bin/ install -d "$pkgdir"/usr/share/man/man1/ install -Dm644 "$builddir"/man/*.1 "$pkgdir"/usr/share/man/man1/ install -d "$pkgdir"/usr/share/man/man5/ install -Dm644 "$builddir"/man/*.5 "$pkgdir"/usr/share/man/man5/ } sha512sums="4991286d1a8a221dad24121c5e6cd31a00685d91e652546d0d97745624486450bc05ff4f889f2975c178c4c175fedd7b15f89121a7ce4e6687919aabd04501b4 containerd-1.3.1.tar.gz"