blob: afef9bd496cc9bbfb6114ec42a944233a9c66dea (
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
|
# Contributor: Jake Buchholz Göktürk <tomalok@gmail.com>
# Maintainer: Jake Buchholz Göktürk <tomalok@gmail.com>
pkgname=runc
pkgdesc="CLI tool for spawning and running containers according to the OCI specification"
url="https://www.opencontainers.org"
_commit=52b36a2dd837e8462de8e01458bf02cf9eea47dd
pkgver=1.0.2
pkgrel=0
arch="all"
license="Apache-2.0"
makedepends="go go-md2man libseccomp-dev libtool"
subpackages="$pkgname-doc"
source="https://github.com/opencontainers/runc/archive/v$pkgver/runc-$pkgver.tar.gz"
builddir="$srcdir/src/github.com/opencontainers/runc"
options="!check"
# secfixes:
# 1.0.0_rc95-r0:
# - CVE-2021-30465
# 1.0.0_rc10-r0:
# - CVE-2019-19921
# 1.0.0_rc9-r0:
# - CVE-2019-16884
# 1.0.0_rc7-r0:
# - CVE-2019-5736
build() {
cd "$srcdir"
export GOPATH="$PWD"
mkdir -p "$(dirname "$builddir")"
ln -s "$PWD/$pkgname-$pkgver" "$builddir"
cd "$builddir"
make COMMIT="$_commit" EXTRA_LDFLAGS="-w -s"
make man
}
package() {
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="
434abd6d7ad2508c2272b627d8aeeb28ecd8461899bff463e7d2c7abbc0f0cbb2e0bafbfe81fc534fad506b1acb4bda3e05639ecd908bc9d0d2e9356f1e56e26 runc-1.0.2.tar.gz
"
|