Created
September 4, 2020 23:11
-
-
Save rrichardson/5b8f7e273818b80f57f618f83610102c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Tony Lambiris <[email protected]> | |
pkgname=cri-o | |
pkgver=1.18.3 | |
pkgrel=1 | |
pkgdesc='Open Container Initiative-based implementation of Kubernetes Container Runtime Interface' | |
arch=(x86_64) | |
url='https://github.com/cri-o/cri-o' | |
license=(Apache) | |
makedepends=(go go-md2man ostree) | |
backup=('etc/crio/crio.conf') | |
source=("git+https://github.com/cri-o/cri-o") | |
sha256sums=('SKIP') | |
prepare() { | |
cd "$srcdir/$pkgname" | |
git checkout "v$pkgver" | |
install -m755 -d "$srcdir/go/src/github.com/cri-o" | |
ln -sf "$srcdir/$pkgname" "$srcdir/go/src/github.com/cri-o/cri-o" | |
} | |
build() { | |
cd "$srcdir/go/src/github.com/cri-o/cri-o" | |
sed -i 's/$(GO) build -i/$(GO) build/' Makefile | |
#sed -i 's#../bin/conmon: config.h $(obj) | ../bin#../bin/conmon: $(obj) | config.h ../bin#' conmon/Makefile | |
export GOPATH="${srcdir}/go" PATH="${srcdir}/go/bin:${PATH}" | |
#make install.tools | |
make | |
./bin/crio --selinux=true \ | |
--storage-driver=overlay \ | |
--conmon /usr/libexec/crio/conmon \ | |
--cni-plugin-dir /usr/libexec/cni \ | |
--cgroup-manager=systemd config > crio.conf | |
} | |
package() { | |
cd "${srcdir}/go/src/github.com/cri-o/cri-o" | |
export GOPATH="${srcdir}/go" | |
echo "**** pkgdir = ${pkgdir}" 1>&2; | |
install -dm755 "${pkgdir}/usr/lib/systemd/system" | |
make install install.systemd DESTDIR="${pkgdir}" PREFIX="${pkgdir}/usr" | |
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
# fix-up paths pointing to /usr/local to /usr | |
#sed -i --follow-symlinks -re 's|/usr/local|/usr|g' "${pkgdir}/usr/lib/systemd/system/"*.service | |
# install configs | |
#install -dm755 "${pkgdir}/etc/crio/" | |
#install -Dm644 "crio.conf" "${pkgdir}/etc/crio/crio.conf" | |
#install -Dm644 "seccomp.json" "${pkgdir}/etc/crio/seccomp.json" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment