aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandall Leeds <randall@bleeds.info>2016-04-29 16:31:26 -0700
committerNatanael Copa <ncopa@alpinelinux.org>2016-05-02 17:30:27 +0000
commit4bf97c41ecf5391ad046883164979e2ff7fee447 (patch)
tree3d09725d8fcc7f45922ef9a53c54c26f41eec1e8
parent6ca1c411b328719764275a31de15b4b3453d3719 (diff)
downloadaports-4bf97c41ecf5391ad046883164979e2ff7fee447.tar.bz2
aports-4bf97c41ecf5391ad046883164979e2ff7fee447.tar.xz
testing/entrykit: new aport
https://github.com/progrium/entrykit Entrypoint tools for elegant, programmable containers
-rw-r--r--testing/entrykit/APKBUILD35
-rw-r--r--testing/entrykit/entrykit.post-deinstall8
-rw-r--r--testing/entrykit/entrykit.post-install2
3 files changed, 45 insertions, 0 deletions
diff --git a/testing/entrykit/APKBUILD b/testing/entrykit/APKBUILD
new file mode 100644
index 0000000000..0575aa1789
--- /dev/null
+++ b/testing/entrykit/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Matt Aitchison <Matt.Aitchison@gliderlabs.com>
+# Maintainer: Randall Leeds <randall@bleeds.info>
+pkgname=entrykit
+pkgver=0.4.0
+pkgrel=0
+pkgdesc="Entrypoint tools for elegant, programmable containers"
+url="https://github.com/progrium/entrykit"
+arch="all"
+license="MIT"
+depends=""
+depends_dev=""
+makedepends="go"
+install="$pkgname.post-install $pkgname.post-deinstall"
+subpackages=""
+source="$pkgname-$pkgver.tar.gz::https://github.com/progrium/$pkgname/archive/v$pkgver.tar.gz"
+
+
+_builddir="$srcdir/go/src/github.com/progrium/$pkgname"
+build() {
+ export GOPATH="$srcdir/go"
+ mkdir -p $_builddir
+ ln -sf $srcdir/$pkgname-$pkgver/* "$_builddir"
+
+ cd "$_builddir"
+ go get -d -v ./cmd || return 1
+ go build -a -ldflags "-X main.Version=$pkgver" -o bin/$pkgname ./cmd || return 1
+}
+
+package() {
+ install -Dm755 "$_builddir/bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
+}
+
+md5sums="10d9189782ca67a2a7de963ef05dd861 entrykit-0.4.0.tar.gz"
+sha256sums="89a35754ff0a9beba3a6d2eb34bc6048476409536586908cf3e2c6afdb503463 entrykit-0.4.0.tar.gz"
+sha512sums="79097b090af7bcaed31587d7ea81776698ac1bfa75defb4269e02da3f282d109fa1b68b3e8aca4351a3eb1fe1c0128c26853174f398b8d015b16a51a131ca6ca entrykit-0.4.0.tar.gz"
diff --git a/testing/entrykit/entrykit.post-deinstall b/testing/entrykit/entrykit.post-deinstall
new file mode 100644
index 0000000000..24c8946142
--- /dev/null
+++ b/testing/entrykit/entrykit.post-deinstall
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+for link in /usr/bin/*; do
+ if [ -L "$link" ] && [ "$(readlink $link)" = "/usr/bin/entrykit" ]; then
+ echo "removing $link"
+ rm "$link"
+ fi
+done
diff --git a/testing/entrykit/entrykit.post-install b/testing/entrykit/entrykit.post-install
new file mode 100644
index 0000000000..d581bdc451
--- /dev/null
+++ b/testing/entrykit/entrykit.post-install
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/entrykit --symlink