aboutsummaryrefslogtreecommitdiffstats
path: root/community/runc/APKBUILD
blob: f1172e8c3fd641c83f92dbdc24ff9ebb5b96819c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Contributor: Jake Buchholz <tomalok@gmail.com>
# Maintainer: Jake Buchholz <tomalok@gmail.com>

pkgname=runc

# NOTE: using explicit post-1.0.0_rc6 commit, later than the one specified by
# containerd (https://github.com/containerd/containerd/blob/v1.2.5/vendor.conf)
# for improved mitigation of CVE-2019-5736, which properly compiles with musl libc.
_commit=f56b4cbeadc407e715d9b2ba49e62185bd81cef4

pkgver=1.0.0_rc6
pkgrel=2
pkgdesc="CLI tool for spawning and running containers according to the OCI specification"
url="https://www.opencontainers.org"
arch="all"
license="Apache-2.0"
makedepends="go go-md2man libseccomp-dev libtool"
subpackages="$pkgname-doc"
source="runc-$_commit.tar.gz::https://github.com/opencontainers/runc/archive/$_commit.tar.gz"
builddir="$srcdir/src/github.com/opencontainers/runc"

# secfixes:
#   1.0.0_rc6-r2:
#     - CVE-2019-5736

build() {
	cd "$srcdir"
	export GOPATH="$PWD"
	mkdir -p $(dirname "$builddir")
	ln -s "$PWD/$pkgname-$_commit" "$builddir"
	cd "$builddir"
	make COMMIT="$_commit"
	make man
}

check() {
	cd "$builddir"
	./runc --version
}

package() {
	cd "$builddir"
	install -Dsm755 "$builddir"/runc "$pkgdir"/usr/bin/runc
	install -d "$pkgdir"/usr/share/man/man8/
	install -Dm644 "$builddir"/man/man8/* "$pkgdir"/usr/share/man/man8/
}

sha512sums="cf6c189f06fb4fde78807a71df14c78a9cd1af5c8958bcb4a438e8ae173ac7d6a66013210d7442e47b83552f3d2417300ee9f317bde3c3247173e2e19132fee3  runc-f56b4cbeadc407e715d9b2ba49e62185bd81cef4.tar.gz"