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

Jonas Witschel diabonas at gemini.archlinux.org
Tue Jun 14 21:52:29 UTC 2022


    Date: Tuesday, June 14, 2022 @ 21:52:28
  Author: diabonas
Revision: 448711

upgpkg: libutempter 1.2.1-3: use tmpfiles.d to chown to utmp group (FS#58306)

The utmp group has a dynamically assigned GID, so using chown in the PKGBUILD
does not work because the GID in the build environment can differ from the GID
on the system that the package is going to be installed on.

Modified:
  libutempter/trunk/PKGBUILD

----------+
 PKGBUILD |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-14 21:29:40 UTC (rev 448710)
+++ PKGBUILD	2022-06-14 21:52:28 UTC (rev 448711)
@@ -2,7 +2,7 @@
 
 pkgname=libutempter
 pkgver=1.2.1
-pkgrel=2
+pkgrel=3
 pkgdesc="Interface for terminal emulators such as screen and xterm to record user sessions to utmp and wtmp files"
 arch=('x86_64')
 url="http://ftp.altlinux.org/pub/people/ldv/utempter"
@@ -22,6 +22,5 @@
 package() {
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
-  chown root:utmp "$pkgdir/usr/lib/utempter/utempter"
-  chmod 2755 "$pkgdir/usr/lib/utempter/utempter"
+  echo 'z /usr/lib/utempter/utempter 2755 root utmp' | install -Dm644 /dev/stdin "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
 }



More information about the arch-commits mailing list