[arch-commits] Commit in rtkit/trunk (PKGBUILD rtkit.install)

Jan Steffens heftig at archlinux.org
Wed Nov 22 15:33:12 UTC 2017


    Date: Wednesday, November 22, 2017 @ 15:33:11
  Author: heftig
Revision: 310625

0.11+8+ge0a51fe-1: sysusers

Modified:
  rtkit/trunk/PKGBUILD
Deleted:
  rtkit/trunk/rtkit.install

---------------+
 PKGBUILD      |   18 ++++++++++--------
 rtkit.install |   15 ---------------
 2 files changed, 10 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-22 15:28:46 UTC (rev 310624)
+++ PKGBUILD	2017-11-22 15:33:11 UTC (rev 310625)
@@ -3,7 +3,7 @@
 # Contributor: Corrado Primier <bardo at aur.archlinux.org>
 
 pkgname=rtkit
-pkgver=0.11+6+g417bb7d
+pkgver=0.11+8+ge0a51fe
 pkgrel=1
 pkgdesc="Realtime Policy and Watchdog Daemon"
 arch=(x86_64)
@@ -11,8 +11,7 @@
 license=(GPL3 'custom:BSD')
 depends=(dbus polkit systemd)
 makedepends=(git)
-install=rtkit.install
-_commit=417bb7d79b39ebf7dc799f2b4da62e3996b65542  # master
+_commit=e0a51fe262ff7167622a8e58f876a663b9471124  # master
 source=("git+https://github.com/heftig/rtkit#commit=$_commit")
 sha256sums=('SKIP')
 
@@ -32,7 +31,7 @@
     --prefix=/usr \
     --sbindir=/usr/bin \
     --sysconfdir=/etc \
-    --libexecdir=/usr/lib/$pkgname \
+    --libexecdir=/usr/lib \
     --with-systemdsystemunitdir=/usr/lib/systemd/system
   make
 
@@ -43,9 +42,12 @@
   cd $pkgname
   make DESTDIR="$pkgdir" install
 
-  install -Dm644 org.freedesktop.RealtimeKit1.xml \
-    "$pkgdir/usr/share/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml"
+  install -Dt "$pkgdir/usr/share/dbus-1/interfaces" -m644 org.freedesktop.RealtimeKit1.xml
 
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-  sed -ne '4,25p' rtkit.c >"$pkgdir/usr/share/licenses/$pkgname/COPYING"
+  echo 'u rtkit 133 "RealtimeKit" /proc' |
+    install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+
+  sed -ne '4,25p' rtkit.c |
+    install -Dm644 /dev/stdin "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE
 }

Deleted: rtkit.install
===================================================================
--- rtkit.install	2017-11-22 15:28:46 UTC (rev 310624)
+++ rtkit.install	2017-11-22 15:33:11 UTC (rev 310625)
@@ -1,15 +0,0 @@
-post_install() {
-  if ! getent passwd rtkit &>/dev/null; then
-    groupadd -g 133 rtkit
-    useradd -u 133 -g rtkit -c 'RealtimeKit' -s /bin/false -d /proc rtkit
-  fi
-
-  post_upgrade
-}
-
-post_upgrade() {
-  dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig &>/dev/null
-  return 0
-}
-
-# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list