2022-07-12 11:15:51 +00:00
|
|
|
# Contributor: ungleich <foss@ungleich.ch>
|
|
|
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
|
|
# Contributor: TBK <alpine@jjtc.eu>
|
|
|
|
# Maintainer: ungleich <foss@ungleich.ch>
|
|
|
|
pkgname=cri-o
|
2024-03-12 15:18:42 +00:00
|
|
|
pkgver=1.27.1
|
2022-07-12 11:15:51 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="OCI-based implementation of Kubernetes Container Runtime Interface"
|
|
|
|
url="https://github.com/cri-o/cri-o/"
|
|
|
|
arch="all"
|
|
|
|
license="Apache-2.0"
|
2023-07-04 15:10:30 +00:00
|
|
|
# Most tests will fail if not ran as root
|
|
|
|
# since it tries to create network interfaces
|
2022-07-12 11:15:51 +00:00
|
|
|
options="net chmod-clean !check"
|
|
|
|
depends="
|
|
|
|
cni-plugins
|
2023-07-04 15:10:30 +00:00
|
|
|
conmon
|
2024-03-12 15:18:42 +00:00
|
|
|
conntrack-tools
|
2022-07-12 11:15:51 +00:00
|
|
|
containers-common
|
|
|
|
iproute2
|
|
|
|
iptables
|
2023-07-04 15:10:30 +00:00
|
|
|
oci-runtime
|
2022-07-12 11:15:51 +00:00
|
|
|
"
|
|
|
|
makedepends="
|
|
|
|
bash
|
|
|
|
btrfs-progs-dev
|
|
|
|
eudev-dev
|
|
|
|
glib-dev
|
|
|
|
go
|
|
|
|
go-md2man
|
|
|
|
gpgme-dev
|
|
|
|
libseccomp-dev
|
|
|
|
libselinux-dev
|
|
|
|
lvm2-dev
|
|
|
|
ostree-dev
|
2024-03-12 15:18:42 +00:00
|
|
|
sqlite-dev
|
2022-07-12 11:15:51 +00:00
|
|
|
tzdata
|
|
|
|
"
|
2023-07-04 15:10:30 +00:00
|
|
|
checkdepends="bats cri-tools jq parallel sudo conmon"
|
2022-07-12 11:15:51 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-doc
|
|
|
|
$pkgname-bash-completion
|
|
|
|
$pkgname-zsh-completion
|
|
|
|
$pkgname-openrc
|
|
|
|
"
|
2024-03-12 15:18:42 +00:00
|
|
|
#$pkgname-fish-completion
|
|
|
|
|
2023-07-04 15:10:30 +00:00
|
|
|
source="
|
|
|
|
$pkgname-$pkgver.tar.gz::https://github.com/cri-o/cri-o/archive/v$pkgver/cri-o-$pkgver.tar.gz
|
2022-07-12 11:15:51 +00:00
|
|
|
crio.conf
|
|
|
|
crio.initd
|
|
|
|
crio.logrotated
|
|
|
|
cni-plugins-path.patch
|
|
|
|
makefile-fix-install.patch
|
2023-07-04 15:10:30 +00:00
|
|
|
fix-test.patch
|
2022-07-12 11:15:51 +00:00
|
|
|
remove-systemd-files.patch
|
2023-08-18 15:17:00 +00:00
|
|
|
crictl.yaml
|
2022-07-12 11:15:51 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
# secfixes:
|
|
|
|
# 1.23.2-r0:
|
|
|
|
# - CVE-2022-0811
|
2023-07-04 15:10:30 +00:00
|
|
|
# 1.24.1-r0:
|
|
|
|
# - CVE-2022-1708
|
|
|
|
# 1.26.2-r0:
|
|
|
|
# - CVE-2022-4318
|
|
|
|
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
export GOBIN="$GOPATH/bin"
|
2022-07-12 11:15:51 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
# https://github.com/cri-o/cri-o/blob/master/install.md#build-tags
|
2024-03-12 15:18:42 +00:00
|
|
|
make BUILDTAGS="libsqlite3 seccomp selinux apparmor containers_image_openpgp containers_image_ostree_stub"
|
2022-07-12 11:15:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
make localintegration
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-03-12 15:18:42 +00:00
|
|
|
make \
|
|
|
|
DESTDIR="$pkgdir" \
|
|
|
|
PREFIX=/usr \
|
|
|
|
CRICTL_CONFIG_DIR="/etc/crio" \
|
|
|
|
OCIUMOUNTINSTALLDIR="/etc/crio" \
|
|
|
|
FISHINSTALLDIR=/usr/share/fish/vendor_completions.d \
|
|
|
|
install.bin-nobuild install.man-nobuild install.completions install.config-nobuild
|
2022-07-12 11:15:51 +00:00
|
|
|
|
|
|
|
# We want it in etc so apk does not overwrite it
|
|
|
|
mkdir -p "$pkgdir"/usr/share/oci-umount/oci-umount.d/
|
2024-03-12 15:18:42 +00:00
|
|
|
ln -sf ../../../../etc/crio/crio-umount.conf "$pkgdir"/usr/share/oci-umount/oci-umount.d/crio-umount.conf
|
2022-07-12 11:15:51 +00:00
|
|
|
|
2023-07-04 15:10:30 +00:00
|
|
|
# The CNI plugins are recommended to be installed as examples
|
|
|
|
install -Dm644 contrib/cni/*.conflist -t "$pkgdir"/usr/share/doc/cri-o/examples/cni/
|
|
|
|
|
2022-07-12 11:15:51 +00:00
|
|
|
install -Dm755 "$srcdir"/crio.initd "$pkgdir"/etc/init.d/crio
|
|
|
|
install -Dm644 "$srcdir"/crio.conf "$pkgdir"/etc/crio/crio.conf
|
|
|
|
install -Dm644 "$srcdir"/crio.logrotated "$pkgdir"/etc/logrotate.d/crio
|
2023-08-18 15:17:00 +00:00
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/crictl.yaml "$pkgdir"/etc/crictl.yaml
|
2022-07-12 11:15:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2024-03-12 15:18:42 +00:00
|
|
|
27fb79141dd60c1744df8761a4d43603256f7f06e32d2f9c76be62b95dcf62924c7501d0461efabb013ae397c16030b6a2b037eeaae7a5daec7c28943f71bc7e cri-o-1.27.1.tar.gz
|
2023-07-04 15:10:30 +00:00
|
|
|
1f60719677295c9c5c615eb25d9159bde0af68a132eee67747f57fe76642d457c98c896c6189f85637d7b4ac24ba55fd9eaeb1699f43c3c5077b645f72a479fb crio.conf
|
2024-03-12 15:18:42 +00:00
|
|
|
e9149cc2ddd24328c5290d3aea895c01e2798e066897535384f615a556496acdd52a603a0f4ac3c4c70bd5c363592f23c8b4d1987bf738300112fc62e1def555 crio.initd
|
2022-07-12 11:15:51 +00:00
|
|
|
1115228546a696eeebeb6d4b3e5c3152af0c99a2559097fc5829d8b416d979c457b4b1789e0120054babf57f585d3f63cbe49949d40417ae7aab613184bf4516 crio.logrotated
|
|
|
|
0a567dfa431ab1e53f2a351689be8d588a60cc5fcdbda403ec4f8b6ab9b1c18ad425f6c47f9a5ab1491e3a61a269dc4efa6a59e91e7521fa2b6bb165074aa8e0 cni-plugins-path.patch
|
|
|
|
f9577aa7b1c90c6809010e9e406e65092251b6e82f6a0adbc3633290aa35f2a21895e1a8b6ba4b6375dcad3e02629b49a34ab16387e1c36eeb32c8f4dac74706 makefile-fix-install.patch
|
2023-07-04 15:10:30 +00:00
|
|
|
1c1bfa5feeb0c5ddc92271a5ef80edc38d56afa1574ffc124605d5bb227a407b55dd5268df6cebc6720768ac31245e08b7950e5ab2b7f14ba934c94f1e325f86 fix-test.patch
|
2022-07-12 11:15:51 +00:00
|
|
|
78c150f87027de489289596371dce0465159ced0758776b445deb58990e099de9c654406183c9da3cc909878b24d28db62121b7056cd180a6f2820e79e165cc6 remove-systemd-files.patch
|
2023-08-18 15:17:00 +00:00
|
|
|
79e1a7c6183ba56f55d923e9d738be945564494042bc011d31e9195f66c268d702ee5c86711d4b46618285fc1b10b59ea55c321390feca770cfc7de334e103bd crictl.yaml
|
2022-07-12 11:15:51 +00:00
|
|
|
"
|