summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
authorMichael Neves2013-03-13 17:04:18 +0100
committerMichael Neves2013-03-13 17:04:18 +0100
commit4d035bc4ed1e23270320c0f0f473ef2578199bc8 (patch)
tree8656f2e942f937cf0ee4f87b421738985805e111 /remote
parentnew policykit extracted from system (diff)
downloadtm-scripts-4d035bc4ed1e23270320c0f0f473ef2578199bc8.tar.gz
tm-scripts-4d035bc4ed1e23270320c0f0f473ef2578199bc8.tar.xz
tm-scripts-4d035bc4ed1e23270320c0f0f473ef2578199bc8.zip
consolekit from system
Diffstat (limited to 'remote')
-rw-r--r--remote/tools/consolekit/consolekit.build21
-rw-r--r--remote/tools/consolekit/consolekit.conf11
2 files changed, 32 insertions, 0 deletions
diff --git a/remote/tools/consolekit/consolekit.build b/remote/tools/consolekit/consolekit.build
new file mode 100644
index 00000000..ff7778aa
--- /dev/null
+++ b/remote/tools/consolekit/consolekit.build
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+fetch_source() {
+ pinfo "Extracting from running system..."
+}
+
+build() {
+ BUILDDIR="${TOOL_DIR}/${TOOL}/build"
+ COPYLIST="list_dpkg_output"
+ [ -e "${COPYLIST}" ] && rm "${COPYLIST}"
+
+ list_packet_files >> "${COPYLIST}"
+ tarcopy "$(cat "${COPYLIST}" | sort -u)" "${BUILDDIR}"
+
+}
+post_copy() {
+ mkdir -p "${INIT_DIR}/usr/lib/ConsoleKit/run-seat.d"
+ mkdir -p "${INIT_DIR}/etc/ConsoleKit/run-seat.d"
+ mkdir -p "${INIT_DIR}/etc/ConsoleKit/run-session.d"
+ mkdir -p "${INIT_DIR}/var/log/ConsoleKit"
+}
diff --git a/remote/tools/consolekit/consolekit.conf b/remote/tools/consolekit/consolekit.conf
new file mode 100644
index 00000000..38f1718f
--- /dev/null
+++ b/remote/tools/consolekit/consolekit.conf
@@ -0,0 +1,11 @@
+REQUIRED_PACKAGES="consolekit"
+REQUIRED_BINARIES=" ck-history
+ ck-launch-session
+ ck-list-sessions
+ ck-log-system-start
+ ck-log-system-restart
+ ck-log-system-stop
+ console-kit-daemon"
+REQUIRED_DIRECTORIES=" /usr/lib/ConsoleKit /etc /lib/systemd/system"
+REQUIRED_FILES=" /usr/share/dbus-1/system-services/org.freedesktop.ConsoleKit.service
+ /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy"