[arch-commits] Commit in pcp/trunk (PKGBUILD tmpfile.conf)

Massimiliano Torromeo mtorromeo at archlinux.org
Mon Apr 20 10:27:10 UTC 2020


    Date: Monday, April 20, 2020 @ 10:27:09
  Author: mtorromeo
Revision: 617017

upgpkg: pcp 5.0.3-2: Fixed libexec path and permissions on tmp and config files

Modified:
  pcp/trunk/PKGBUILD
  pcp/trunk/tmpfile.conf

--------------+
 PKGBUILD     |   10 +++++-----
 tmpfile.conf |   10 +++++++---
 2 files changed, 12 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-20 10:21:17 UTC (rev 617016)
+++ PKGBUILD	2020-04-20 10:27:09 UTC (rev 617017)
@@ -3,7 +3,7 @@
 
 pkgname=pcp
 pkgver=5.0.3
-pkgrel=1
+pkgrel=2
 pkgdesc="System performance analysis toolkit"
 arch=('x86_64')
 url="https://pcp.io"
@@ -20,7 +20,7 @@
         "tmpfile.conf")
 sha256sums=('23f4022d3a3a2660a7f5051a19bc57fc6b001f8dfb8df8d108bd322a7d6ea1c2'
             '3e21ef7925296f73c91fe85c8dba341ce00366163845dd8993e2813b0ad5e4a4'
-            '086980818148ec622a28704b4e1a9989c4dbd468015f03f8e80e7b2a83a31ec4')
+            '0166ffea180527de5a48a8e8f145cc80860b93e8f44bc5f96836c3d1cb4b01a2')
 
 build() {
   cd "$pkgname-$pkgver"
@@ -27,9 +27,10 @@
   ./configure \
     --prefix=/usr \
     --sbindir=/usr/bin \
-    --libexecdir=/usr/lib/$pkgname/ \
+    --libexecdir=/usr/lib \
     --sysconfdir=/etc \
     --localstatedir=/var \
+    --with-rundir=/run/pcp \
     --without-dstat-symlink
   make
 }
@@ -38,9 +39,8 @@
   cd "$pkgname-$pkgver"
   make DIST_ROOT="$pkgdir" PCP_USER=root PCP_GROUP=root install
 
-  rm -rf "$pkgdir"/var/run
   install -D -m644 "$srcdir"/sysuser.conf "$pkgdir"/usr/lib/sysusers.d/pcp.conf
   install -D -m644 "$srcdir"/tmpfile.conf "$pkgdir"/usr/lib/tmpfiles.d/pcp.conf
 
-  rm -rf "$pkgdir"/var/lib/pcp/testsuite "$pkgdir"/tmp
+  rm -vrf "$pkgdir"/var/lib/pcp/testsuite "$pkgdir"/run "$pkgdir"/var/tmp
 }

Modified: tmpfile.conf
===================================================================
--- tmpfile.conf	2020-04-20 10:21:17 UTC (rev 617016)
+++ tmpfile.conf	2020-04-20 10:27:09 UTC (rev 617017)
@@ -1,3 +1,7 @@
-d /run/pcp 755 pcp pcp
-Z /var/log/pcp 755 pcp pcp
-Z /var/lib/pcp/config/pmda 755 pcp pcp
+d /etc/pcp/nssdb 775 pcp pcp
+d /run/pcp 775 pcp pcp
+Z /var/log/pcp 775 pcp pcp
+Z /var/lib/pcp/config/pmie 775 pcp pcp
+Z /var/lib/pcp/config/pmlogger 775 pcp pcp
+Z /var/lib/pcp/config/pmda 775 pcp pcp
+Z /var/lib/pcp/tmp 775 pcp pcp



More information about the arch-commits mailing list