diff options
author | François Chavant <francois@lightcurve.io> | 2018-05-28 15:33:09 +0200 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2018-06-07 10:27:32 +0300 |
commit | 96e15ec90e6a09e203601f8c4875a0ae267838ba (patch) | |
tree | 05021f9ae9d878a52b8581accc7ccd53a224ab94 | |
parent | 3e3a116cadca9d8cab70b02c07a8a2c80c472da7 (diff) | |
download | alpine_aports-96e15ec90e6a09e203601f8c4875a0ae267838ba.tar.bz2 alpine_aports-96e15ec90e6a09e203601f8c4875a0ae267838ba.tar.xz alpine_aports-96e15ec90e6a09e203601f8c4875a0ae267838ba.zip |
testing/confd: upgrade to 0.16.0 and modernize
-rw-r--r-- | testing/confd/APKBUILD | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/testing/confd/APKBUILD b/testing/confd/APKBUILD index 04bd95c438..ea65f82f13 100644 --- a/testing/confd/APKBUILD +++ b/testing/confd/APKBUILD | |||
@@ -1,37 +1,35 @@ | |||
1 | # Contributor: tang0th <tang0th@gmx.com> | 1 | # Contributor: tang0th <tang0th@gmx.com> |
2 | # Contributor: fchavant <francois@lightcurve.io> | ||
2 | # Maintainer: | 3 | # Maintainer: |
3 | pkgname=confd | 4 | pkgname=confd |
4 | pkgver=0.12.0_alpha3 | 5 | pkgver=0.16.0 |
5 | _ver=${pkgver/_/-} | ||
6 | pkgrel=0 | 6 | pkgrel=0 |
7 | pkgdesc="Manage local application configuration files using templates and data from etcd or consul" | 7 | pkgdesc="Manage local application configuration files using templates and data from etcd or consul" |
8 | url="http://confd.io" | 8 | url="http://confd.io" |
9 | arch="all" | 9 | arch="all" |
10 | license="BSD" | 10 | license="MIT" |
11 | depends="" | 11 | depends="" |
12 | depends_dev="" | 12 | makedepends="go" |
13 | makedepends="$depends_dev go" | ||
14 | install="" | 13 | install="" |
15 | subpackages="" | 14 | subpackages="" |
16 | source="$pkgname-$_ver.tar.gz::https://github.com/kelseyhightower/$pkgname/archive/v$_ver.tar.gz" | 15 | source="$pkgname-$pkgver.tar.gz::https://github.com/kelseyhightower/$pkgname/archive/v$pkgver.tar.gz" |
17 | 16 | ||
18 | builddir="$srcdir/$pkgname-$_ver" | ||
19 | build() { | 17 | build() { |
20 | cd "$srcdir" | 18 | export GOPATH="$srcdir" |
21 | export GOPATH="$PWD" | 19 | mkdir -p "$GOPATH/src/github.com/kelseyhightower" |
22 | export GO15VENDOREXPERIMENT=1 | 20 | mv "$srcdir/$pkgname-$pkgver" "$GOPATH/src/github.com/kelseyhightower/confd" |
23 | 21 | cd "$GOPATH/src/github.com/kelseyhightower/confd" | |
24 | mkdir -p src/github.com/kelseyhightower/ | 22 | make |
25 | cp -r "$builddir" src/github.com/kelseyhightower/confd | 23 | } |
26 | 24 | ||
27 | go install -v github.com/kelseyhightower/confd | 25 | check() { |
26 | export GOPATH="$srcdir" | ||
27 | cd "$GOPATH/src/github.com/kelseyhightower/confd" | ||
28 | make test | ||
28 | } | 29 | } |
29 | 30 | ||
30 | package() { | 31 | package() { |
31 | cd "$srcdir" | 32 | install -Dm755 "$srcdir/src/github.com/kelseyhightower/confd/bin/confd" "$pkgdir/usr/bin/confd" |
32 | install -Dm755 bin/confd "$pkgdir"/usr/bin/confd || return 1 | ||
33 | } | 33 | } |
34 | 34 | ||
35 | md5sums="1420665b612d994442e3914ab2c8f4a7 confd-0.12.0-alpha3.tar.gz" | 35 | sha512sums="eafabf85d1d7193847a78dcfde7b9961bdf5b634165d27acc760aff6e4ef79cac9688abdfcac049773a28f997f87ea94e6a7606ee7f7d7aaaeaa8ba67f7e48b7 confd-0.16.0.tar.gz" |
36 | sha256sums="b679b35afb593bd9472cbf35c778829288c85c7b92678747d3a059ea0d74c16c confd-0.12.0-alpha3.tar.gz" | ||
37 | sha512sums="4feb81952a5cd2fcb8250cf5df93b6ceeb9a2e5173f45f7c5cbdcd2de59acf7d85a60c1513520c601e7b7a1257d26c912877eaac53aafe9e4e278e4e9cc6ab15 confd-0.12.0-alpha3.tar.gz" | ||