Sven-Hendrik Haase pushed to branch main at Arch Linux / Packaging / Packages / 
netdata


Commits:
8228a8bc by Sven-Hendrik Haase at 2023-08-13T23:45:51+02:00
upgpkg: 1.41.0-2: Give capabilities to debugfs.plugin and also get rid of 
.install file (FS#79135)

- - - - -


2 changed files:

- PKGBUILD
- − netdata.install


Changes:

=====================================
PKGBUILD
=====================================
@@ -3,7 +3,7 @@
 
 pkgname=netdata
 pkgver=1.41.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')
@@ -24,7 +24,6 @@ optdepends=('nodejs: for monitoring named and SNMP devices'
             '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"
          protobuf-23.patch)
@@ -64,4 +63,8 @@ package() {
   install -Dm0644 "system/systemd/netdata.service.v235" 
"$pkgdir/usr/lib/systemd/system/netdata.service"
   install -Dm0644 "system/logrotate/netdata" "$pkgdir/etc/logrotate.d/netdata"
   install -Dm0644 "${srcdir}/${pkgname}.sysusers" 
"${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
+
+  # 
https://github.com/netdata/netdata/tree/master/collectors/apps.plugin#permissions
+  setcap cap_dac_read_search,cap_sys_ptrace+ep 
"${pkgdir}"/usr/lib/netdata/plugins.d/apps.plugin
+  setcap cap_dac_read_search,cap_sys_ptrace+ep 
"${pkgdir}"/usr/lib/netdata/plugins.d/debugfs.plugin
 }


=====================================
netdata.install deleted
=====================================
@@ -1,12 +0,0 @@
-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
-}



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/netdata/-/commit/8228a8bcc98033b06192658b94ea36db8349c7ea

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/netdata/-/commit/8228a8bcc98033b06192658b94ea36db8349c7ea
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to