ConsoleKit: switch to the ConsoleKit2 fork (0.9.1).

This commit is contained in:
Juan RP 2014-10-23 17:44:53 +02:00
parent ad23fdb975
commit df599586c6
3 changed files with 9 additions and 58 deletions

View file

@ -1,32 +0,0 @@
# -*- sh -*-
# Xsession.d script for ck-launch-session.
#
#
# This file is sourced by Xsession(5), not executed.
CK_LAUNCH_SESSION=/usr/bin/ck-launch-session
is_on_console() {
session=$(dbus-send --system --dest=org.freedesktop.ConsoleKit \
--type=method_call --print-reply --reply-timeout=2000 \
/org/freedesktop/ConsoleKit/Manager \
org.freedesktop.ConsoleKit.Manager.GetCurrentSession \
| grep path | awk '{print $3}' | sed s/\"//g)
x11_display=$(dbus-send --system --dest=org.freedesktop.ConsoleKit \
--type=method_call --print-reply --reply-timeout=2000 \
$session org.freedesktop.ConsoleKit.Session.GetX11Display \
| grep string | awk '{print $2}' | sed s/\"//g)
if [ -z "$x11_display" ] ; then
return 0
else
return 1
fi
}
# gdm already creates a CK session for us, so do not run the expensive D-Bus
# calls if we have $GDMSESSION
if [ -z "$GDMSESSION" ] && [ -x "$CK_LAUNCH_SESSION" ] && \
( [ -z "$XDG_SESSION_COOKIE" ] || is_on_console ) ; then
command="$CK_LAUNCH_SESSION $command"
fi

View file

@ -1,16 +0,0 @@
#!/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

View file

@ -1,32 +1,31 @@
# Template file for 'gnome-calculator'
pkgname=ConsoleKit
version=0.4.6
revision=6
version=0.9.1
revision=1
wrksrc="${pkgname}2-${version}"
build_style=gnu-configure
configure_args="--enable-udev-acl --with-pam-module-dir=/usr/lib/security --enable-pam-module"
hostmakedepends="automake libtool pkg-config glib-devel"
hostmakedepends="automake libtool pkg-config gettext-devel glib-devel"
makedepends="acl-devel libudev-devel polkit-devel dbus-glib-devel glib-devel libX11-devel pam-devel"
depends="dbus"
depends="dbus pm-utils"
short_desc="A framework for defining and tracking users, login sessions, and seats"
maintainer="Enno Boland <eb@s01.de>"
homepage="http://www.freedesktop.org/wiki/Software/ConsoleKit"
license="GPL"
distfiles="http://www.freedesktop.org/software/ConsoleKit/dist/${pkgname}-${version}.tar.xz"
checksum=b41d17e06f80059589fbeefe96ad07bcc564c49e65516da1caf975146475565c
distfiles="https://github.com/ConsoleKit2/ConsoleKit2/releases/download/${version}/ConsoleKit2-${version}.tar.bz2"
checksum=6a735805bca0841e369a58468cc86b02d4e55184b37a4314429dec19019ff388
make_dirs="
/etc/${pkgname}/run-seat.d 0755 root root
/etc/${pkgname}/run-session.d 0755 root root
/usr/lib/${pkgname}/run-session.d 0755 root root
/usr/lib/${pkgname}/run-seat.d 0755 root root
/var/log/${pkgname} 0755 root root"
/usr/lib/${pkgname}/run-seat.d 0755 root root"
pre_configure() {
autoreconf -fi
}
post_install() {
vinstall ${FILESDIR}/90-consolekit-3 755 etc/X11/xinit/xinitrc.d 90-consolekit
vinstall ${FILESDIR}/pam-foreground-compat.ck 755 usr/lib/${pkgname}/run-session.d
vinstall data/90-consolekit 755 etc/X11/xinit/xinitrc.d
}
ConsoleKit-devel_package() {