blob: af47e0d510191379ac47e321580499e4aba467a5 (
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
|
# Contributor: Jake Buchholz <tomalok@gmail.com>
# Maintainer: Jake Buchholz <tomalok@gmail.com>
pkgname=runc
pkgdesc="CLI tool for spawning and running containers according to the OCI specification"
url="https://www.opencontainers.org"
_commit=3e425f80a8c931f88e6d94a8c831b9d5aa481657
pkgver=1.0.0_rc8
pkgrel=2
#_ver=v${pkgver/_rc/-rc}
# if we're building against an explicit commit beyond pkgver, use this instead:
_ver=${_commit}
arch="all"
license="Apache-2.0"
makedepends="go go-md2man libseccomp-dev libtool"
subpackages="$pkgname-doc"
source="runc-$_ver.tar.gz::https://github.com/opencontainers/runc/archive/$_ver.tar.gz"
builddir="$srcdir/src/github.com/opencontainers/runc"
options="!check"
# secfixes:
# 1.0.0_rc8-r2:
# - CVE-2019-16884
# 1.0.0_rc7:
# - CVE-2019-5736
build() {
cd "$srcdir"
export GOPATH="$PWD"
mkdir -p "$(dirname "$builddir")"
ln -s "$PWD/$pkgname-${_ver#v}" "$builddir"
cd "$builddir"
make COMMIT="$_commit"
make man
}
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="7287738ba1cf50569c5ac3637e45b4c6af6fa4c0b6f9e65d9f9889ef7a5736d49c68cd243f08b94131814c579064e13f04258b90d688285be2b7b1c9eb634801 runc-3e425f80a8c931f88e6d94a8c831b9d5aa481657.tar.gz"
|