From 8425a13987c3657bc59791715befd8fe9cbc8c6c Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 13 Sep 2015 13:04:59 +0200 Subject: Updated 'deps' for KDE 5_15.09_02 LoginKit: removed. It was causing a minute-long delay on logout and display of the 'Leave' menu. ConsoleKit2 offers a systemd-logind API as well. ConsoleKit2: rebuilt with patches to make it work correctly on x86_64 (lib64). libproxy: added a rebuilt version of Slackware's package with KDE4 support removed, which prevents crashes in Qt5/KF5 applications which use libproxy (such as OwnCloud). --- deps/ConsoleKit2/doinst.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 deps/ConsoleKit2/doinst.sh (limited to 'deps/ConsoleKit2/doinst.sh') diff --git a/deps/ConsoleKit2/doinst.sh b/deps/ConsoleKit2/doinst.sh new file mode 100644 index 0000000..c13a36e --- /dev/null +++ b/deps/ConsoleKit2/doinst.sh @@ -0,0 +1,27 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +preserve_perms() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ -e $OLD ]; then + cp -a $OLD ${NEW}.incoming + cat $NEW > ${NEW}.incoming + mv ${NEW}.incoming $NEW + fi + config $NEW +} + +config etc/ConsoleKit/seats.d/00-primary.seat.new +preserve_perms etc/rc.d/rc.consolekit.new + -- cgit v1.2.3