ports/opt (3.0): consolekit: Moved from kde4 to opt
commit c798c675d8cfe2648dbb126d7e6c6643f4c7f0d0 Author: Alan Mizrahi <alan+crux@mizrahi.com.ve> Date: Sat Sep 28 08:25:04 2013 +0900 consolekit: Moved from kde4 to opt diff --git a/consolekit/.footprint b/consolekit/.footprint new file mode 100644 index 0000000..5ee85dc --- /dev/null +++ b/consolekit/.footprint @@ -0,0 +1,63 @@ +drwxr-xr-x root/root lib/ +drwxr-xr-x root/root lib/udev/ +drwxr-xr-x root/root lib/udev/rules.d/ +-rw-r--r-- root/root lib/udev/rules.d/70-udev-acl.rules +-rwxr-xr-x root/root lib/udev/udev-acl +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/ck-history +-rwxr-xr-x root/root usr/bin/ck-launch-session +-rwxr-xr-x root/root usr/bin/ck-list-sessions +drwxr-xr-x root/root usr/etc/ +drwxr-xr-x root/root usr/etc/ConsoleKit/ +drwxr-xr-x root/root usr/etc/ConsoleKit/run-seat.d/ +drwxr-xr-x root/root usr/etc/ConsoleKit/run-session.d/ +-rwxr-xr-x root/root usr/etc/ConsoleKit/run-session.d/pam-foreground-compat.ck +drwxr-xr-x root/root usr/etc/ConsoleKit/seats.d/ +-rw-r--r-- root/root usr/etc/ConsoleKit/seats.d/00-primary.seat +drwxr-xr-x root/root usr/etc/dbus-1/ +drwxr-xr-x root/root usr/etc/dbus-1/system.d/ +-rw-r--r-- root/root usr/etc/dbus-1/system.d/ConsoleKit.conf +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/ConsoleKit/ +drwxr-xr-x root/root usr/include/ConsoleKit/ck-connector/ +-rw-r--r-- root/root usr/include/ConsoleKit/ck-connector/ck-connector.h +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/ConsoleKit/ +drwxr-xr-x root/root usr/lib/ConsoleKit/libexec/ +-rwxr-xr-x root/root usr/lib/ConsoleKit/libexec/ck-collect-session-info +-rwxr-xr-x root/root usr/lib/ConsoleKit/libexec/ck-get-x11-display-device +-rwxr-xr-x root/root usr/lib/ConsoleKit/libexec/ck-get-x11-server-pid +drwxr-xr-x root/root usr/lib/ConsoleKit/run-seat.d/ +lrwxrwxrwx root/root usr/lib/ConsoleKit/run-seat.d/udev-acl.ck -> /lib/udev/udev-acl +drwxr-xr-x root/root usr/lib/ConsoleKit/run-session.d/ +drwxr-xr-x root/root usr/lib/ConsoleKit/scripts/ +-rwxr-xr-x root/root usr/lib/ConsoleKit/scripts/ck-system-restart +-rwxr-xr-x root/root usr/lib/ConsoleKit/scripts/ck-system-stop +-rwxr-xr-x root/root usr/lib/libck-connector.la +lrwxrwxrwx root/root usr/lib/libck-connector.so -> libck-connector.so.0.0.0 +lrwxrwxrwx root/root usr/lib/libck-connector.so.0 -> libck-connector.so.0.0.0 +-rwxr-xr-x root/root usr/lib/libck-connector.so.0.0.0 +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/ck-connector.pc +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/ck-log-system-restart +-rwxr-xr-x root/root usr/sbin/ck-log-system-start +-rwxr-xr-x root/root usr/sbin/ck-log-system-stop +-rwxr-xr-x root/root usr/sbin/console-kit-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.ConsoleKit.Manager.xml +-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Seat.xml +-rw-r--r-- root/root usr/share/dbus-1/interfaces/org.freedesktop.ConsoleKit.Session.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.ConsoleKit.service +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.consolekit.policy +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/log/ +drwxr-xr-x root/root var/log/ConsoleKit/ +drwxr-xr-x root/root var/run/ +drwxr-xr-x root/root var/run/ConsoleKit/ diff --git a/consolekit/.md5sum b/consolekit/.md5sum new file mode 100644 index 0000000..cda460e --- /dev/null +++ b/consolekit/.md5sum @@ -0,0 +1,2 @@ +611792b4d616253a5bdec9175f8b7678 ConsoleKit-0.4.6.tar.xz +c038a8f9b3bcaf49c598c19c38bbd628 pam-foreground-compat.ck diff --git a/consolekit/Pkgfile b/consolekit/Pkgfile new file mode 100644 index 0000000..67c1c1c --- /dev/null +++ b/consolekit/Pkgfile @@ -0,0 +1,28 @@ +# Description: Framework for defining and tracking users, login sessions, and seats +# URL: http://www.freedesktop.org/wiki/Software/ConsoleKit +# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve +# Depends on: polkit dbus-glib + +name=consolekit +version=0.4.6 +release=2 +source=( +http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-0.4.6.tar.xz +pam-foreground-compat.ck +) + +build() { + cd ConsoleKit-$version + ./configure \ + --prefix=/usr \ + --localstatedir=/var \ + --libexec=/usr/lib/ConsoleKit/libexec \ + --enable-udev-acl + make + make DESTDIR=$PKG install + + # This script creates /var/run/console/$USER + # Required by the "at_console" feature of the dbus policy system + # This is an alternative to pam_console + install -D -m 0755 -o root -g root $SRC/pam-foreground-compat.ck $PKG/usr/etc/ConsoleKit/run-session.d/pam-foreground-compat.ck +} diff --git a/consolekit/pam-foreground-compat.ck b/consolekit/pam-foreground-compat.ck new file mode 100644 index 0000000..0697ca8 --- /dev/null +++ b/consolekit/pam-foreground-compat.ck @@ -0,0 +1,17 @@ +#!/bin/sh +TAGDIR=/var/run/console + +[ -n "$CK_SESSION_USER_UID" ] || exit 1 + +TAGFILE="$TAGDIR/`getent passwd $CK_SESSION_USER_UID | cut -f 1 -d:`" + +if [ "$1" = "session_added" ]; then + mkdir -p "$TAGDIR" + echo "$CK_SESSION_ID" >> "$TAGFILE" +fi + +if [ "$1" = "session_removed" ] && [ -e "$TAGFILE" ]; then + sed -i "\%^$CK_SESSION_ID\$%d" "$TAGFILE" + [ -s "$TAGFILE" ] || rm -f "$TAGFILE" +fi +
participants (1)
-
crux@crux.nu