diff options
author | Eric Hameleers <alien@slackware.com> | 2015-09-13 13:04:59 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2015-09-13 13:04:59 +0200 |
commit | 8425a13987c3657bc59791715befd8fe9cbc8c6c (patch) | |
tree | d3939947ab304d80ab9287f17343d3b9964071bf /deps/ConsoleKit2/doinst.sh | |
parent | 53dc81e7545cf436bfdd0c4ac1e63723e2f2086a (diff) | |
download | ktown-8425a13987c3657bc59791715befd8fe9cbc8c6c.tar.gz ktown-8425a13987c3657bc59791715befd8fe9cbc8c6c.tar.xz |
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).
Diffstat (limited to 'deps/ConsoleKit2/doinst.sh')
-rw-r--r-- | deps/ConsoleKit2/doinst.sh | 27 |
1 files changed, 27 insertions, 0 deletions
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 + |