diff options
author | Carsten Feuls | 2019-02-22 17:21:38 +0100 |
---|---|---|
committer | Carsten Feuls | 2019-02-22 17:21:38 +0100 |
commit | abdc29a91dcd710662fcfaba7279ab32f81e4e4e (patch) | |
tree | e10b3abfe2f3817c6685600c67854f7936a9aefe | |
download | aur-abdc29a91dcd710662fcfaba7279ab32f81e4e4e.tar.gz |
Initialer commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 24 | ||||
-rw-r--r-- | prometheus-apcupsd-exporter.service | 9 |
4 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d82bc87ff4ef --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +# Generated by mksrcinfo v8 +# Fri Feb 22 16:21:22 UTC 2019 +pkgbase = prometheus-apcupsd-exporter-bin + pkgdesc = Prometheus exporter that exposes metrics from apcupsd's NIS. (binary, not built from source) + pkgver = 0.1.0 + pkgrel = 1 + url = https://github.com/mdlayher/apcupsd_exporter + arch = x86_64 + license = MIT + source_x86_64 = prometheus-apcupsd-exporter.service + source_x86_64 = https://github.com/mdlayher/apcupsd_exporter/releases/download/0.1.0/apcupsd_exporter + sha256sums_x86_64 = c05ecf5014f33890cd07a8e41d9381008103ebcc8e49a506a161111bc4688f0c + sha256sums_x86_64 = 217cfdfbd085657be5579b1cc691078fc5e2e6aaac4b3c72b45bbba05aba4b41 + +pkgname = prometheus-apcupsd-exporter-bin + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..0ae6ba620771 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!PKGBUILD +!.SRCINFO +!*.service +!.gitignore diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4d5334c3a855 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Carsten Feuls <archlinux@carstenfeuls.de> + +pkgname=prometheus-apcupsd-exporter-bin +pkgver=0.1.0 +pkgrel=1 +pkgdesc="Prometheus exporter that exposes metrics from apcupsd's NIS. (binary, not built from source)" +arch=('x86_64') +url="https://github.com/mdlayher/apcupsd_exporter" +license=('MIT') +depends=() +makedepends=() +source_x86_64=( 'prometheus-apcupsd-exporter.service' +"https://github.com/mdlayher/apcupsd_exporter/releases/download/${pkgver}/apcupsd_exporter") +sha256sums_x86_64=('c05ecf5014f33890cd07a8e41d9381008103ebcc8e49a506a161111bc4688f0c' + '217cfdfbd085657be5579b1cc691078fc5e2e6aaac4b3c72b45bbba05aba4b41') +package() { + cd "${srcdir}" + + # Install Binary + install -D -m0755 apcupsd_exporter "${pkgdir}/usr/bin/prometheus-apcupsd-exporter" + + # Install SystemD Service File + install -D -m0644 "${srcdir}/prometheus-apcupsd-exporter.service" "${pkgdir}/usr/lib/systemd/system/prometheus-apcupsd-exporter.service" +} diff --git a/prometheus-apcupsd-exporter.service b/prometheus-apcupsd-exporter.service new file mode 100644 index 000000000000..ac2a3dea5f31 --- /dev/null +++ b/prometheus-apcupsd-exporter.service @@ -0,0 +1,9 @@ +[Unit] +Description=Prometheus exporter that exposes metrics from apcupsd's NIS +After=network.target + +[Service] +ExecStart=/usr/bin/prometheus-apcupsd-exporter + +[Install] +WantedBy=multi-user.target |