summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Manna2016-12-29 12:00:26 -0800
committerKyle Manna2016-12-29 12:01:11 -0800
commit15b515ad5189b695dbbf9834b433fa7952724b07 (patch)
tree17c59aacd4d3e346b138c3b0f1264de62544e05a
parentdf9651a3e70ac3955bff6d3599242beef4b61980 (diff)
downloadaur-15b515ad5189b695dbbf9834b433fa7952724b07.tar.gz
pkgrel: v0.4.6-2
* Fix miscellaneous install details * Add systemd file that works on Arch * Delete extraneous init system
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD17
-rw-r--r--do-agent.service12
3 files changed, 30 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c4f9d2de0d6..1aeafdecb3d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,16 @@
# Generated by mksrcinfo v8
-# Thu Dec 29 19:44:17 UTC 2016
+# Thu Dec 29 20:00:09 UTC 2016
pkgbase = do-agent
pkgdesc = DigitalOcean Agent for Enhanced Droplet Graphs
pkgver = 0.4.6
- pkgrel = 1
+ pkgrel = 2
url = https://agent.digitalocean.com/install.sh
arch = x86_64
license = unknown
source = https://repos.sonar.digitalocean.com/apt/pool/main/d/do-agent/do-agent_0.4.6_amd64.deb
+ source = do-agent.service
sha256sums = a720363eed91b41ae465ee35e0658e9debbc3ecc7f9ded8746d5c046828cc638
+ sha256sums = dfa9c58a18985bedb2e971b68e015b52baaf08079358f23a7128a791843d4e53
pkgname = do-agent
diff --git a/PKGBUILD b/PKGBUILD
index 924f10524a9..832c8422e2d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=do-agent
pkgver=0.4.6
-pkgrel=1
+pkgrel=2
pkgdesc='DigitalOcean Agent for Enhanced Droplet Graphs'
url='https://agent.digitalocean.com/install.sh'
arch=('x86_64')
@@ -10,11 +10,22 @@ arch=('x86_64')
# License in Debian pkg metadata is "Unknown"
license=('unknown')
-source=("https://repos.sonar.digitalocean.com/apt/pool/main/d/${pkgname}/${pkgname}_${pkgver}_amd64.deb")
+source=("https://repos.sonar.digitalocean.com/apt/pool/main/d/${pkgname}/${pkgname}_${pkgver}_amd64.deb"
+ "do-agent.service")
-sha256sums=('a720363eed91b41ae465ee35e0658e9debbc3ecc7f9ded8746d5c046828cc638')
+sha256sums=('a720363eed91b41ae465ee35e0658e9debbc3ecc7f9ded8746d5c046828cc638'
+ 'dfa9c58a18985bedb2e971b68e015b52baaf08079358f23a7128a791843d4e53')
package() {
cd "$srcdir"
bsdtar --to-stdout -xf "${pkgname}_${pkgver}_amd64.deb" data.tar.gz | bsdtar -xf - -C "${pkgdir}"
+
+ # /lib is a symlink on Arch
+ mv "${pkgdir}/lib" "${pkgdir}/usr/"
+
+ # Copy working systemd service over top
+ cp do-agent.service "${pkgdir}/usr/lib/systemd/system/do-agent.service"
+
+ # Ain't nobody got time for old init systems
+ rm "${pkgdir}/etc/init/do-agent.conf"
}
diff --git a/do-agent.service b/do-agent.service
new file mode 100644
index 00000000000..422da67c005
--- /dev/null
+++ b/do-agent.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=DigitalOcean agent
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+User=nobody
+Group=nobody
+ExecStart=/opt/digitalocean/bin/do-agent
+
+[Install]
+WantedBy=multi-user.target