summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Gamble2020-12-07 15:33:19 +1100
committerMatthew Gamble2020-12-07 15:33:41 +1100
commit29e42b38db18ff52a6dcf233d144bdb59525ad8f (patch)
tree46e5f2adfc7f30ebd73d62647d9a462762cf585f
parent667c8aa6b13caca35b90bc628f93dbdbc3d4c5b9 (diff)
downloadaur-29e42b38db18ff52a6dcf233d144bdb59525ad8f.tar.gz
Add sysusers config for scrutiny service
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD5
-rw-r--r--scrutiny.sysusers1
3 files changed, 8 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 43c220992ee4..b2502533fe5d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = scrutiny
pkgdesc = Hard Drive S.M.A.R.T Monitoring, Historical Trends & Real World Failure Thresholds
pkgver = 0.3.5
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/AnalogJ/scrutiny
arch = x86_64
license = MIT
@@ -9,10 +9,12 @@ pkgbase = scrutiny
depends = glibc
source = https://github.com/AnalogJ/scrutiny/archive/0.3.5.tar.gz
source = scrutiny.service
+ source = scrutiny.sysusers
source = scrutiny-collector-metrics.service
source = scrutiny-collector-metrics.timer
sha512sums = 815842576ca2126c9c53ece283a9c9c30eba14a0d3727331b1634bcdebaeb2a086a9bfe8a68ec2f8c82549bb673a147b4760118437b982489d4a63ee73fdd29c
sha512sums = 189b4fe46ed0e4dfab63cebe4c94cbdc24894b7cb59cded3d659f2741d33733eda36487912f2f5534eb45665b5f9916dbdb03626eb5e1eb0ed46981985ba69c7
+ sha512sums = b98bedd6ec3d56d052bd2cb8c410f17da9a8254b64e3a759e45b3ea0d2a95ff65763274b489d93faba77f88420e362189b71bd970acf90061cb8c28a0f063fe1
sha512sums = eb48dac311ecfd25b0a2e06d2168319e5616d0f18dcbb3014db8b7b3d224ce7c82f206c90f714ff8e58353990b1c7c3848f885d223357873abd70ec74df00c07
sha512sums = 2108d3d619e3e6188162beb05648d436a73a3c63e526222f6037a701e8368c45395b60e2668fe8625b713d2a6a30812013c14dcb3c5de321f4d2bc153f01c5cc
diff --git a/PKGBUILD b/PKGBUILD
index 470da8155c0e..ad2127f2649a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgbase="scrutiny"
pkgname=("scrutiny" "scrutiny-collector")
pkgver=0.3.5
-pkgrel=2
+pkgrel=3
pkgdesc="Hard Drive S.M.A.R.T Monitoring, Historical Trends & Real World Failure Thresholds"
url="https://github.com/AnalogJ/scrutiny"
license=("MIT")
@@ -13,12 +13,14 @@ makedepends=("go")
source=(
"https://github.com/AnalogJ/scrutiny/archive/${pkgver}.tar.gz"
"scrutiny.service"
+ "scrutiny.sysusers"
"scrutiny-collector-metrics.service"
"scrutiny-collector-metrics.timer"
)
sha512sums=(
"815842576ca2126c9c53ece283a9c9c30eba14a0d3727331b1634bcdebaeb2a086a9bfe8a68ec2f8c82549bb673a147b4760118437b982489d4a63ee73fdd29c"
"189b4fe46ed0e4dfab63cebe4c94cbdc24894b7cb59cded3d659f2741d33733eda36487912f2f5534eb45665b5f9916dbdb03626eb5e1eb0ed46981985ba69c7"
+ "b98bedd6ec3d56d052bd2cb8c410f17da9a8254b64e3a759e45b3ea0d2a95ff65763274b489d93faba77f88420e362189b71bd970acf90061cb8c28a0f063fe1"
"eb48dac311ecfd25b0a2e06d2168319e5616d0f18dcbb3014db8b7b3d224ce7c82f206c90f714ff8e58353990b1c7c3848f885d223357873abd70ec74df00c07"
"2108d3d619e3e6188162beb05648d436a73a3c63e526222f6037a701e8368c45395b60e2668fe8625b713d2a6a30812013c14dcb3c5de321f4d2bc153f01c5cc"
)
@@ -61,6 +63,7 @@ package_scrutiny() {
install -Dm755 scrutiny "${pkgdir}/usr/bin/scrutiny"
install -Dm644 "${srcdir}/scrutiny.service" "${pkgdir}/usr/lib/systemd/system/scrutiny.service"
+ install -Dm644 "${srcdir}/scrutiny.sysusers" "${pkgdir}/usr/lib/sysusers.d/scrutiny.conf"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/scrutiny/LICENSE"
install -Dm644 example.scrutiny.yaml "${pkgdir}/usr/share/doc/scrutiny/config.example.yaml"
diff --git a/scrutiny.sysusers b/scrutiny.sysusers
new file mode 100644
index 000000000000..c79b3c393737
--- /dev/null
+++ b/scrutiny.sysusers
@@ -0,0 +1 @@
+u scrutiny - "Scrutiny S.M.A.R.T Monitoring" /var/lib/scrutiny