From 5bef15666ec397f281fa09fa57b059549902f144 Mon Sep 17 00:00:00 2001 From: Gennady Feldman Date: Fri, 16 Sep 2016 12:25:55 +0000 Subject: testing/consul-template: new aport https://www.consul.io/ Generic template rendering and notifications with Consul --- testing/consul-template/APKBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 testing/consul-template/APKBUILD diff --git a/testing/consul-template/APKBUILD b/testing/consul-template/APKBUILD new file mode 100644 index 0000000000..d8711193c9 --- /dev/null +++ b/testing/consul-template/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Gennady Feldman +# Maintainer: +pkgname=consul-template +pkgver=0.16.0 +pkgrel=0 +pkgdesc="Generic template rendering and notifications with Consul" +url="https://www.consul.io/" +arch="all" +license="MPL-2.0" +depends="" +makedepends="go" +options="!strip" +source="$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/$pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" + +build() { + cd "$builddir" + + mkdir -p "$builddir/src/github.com/hashicorp" + ln -s "$builddir" "$builddir/src/github.com/hashicorp/$pkgname" + cd "$builddir/src/github.com/hashicorp/$pkgname" || return 1 + + GOPATH="$builddir" go build -v -o bin/$pkgname +} + +package() { + cd "$builddir" + + # Main binary + install -m750 -D bin/$pkgname "$pkgdir"/usr/sbin/$pkgname +} + +md5sums="98d86a7cabbd2dfd981c8f494676903f consul-template-0.16.0.tar.gz" +sha256sums="c20e1e54c333baa8b1e031710f71a5a533ffe079d657763567478a021344ff55 consul-template-0.16.0.tar.gz" +sha512sums="7f5f34ae7ccd5a9ce27f07a96bd6b226a78197d1455bbba76c5aab36d93090661eafc0ed513fce6930020095ab4cda799f71ed208a85ba83f540204f0d041994 consul-template-0.16.0.tar.gz" -- cgit v1.2.3