summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD17
2 files changed, 12 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f88b338ba90..4af3a80bad4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,16 @@
# Generated by mksrcinfo v8
-# Thu Aug 17 21:13:08 UTC 2017
+# Sun Apr 14 03:32:16 UTC 2019
pkgbase = do-agent
pkgdesc = DigitalOcean Agent for Enhanced Droplet Graphs
- pkgver = 0.5.1
+ pkgver = 2.1.3
pkgrel = 1
url = https://github.com/digitalocean/do-agent
arch = x86_64
license = apache
makedepends = go
- source = https://github.com/digitalocean/do-agent/archive/0.5.1.tar.gz
+ source = https://github.com/digitalocean/do-agent/archive/2.1.3.tar.gz
source = do-agent.service
- sha512sums = 8f5c47b5686ed811f343626a5c5a90010b956f8c90dce5d74cfb78cbfbcadf7d688156a2213c9868d3f8dc566eed1ff5ec3c9aa5fdfc4432a88d77d6bbbcbdb1
+ sha512sums = aa90753a19354f5fe8a3c7744197df5b01524ab1c68965139f893a90c8222b7b29130836153b2c4145733a4ca5d4fe0f5977f3272e5ac6e825d791d8aa78e221
sha512sums = 19d040ae8a75a73a86c1b473983ecf84410fc6a24a7f9142e98dc00c6dbda1ff1f2e2caec0d37bb3c6f557133644ea91f49a75697f5c4bdc23af56407d1fbcaa
pkgname = do-agent
diff --git a/PKGBUILD b/PKGBUILD
index 0a9113969f5..ef23af6144c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Author: Kyle Manna <kyle at kylemanna dot com>
pkgname=do-agent
-pkgver=0.5.1
+pkgver=2.1.3
pkgrel=1
pkgdesc='DigitalOcean Agent for Enhanced Droplet Graphs'
url='https://github.com/digitalocean/do-agent'
@@ -15,25 +15,24 @@ license=('apache')
source=("https://github.com/digitalocean/${pkgname}/archive/${pkgver}.tar.gz"
"do-agent.service")
-sha512sums=('8f5c47b5686ed811f343626a5c5a90010b956f8c90dce5d74cfb78cbfbcadf7d688156a2213c9868d3f8dc566eed1ff5ec3c9aa5fdfc4432a88d77d6bbbcbdb1'
+sha512sums=('aa90753a19354f5fe8a3c7744197df5b01524ab1c68965139f893a90c8222b7b29130836153b2c4145733a4ca5d4fe0f5977f3272e5ac6e825d791d8aa78e221'
'19d040ae8a75a73a86c1b473983ecf84410fc6a24a7f9142e98dc00c6dbda1ff1f2e2caec0d37bb3c6f557133644ea91f49a75697f5c4bdc23af56407d1fbcaa')
prepare() {
cd "$srcdir"
- # make temporary GOPATH for govendor and link git checkout into here
- mkdir -p go/{bin,src}
mkdir -p go/src/github.com/digitalocean
- ln -s "$srcdir/$pkgname-$pkgver" "$srcdir/go/src/github.com/digitalocean/$pkgname"
+ mv "$srcdir/$pkgname-$pkgver" "$srcdir/go/src/github.com/digitalocean/$pkgname"
+ ln -s "$srcdir/go/src/github.com/digitalocean/$pkgname" "$srcdir/$pkgname-$pkgver"
}
build() {
+ export GOPATH=$srcdir/go
cd "$srcdir/go/src/github.com/digitalocean/$pkgname"
- PATH="$srcdir/go/bin:$PATH" GOPATH="$srcdir/go" make build
+ make build
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
install -d $pkgdir/usr/{bin,lib/systemd/system}
- install -Dm755 do-agent $pkgdir/usr/bin/do-agent
- install -Dm644 "$srcdir/do-agent.service" $pkgdir/usr/lib/systemd/system/do-agent.service
+ install -Dm755 "$srcdir/$pkgname-$pkgver/target/do-agent-linux-amd64" "$pkgdir/usr/bin/do-agent"
+ install -Dm644 "$srcdir/do-agent.service" "$pkgdir/usr/lib/systemd/system/do-agent.service"
}