summaryrefslogtreecommitdiffstats
path: root/remote/modules/consolekit/consolekit.build
diff options
context:
space:
mode:
authorSimon Rettberg2013-09-18 16:42:52 +0200
committerSimon Rettberg2013-09-18 16:42:52 +0200
commite943f087771b879f710a30c8d0e9e7f6320e4016 (patch)
tree232742309d639bce3aff0952992eb373afd7929c /remote/modules/consolekit/consolekit.build
parentMerge branch 'master' of simonslx:openslx-ng/tm-scripts (diff)
downloadtm-scripts-e943f087771b879f710a30c8d0e9e7f6320e4016.tar.gz
tm-scripts-e943f087771b879f710a30c8d0e9e7f6320e4016.tar.xz
tm-scripts-e943f087771b879f710a30c8d0e9e7f6320e4016.zip
Make sure pam_ck_connector is required by and included in the consolekit module on all platforms
(Previously it was in consolekit on suse and pam on ubuntu... -.-)
Diffstat (limited to 'remote/modules/consolekit/consolekit.build')
-rw-r--r--remote/modules/consolekit/consolekit.build10
1 files changed, 9 insertions, 1 deletions
diff --git a/remote/modules/consolekit/consolekit.build b/remote/modules/consolekit/consolekit.build
index ac31f9ed..0c63ec6b 100644
--- a/remote/modules/consolekit/consolekit.build
+++ b/remote/modules/consolekit/consolekit.build
@@ -10,11 +10,19 @@ build() {
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"
}
+