diff options
author | Gennady Feldman <gena01@gmail.com> | 2016-09-16 12:25:55 +0000 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-29 15:51:22 +0200 |
commit | 5bef15666ec397f281fa09fa57b059549902f144 (patch) | |
tree | fb66e09f31d1881040ae50facd528cfe1c666222 /testing | |
parent | b2b0e320056bc35721ad8142df7dda40dc5668d8 (diff) | |
download | aports-5bef15666ec397f281fa09fa57b059549902f144.tar.bz2 aports-5bef15666ec397f281fa09fa57b059549902f144.tar.xz |
testing/consul-template: new aport
https://www.consul.io/
Generic template rendering and notifications with Consul
Diffstat (limited to 'testing')
-rw-r--r-- | testing/consul-template/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
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 <gena01@gmail.com> +# 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" |