diff options
author | Tony Lambiris | 2018-03-22 23:52:58 -0400 |
---|---|---|
committer | Tony Lambiris | 2018-03-22 23:52:58 -0400 |
commit | 2db99148cedf0633c82d575ae7ec4a77de5e467d (patch) | |
tree | 030678a58d42a5b5045d2a8689dc7be5afae4bed | |
download | aur-2db99148cedf0633c82d575ae7ec4a77de5e467d.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 48 | ||||
-rw-r--r-- | cilium.sysusers | 2 |
4 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b3d76d68e097 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = cilium-git + pkgdesc = API-aware Networking and Security for Containers based on BPF + pkgver = v0.13.16.r10.g70d545605 + pkgrel = 1 + url = https://cilium.io/ + arch = x86_64 + license = Apache + makedepends = go + makedepends = lib32-glibc + depends = docker + depends = iproute2 + depends = clang + source = cilium-git::git+https://github.com/cilium/cilium + source = cilium.sysusers + sha256sums = SKIP + sha256sums = f47ee5b436304aa55ffad29fd68e31be4b1261d3f81ba2a7a370e522705833e8 + +pkgname = cilium-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..d6a0a8e239ad --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +src +pkg +cilium-git +*pkg.tar.xz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e3717ac06c55 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Tony Lambiris <tony@criticalstack.com> + +pkgname=cilium-git +pkgver=v0.13.16.r10.g70d545605 +pkgrel=1 +pkgdesc="API-aware Networking and Security for Containers based on BPF" +arch=('x86_64') +url="https://cilium.io/" +license=('Apache') +depends=('docker' 'iproute2' 'clang') +makedepends=('go' 'lib32-glibc') +conflicts=() +source=("${pkgname}::git+https://github.com/cilium/cilium" "cilium.sysusers") +sha256sums=('SKIP' + 'f47ee5b436304aa55ffad29fd68e31be4b1261d3f81ba2a7a370e522705833e8') + +pkgver() { + cd "${srcdir}/${pkgname}" + + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "${srcdir}/${pkgname}" + + mkdir -p "${srcdir}/go/src/github.com/cilium" + cp -a "${srcdir}/${pkgname}" "${srcdir}/go/src/github.com/cilium/cilium" +} + +build() { + cd "${srcdir}/go/src/github.com/cilium/cilium" + + export GOPATH="${srcdir}/go" + export PATH="$GOPATH/bin:$PATH" + export PKG_BUILD=1 + + make -C daemon apply-bindata + make V=1 plugins bpf cilium daemon monitor cilium-health bugtool +} + +package() { + cd "${srcdir}/go/src/github.com/cilium/cilium" + + make DESTDIR="${pkgdir}" install + + install -Dm644 "$srcdir/cilium.sysusers" \ + "$pkgdir/usr/lib/sysusers.d/cilium.conf" +} diff --git a/cilium.sysusers b/cilium.sysusers new file mode 100644 index 000000000000..f20a82189dc6 --- /dev/null +++ b/cilium.sysusers @@ -0,0 +1,2 @@ +# create cilium group +g cilium - - |