[arch-commits] Commit in prometheus/trunk (PKGBUILD prometheus.service)

Johannes Löthberg demize at archlinux.org
Thu Jan 3 21:06:57 UTC 2019


    Date: Thursday, January 3, 2019 @ 21:06:56
  Author: demize
Revision: 342918

upgpkg: prometheus 2.6.0-2

Modified:
  prometheus/trunk/PKGBUILD
  prometheus/trunk/prometheus.service

--------------------+
 PKGBUILD           |    9 +++++++--
 prometheus.service |    4 ++--
 2 files changed, 9 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-01-03 21:04:53 UTC (rev 342917)
+++ PKGBUILD	2019-01-03 21:06:56 UTC (rev 342918)
@@ -19,7 +19,7 @@
         prometheus.sysusers)
 
 sha256sums=('e0d3e77e45466fd055726268354a02834968a3275791be6cbd17513ec7860c1d'
-            'a1484a9c97e51c02e61ba8dfbd21aed34a8315fd111391ac0d13196cde7503a9'
+            'e3f742c3e6eca7d4e0e6d190d88cf71692ca8810a77ef66831e450cb8e0a84a7'
             '2747fabb4e56b808361eb7dd7acf9729ab8973d1ebe2f857dd56f6c71f71e45f')
 
 build() {
@@ -37,6 +37,12 @@
     ./cmd/promtool
 }
 
+check() {
+  cd prometheus-$pkgver
+
+  go test ./...
+}
+
 package() {
   install -Dm644 prometheus.service "$pkgdir"/usr/lib/systemd/system/prometheus.service
   install -Dm644 prometheus.sysusers "$pkgdir"/usr/lib/sysusers.d/prometheus.conf
@@ -45,7 +51,6 @@
 
   install -Dm755 -t "$pkgdir"/usr/bin prometheus promtool
   install -Dm755 -t "$pkgdir"/etc/prometheus documentation/examples/prometheus.yml
-  install -dm755 "$pkgdir"/etc/prometheus/{consoles,console_libraries}
   install -dm755 -o210 -g210 "$pkgdir"/var/lib/prometheus
 
   # Web

Modified: prometheus.service
===================================================================
--- prometheus.service	2019-01-03 21:04:53 UTC (rev 342917)
+++ prometheus.service	2019-01-03 21:06:56 UTC (rev 342918)
@@ -10,8 +10,8 @@
 ExecStart=/usr/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/var/lib/prometheus/data
 ExecReload=/bin/kill -HUP $MAINPID
 NoNewPrivileges=true
-ProtectHome=yes
-ProtectSystem=yes
+ProtectHome=true
+ProtectSystem=full
 
 [Install]
 WantedBy=multi-user.target



More information about the arch-commits mailing list