[arch-commits] Commit in netdata/repos (4 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Sat Apr 23 19:55:24 UTC 2022


    Date: Saturday, April 23, 2022 @ 19:55:24
  Author: foutrelis
Revision: 1188121

archrelease: copy trunk to community-staging-x86_64

Added:
  netdata/repos/community-staging-x86_64/
  netdata/repos/community-staging-x86_64/PKGBUILD
    (from rev 1188120, netdata/trunk/PKGBUILD)
  netdata/repos/community-staging-x86_64/netdata.install
    (from rev 1188120, netdata/trunk/netdata.install)
  netdata/repos/community-staging-x86_64/netdata.sysusers
    (from rev 1188120, netdata/trunk/netdata.sysusers)

------------------+
 PKGBUILD         |   58 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 netdata.install  |   12 ++++++++++
 netdata.sysusers |    1 
 3 files changed, 71 insertions(+)

Copied: netdata/repos/community-staging-x86_64/PKGBUILD (from rev 1188120, netdata/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-04-23 19:55:24 UTC (rev 1188121)
@@ -0,0 +1,58 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at archlinux.org>
+# Contributor: SanskritFritz (gmail)
+
+pkgname=netdata
+pkgver=1.34.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')
+license=('GPL')
+backup=('etc/netdata/netdata.conf')
+depends=('libmnl' 'libnetfilter_acct' 'zlib' 'judy' 'libuv' 'json-c' 'libcap' 'lz4' 'openssl' 'which' 'snappy' 'protobuf'
+         'libwebsockets' 'mongo-c-driver')
+makedepends=('cups')
+optdepends=('nodejs: for monitoring named and SNMP devices'
+            'lm_sensors: for monitoring hardware sensors'
+            'iproute2: for monitoring Linux QoS'
+            'python: for most of the external plugins'
+            'python-psycopg2: for monitoring PostgreSQL databases'
+            'python-mysqlclient: for monitoring MySQL/MariaDB databases'
+            'python-requests: for monitoring elasticsearch'
+            'hddtemp: for monitoring hhd temperature'
+            'fping: for for fping module'
+            'apcupsd: for monitoring APC UPS'
+            'cups: for CUPS plugin'
+            'iw: for monitoring Linux as access point')
+install=$pkgname.install
+source=("$pkgname-$pkgver.tar.gz::https://github.com/netdata/netdata/releases/download/v$pkgver/netdata-v$pkgver.tar.gz"
+        "$pkgname.sysusers")
+sha512sums=('777b0f4efa0b64dd150a097cb2ec1c3155506ada9c1e5289b6acda5e34c9262f796795608b52e70c9310a5cbda03c0568e1391c6861c7f3ea84aa9ca84ed9a0c'
+            'a910809a823ba58ca7bdaa72e8d68427b48f452c1fbb2343fa182ecb0a091a7640e73af24b8ba2fdd90e00aed8ef53b7fccd25cb8f04ca9b9fa6c8e52223ca66')
+
+build() {
+  cd "$pkgname-v$pkgver"
+
+  autoreconf -i
+  ./configure \
+      --prefix="/usr" \
+      --sbindir="/usr/bin" \
+      --sysconfdir="/etc" \
+      --libexecdir="/usr/lib" \
+      --localstatedir="/var" \
+      --with-zlib --with-math --with-user=netdata
+  make
+}
+
+package() {
+  cd "$pkgname-v$pkgver"
+
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 system/netdata.conf "$pkgdir"/etc/netdata/netdata.conf
+  chown -R 0:134 "$pkgdir"/usr/share/netdata/web
+
+  install -Dm0644 "system/netdata.service.v235" "$pkgdir/usr/lib/systemd/system/netdata.service"
+  install -Dm0644 "system/netdata.logrotate" "$pkgdir/etc/logrotate.d/netdata"
+  install -Dm0644 "${srcdir}/${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
+}

Copied: netdata/repos/community-staging-x86_64/netdata.install (from rev 1188120, netdata/trunk/netdata.install)
===================================================================
--- community-staging-x86_64/netdata.install	                        (rev 0)
+++ community-staging-x86_64/netdata.install	2022-04-23 19:55:24 UTC (rev 1188121)
@@ -0,0 +1,12 @@
+setcap_netdata() {
+  # https://github.com/netdata/netdata/tree/master/collectors/apps.plugin#permissions
+  setcap cap_dac_read_search,cap_sys_ptrace+ep /usr/lib/netdata/plugins.d/apps.plugin || chmod 1755 /usr/lib/netdata/plugins.d/apps.plugin
+}
+
+post_install() {
+  setcap_netdata
+}
+
+post_upgrade() {
+  setcap_netdata
+}

Copied: netdata/repos/community-staging-x86_64/netdata.sysusers (from rev 1188120, netdata/trunk/netdata.sysusers)
===================================================================
--- community-staging-x86_64/netdata.sysusers	                        (rev 0)
+++ community-staging-x86_64/netdata.sysusers	2022-04-23 19:55:24 UTC (rev 1188121)
@@ -0,0 +1 @@
+u netdata 134 - /var/cache/netdata



More information about the arch-commits mailing list