[crux-commits] ports/contrib (3.6): rtkit: initial commit, version 0.13

crux at crux.nu crux at crux.nu
Sun Feb 21 22:25:16 UTC 2021


commit 39819d88bf037ff5ad6a6a24d6bf8f6832e419da
Author: Tim Biermann <tbier at posteo.de>
Date:   Sun Feb 21 21:41:36 2021 +0000

    rtkit: initial commit, version 0.13

diff --git a/rtkit/.footprint b/rtkit/.footprint
new file mode 100644
index 000000000..ded5cc1f0
--- /dev/null
+++ b/rtkit/.footprint
@@ -0,0 +1,20 @@
+drwxr-xr-x	root/root	usr/
+drwxr-xr-x	root/root	usr/bin/
+-rwxr-xr-x	root/root	usr/bin/rtkitctl
+drwxr-xr-x	root/root	usr/lib/
+drwxr-xr-x	root/root	usr/lib/rtkit/
+-rwxr-xr-x	root/root	usr/lib/rtkit/rtkit-daemon
+drwxr-xr-x	root/root	usr/share/
+drwxr-xr-x	root/root	usr/share/dbus-1/
+drwxr-xr-x	root/root	usr/share/dbus-1/interfaces/
+-rw-r--r--	root/root	usr/share/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml
+drwxr-xr-x	root/root	usr/share/dbus-1/system-services/
+-rw-r--r--	root/root	usr/share/dbus-1/system-services/org.freedesktop.RealtimeKit1.service
+drwxr-xr-x	root/root	usr/share/dbus-1/system.d/
+-rw-r--r--	root/root	usr/share/dbus-1/system.d/org.freedesktop.RealtimeKit1.conf
+drwxr-xr-x	root/root	usr/share/man/
+drwxr-xr-x	root/root	usr/share/man/man8/
+-rw-r--r--	root/root	usr/share/man/man8/rtkitctl.8.gz
+drwxr-xr-x	root/root	usr/share/polkit-1/
+drwxr-xr-x	root/root	usr/share/polkit-1/actions/
+-rw-r--r--	root/root	usr/share/polkit-1/actions/org.freedesktop.RealtimeKit1.policy
diff --git a/rtkit/.signature b/rtkit/.signature
new file mode 100644
index 000000000..f5d121a50
--- /dev/null
+++ b/rtkit/.signature
@@ -0,0 +1,6 @@
+untrusted comment: verify with /etc/ports/contrib.pub
+RWSagIOpLGJF30h0+Omyy4p2kUMRj/HI5NQtr1d5RTrmJzlBFyEWXnklKygObKD6Gc3j0k8tyq8Gm/2ReF7HELZQNshTYBO/RAU=
+SHA256 (Pkgfile) = 28e6a94e8037abeaad0490280901fde03f50c03aee98ed8061554515d319f9e1
+SHA256 (.footprint) = 6507ba22ddb62626e552589adc1e723910cd3b162b7abbcd4efb8b6e654ca843
+SHA256 (rtkit-0.13.tar.xz) = a157144cd95cf6d25200e74b74a8f01e4fe51fd421bb63c1f00d471394b640ab
+SHA256 (rtkit.service) = d2118eb967a5a348ec58527525020002c8f18a53b27ed25cc93f9ca78e916e66
diff --git a/rtkit/Pkgfile b/rtkit/Pkgfile
new file mode 100644
index 000000000..9aed8be58
--- /dev/null
+++ b/rtkit/Pkgfile
@@ -0,0 +1,25 @@
+# Description: Realtime Policy and Watchdog Daemon
+# URL: https://github.com/heftig/rtkit
+# Maintainer: Tim Biermann, tbier at posteo dot de
+# Depends on: dbus meson ninja
+
+name=rtkit
+version=0.13
+release=1
+source=(https://github.com/heftig/rtkit/releases/download/v$version/$name-$version.tar.xz
+  rtkit.service)
+
+build() {
+  meson setup $name-$version build \
+    --prefix=/usr \
+    --libexecdir=/usr/lib/$name \
+    --buildtype=plain \
+    -D libsystemd=disabled \
+    -D installed_tests=false
+  meson compile -C build
+  DESTDIR=$PKG meson install -C build
+
+  rm -r $PKG/usr/lib/systemd
+
+  install -Dm744 $SRC/rtkit.service $PKG/etc/rc.d/rtkit
+}
diff --git a/rtkit/post-install b/rtkit/post-install
new file mode 100644
index 000000000..23eaef98b
--- /dev/null
+++ b/rtkit/post-install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+getent group rtkit || /usr/sbin/groupadd rtkit
+
+getent passwd rtkit || /usr/sbin/useradd -g rtkit -d /var/empty -s /bin/false -c "rtkit User" rtkit
+
+/usr/bin/passwd -l rtkit
diff --git a/rtkit/rtkit.service b/rtkit/rtkit.service
new file mode 100755
index 000000000..aac905dbc
--- /dev/null
+++ b/rtkit/rtkit.service
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# /etc/rc.d/rtkit: start/stop rtkit
+#
+
+SSD=/sbin/start-stop-daemon
+PROG=/usr/lib/rtkit/rtkit-daemon
+OPTS=""
+
+case $1 in
+        start)
+        /usr/lib/rtkit/rtkit-daemon ;;
+stop)
+        killall rtkit-daemon
+        ;;
+restart)
+        $0 stop
+        $0 start ;;
+status)
+        $SSD --status --exec $PROG
+        case $? in
+        0) echo "$PROG is running with pid $(pidof $PROG)" ;;
+        1) echo "$PROG is not running but the pid file $PID exists" ;;
+        3) echo "$PROG is not running" ;;
+        4) echo "Unable to determine the program status" ;;
+        esac ;;
+*)
+        echo "usage: $0 [start|stop|restart|status]" ;;
+esac


More information about the crux-commits mailing list