summaryrefslogtreecommitdiffstats
path: root/remote/modules/consolekit
diff options
context:
space:
mode:
authorJonathan Bauer2014-03-25 15:24:04 +0100
committerJonathan Bauer2014-03-25 15:24:04 +0100
commit3d1235af060955e271be68240c0ca46bc6d81b03 (patch)
treeef02dcc4bb8476cfeef07e2df6a38b4c29d350df /remote/modules/consolekit
parent[rootfs-stage32] /var/log/openslx in tmpfiles.d (diff)
downloadtm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.tar.gz
tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.tar.xz
tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.zip
[modules] new module naming convention
rename $MODULE.{conf,build} to module.{conf,build}
Diffstat (limited to 'remote/modules/consolekit')
-rw-r--r--remote/modules/consolekit/module.build28
-rw-r--r--remote/modules/consolekit/module.conf17
-rw-r--r--remote/modules/consolekit/module.conf.debian6
-rw-r--r--remote/modules/consolekit/module.conf.opensuse8
-rw-r--r--remote/modules/consolekit/module.conf.ubuntu9
5 files changed, 68 insertions, 0 deletions
diff --git a/remote/modules/consolekit/module.build b/remote/modules/consolekit/module.build
new file mode 100644
index 00000000..0c63ec6b
--- /dev/null
+++ b/remote/modules/consolekit/module.build
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+fetch_source() {
+ pinfo "Extracting from running system..."
+}
+
+build() {
+ COPYLIST="list_dpkg_output"
+ [ -e "${COPYLIST}" ] && rm "${COPYLIST}"
+
+ list_packet_files >> "${COPYLIST}"
+ tarcopy "$(cat "${COPYLIST}" | sort -u)" "${MODULE_BUILD_DIR}"
+ # Systemd/dbus
+ mkdir -p "$MODULE_BUILD_DIR/usr/share/dbus-1/system-services" "$MODULE_BUILD_DIR/etc/systemd/system"
+ local DAEMON=$(find "$MODULE_BUILD_DIR" -name console-kit-daemon -executable | head -n 1)
+ DAEMON="${DAEMON#$MODULE_BUILD_DIR}"
+ [ -z "$DAEMON" ] && perror "Could not find console-kit-daemon binary"
+ sed "s,%DAEMON%,/$DAEMON,g" "templates/consolekit.systemd.service" > "$MODULE_BUILD_DIR/etc/systemd/system/console-kit-daemon.service" || perror "Could not generate systemd service"
+ sed "s,%DAEMON%,/$DAEMON,g" "templates/consolekit.dbus.service" > "$MODULE_BUILD_DIR/usr/share/dbus-1/system-services/org.freedesktop.ConsoleKit.service" || perror "Could not generate dbus service"
+}
+
+post_copy() {
+ mkdir -p "${TARGET_BUILD_DIR}/usr/lib/ConsoleKit/run-seat.d"
+ mkdir -p "${TARGET_BUILD_DIR}/etc/ConsoleKit/run-seat.d"
+ mkdir -p "${TARGET_BUILD_DIR}/etc/ConsoleKit/run-session.d"
+ mkdir -p "${TARGET_BUILD_DIR}/var/log/ConsoleKit"
+}
+
diff --git a/remote/modules/consolekit/module.conf b/remote/modules/consolekit/module.conf
new file mode 100644
index 00000000..e27b15e6
--- /dev/null
+++ b/remote/modules/consolekit/module.conf
@@ -0,0 +1,17 @@
+REQUIRED_BINARIES="
+ console-kit-daemon
+ ck-history
+ ck-launch-session
+ ck-list-sessions
+"
+REQUIRED_DIRECTORIES="
+ /etc/ConsoleKit
+ /etc/dbus-1
+ /usr/lib/ConsoleKit
+ /usr/share
+"
+REQUIRED_LIBRARIES="
+ pam_ck_connector
+ libck-connector
+"
+
diff --git a/remote/modules/consolekit/module.conf.debian b/remote/modules/consolekit/module.conf.debian
new file mode 100644
index 00000000..0171868a
--- /dev/null
+++ b/remote/modules/consolekit/module.conf.debian
@@ -0,0 +1,6 @@
+REQUIRED_CONTENT_PACKAGES="
+ consolekit
+ libpam-ck-connector
+"
+
+
diff --git a/remote/modules/consolekit/module.conf.opensuse b/remote/modules/consolekit/module.conf.opensuse
new file mode 100644
index 00000000..d0f46410
--- /dev/null
+++ b/remote/modules/consolekit/module.conf.opensuse
@@ -0,0 +1,8 @@
+REQUIRED_INSTALLED_PACKAGES="
+ ConsoleKit
+ ConsoleKit-x11
+"
+REQUIRED_CONTENT_PACKAGES="
+ ConsoleKit
+ ConsoleKit-x11
+"
diff --git a/remote/modules/consolekit/module.conf.ubuntu b/remote/modules/consolekit/module.conf.ubuntu
new file mode 100644
index 00000000..e7f5e47d
--- /dev/null
+++ b/remote/modules/consolekit/module.conf.ubuntu
@@ -0,0 +1,9 @@
+REQUIRED_INSTALLED_PACKAGES="
+ consolekit
+"
+REQUIRED_CONTENT_PACKAGES="
+ consolekit
+ libpam-ck-connector
+ libck-connector0
+"
+