commit 00ce581d4ffd541abe630f2c51e1e69e3cbe25e2 Author: Brad Erhart Date: Sun Feb 2 11:46:58 2020 -0800 Adding gvisor v20200127.0 diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..2e1741d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = gvisor-bin + pkgdesc = OCI container sandbox runtime focused on security, efficiency, and ease of use + pkgver = 20200127.0 + pkgrel = 1 + url = https://gvisor.dev + install = gvisor-bin.install + arch = x86_64 + license = Apache + depends = docker + provides = gvisor + provides = runsc + conflicts = gvisor-git + conflicts = runsc + source = gvisor-bin-20200127.0::https://storage.googleapis.com/gvisor/releases/release/20200127.0/runsc + sha256sums = 09e970cfca06712488edae1eb7b24a66acb39df1e83e282c0abd755c6ceba4df + +pkgname = gvisor-bin + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bc96b67 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +gvisor-bin-* +pkg/ +src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..9454225 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Brad Erhart + +pkgname=gvisor-bin +_pkgname=runsc +pkgver=20200127.0 +pkgrel=1 +pkgdesc='OCI container sandbox runtime focused on security, efficiency, and ease of use' +arch=('x86_64') +url='https://gvisor.dev' +license=('Apache') +depends=('docker') +provides=( + "${pkgname%-bin}" + "$_pkgname" +) +conflicts=( + gvisor-git + "$_pkgname" +) +install="$pkgname.install" +source=("$pkgname-$pkgver::https://storage.googleapis.com/${pkgname%-bin}/releases/release/$pkgver/$_pkgname") +sha256sums=('09e970cfca06712488edae1eb7b24a66acb39df1e83e282c0abd755c6ceba4df') + +package() { + install -Dm 755 "$pkgname-$pkgver" "$pkgdir/usr/bin/$_pkgname" +} diff --git a/gvisor-bin.install b/gvisor-bin.install new file mode 100644 index 0000000..adc2bb2 --- /dev/null +++ b/gvisor-bin.install @@ -0,0 +1,15 @@ +post_install() { + runsc install +} + +pre_upgrade() { + runsc uninstall +} + +post_upgrade() { + runsc install +} + +pre_remove() { + runsc uninstall +}