aboutsummaryrefslogtreecommitdiffstats
path: root/community/containerd
diff options
context:
space:
mode:
authorJake Buchholz <tomalok@gmail.com>2019-01-10 02:13:12 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-01-10 09:33:59 +0000
commit96457d52340f548ff495b40aed2f066494891533 (patch)
tree732827e0d3fbd1890aabab224f6ff41566f53200 /community/containerd
parente3a6a34509c08e45625c940842bdde6bf55af6bc (diff)
downloadaports-96457d52340f548ff495b40aed2f066494891533.tar.bz2
aports-96457d52340f548ff495b40aed2f066494891533.tar.xz
community/containerd: update to 1.2.1, move from testing
Splitting containerd out of community/docker, upgrading to 1.2.1, and remove from testing. Also fixed containerd --version to report the proper commit hash.
Diffstat (limited to 'community/containerd')
-rw-r--r--community/containerd/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/community/containerd/APKBUILD b/community/containerd/APKBUILD
new file mode 100644
index 0000000000..9dcc27860e
--- /dev/null
+++ b/community/containerd/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Jake Buchholz <tomalok@gmail.com>
+# Maintainer: Jake Buchholz <tomalok@gmail.com>
+
+pkgname=containerd
+
+# NOTE: containerd's Makefile tries to get REVISION from git, but we're building from a tarball.
+_commit=9b32062dc1
+pkgver=1.2.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"
+
+build() {
+ cd "$srcdir"
+ export GOPATH="$PWD"
+ mkdir -p $(dirname "$builddir")
+ ln -s "$PWD/$pkgname-$pkgver" "$builddir"
+ cd "$builddir"
+ make VERSION="v$pkgver" REVISION="$_commit"
+ make man
+}
+
+check() {
+ cd "$builddir"
+ ./bin/containerd --version
+}
+
+package() {
+ cd "$builddir"
+ 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="0949299afe17e269a6c551e865e500afeeaba700cf78bb12fef4af8e6d48a2f699976e81dad44d797bb13079361f5d5e05e9abe903a3b158af93f2aaa95712e5 containerd-1.2.1.tar.gz"