[arch-commits] Commit in netdata/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Mar 18 20:05:40 UTC 2020


    Date: Wednesday, March 18, 2020 @ 20:05:39
  Author: svenstaro
Revision: 600670

upgpkg: netdata 1.20.0-2: Use improved unit file and install default config (FS#65027)

Modified:
  netdata/trunk/PKGBUILD

----------+
 PKGBUILD |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-18 19:54:46 UTC (rev 600669)
+++ PKGBUILD	2020-03-18 20:05:39 UTC (rev 600670)
@@ -3,7 +3,7 @@
 
 pkgname=netdata
 pkgver=1.20.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Real-time performance monitoring, in the greatest possible detail, over the web"
 url="https://github.com/netdata/netdata"
 arch=('x86_64')
@@ -28,6 +28,13 @@
             '3f934ddd1f5248f9e11c29050c023d60b76e4098ec9c8d413bb362d43e9242f767fd58310d966076e8400779af8bda2459afcc314b267fcb9f1c84173e14e313'
             'a910809a823ba58ca7bdaa72e8d68427b48f452c1fbb2343fa182ecb0a091a7640e73af24b8ba2fdd90e00aed8ef53b7fccd25cb8f04ca9b9fa6c8e52223ca66')
 
+prepare() {
+  cd "$pkgname-$pkgver"
+
+  # Use advanced service file (FS#65027)
+  mv system/netdata.service.v235.in system/netdata.service.in
+}
+
 build() {
   cd "$pkgname-$pkgver"
 
@@ -49,7 +56,7 @@
 
   # Remove /var/*, pacman creates it via tmpfiles hook
   rm -vrf "${pkgdir}/var"
-  touch "$pkgdir/etc/netdata/netdata.conf"
+  install -Dm644 system/netdata.conf "$pkgdir"/etc/netdata/netdata.conf
   chown -R 134:134 "$pkgdir"/etc/netdata
   chown -R 134:134 "$pkgdir"/usr/share/netdata/web
 



More information about the arch-commits mailing list