diff options
Diffstat (limited to 'remote/modules')
| -rw-r--r-- | remote/modules/consolekit/consolekit.build | 10 | ||||
| -rw-r--r-- | remote/modules/consolekit/consolekit.conf | 10 | ||||
| -rw-r--r-- | remote/modules/consolekit/consolekit.conf.debian | 6 | ||||
| -rw-r--r-- | remote/modules/consolekit/consolekit.conf.ubuntu | 6 | ||||
| -rw-r--r-- | remote/modules/consolekit/templates/consolekit.dbus.service | 6 | ||||
| -rw-r--r-- | remote/modules/consolekit/templates/consolekit.systemd.service | 9 | ||||
| -rw-r--r-- | remote/modules/pam/pam.conf.ubuntu | 1 |
7 files changed, 41 insertions, 7 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" } + diff --git a/remote/modules/consolekit/consolekit.conf b/remote/modules/consolekit/consolekit.conf index 91fc6dc2..b84bf697 100644 --- a/remote/modules/consolekit/consolekit.conf +++ b/remote/modules/consolekit/consolekit.conf @@ -1,12 +1,16 @@ REQUIRED_BINARIES=" console-kit-daemon + ck-history + ck-launch-session + ck-list-sessions " REQUIRED_DIRECTORIES=" - /usr - /etc - /$LIB64 + /etc/ConsoleKit + /etc/dbus-1 + /usr/share " REQUIRED_LIBRARIES=" pam_ck_connector + libck-connector " diff --git a/remote/modules/consolekit/consolekit.conf.debian b/remote/modules/consolekit/consolekit.conf.debian index c0fffffa..0171868a 100644 --- a/remote/modules/consolekit/consolekit.conf.debian +++ b/remote/modules/consolekit/consolekit.conf.debian @@ -1,2 +1,6 @@ -REQUIRED_CONTENT_PACKAGES="consolekit" +REQUIRED_CONTENT_PACKAGES=" + consolekit + libpam-ck-connector +" + diff --git a/remote/modules/consolekit/consolekit.conf.ubuntu b/remote/modules/consolekit/consolekit.conf.ubuntu index c0fffffa..3b160bc9 100644 --- a/remote/modules/consolekit/consolekit.conf.ubuntu +++ b/remote/modules/consolekit/consolekit.conf.ubuntu @@ -1,2 +1,6 @@ -REQUIRED_CONTENT_PACKAGES="consolekit" +REQUIRED_CONTENT_PACKAGES=" + consolekit + libpam-ck-connector + libck-connector0 +" diff --git a/remote/modules/consolekit/templates/consolekit.dbus.service b/remote/modules/consolekit/templates/consolekit.dbus.service new file mode 100644 index 00000000..5720e4cf --- /dev/null +++ b/remote/modules/consolekit/templates/consolekit.dbus.service @@ -0,0 +1,6 @@ +[D-BUS Service] +Name=org.freedesktop.ConsoleKit +Exec=%DAEMON% --no-daemon +User=root +SystemdService=console-kit-daemon.service + diff --git a/remote/modules/consolekit/templates/consolekit.systemd.service b/remote/modules/consolekit/templates/consolekit.systemd.service new file mode 100644 index 00000000..f86158cc --- /dev/null +++ b/remote/modules/consolekit/templates/consolekit.systemd.service @@ -0,0 +1,9 @@ +[Unit] +Description=ConsoleKit (Legacy) +After=syslog.target + +[Service] +Type=dbus +BusName=org.freedesktop.ConsoleKit +ExecStart=%DAEMON% --no-daemon + diff --git a/remote/modules/pam/pam.conf.ubuntu b/remote/modules/pam/pam.conf.ubuntu index c1516e13..fe034225 100644 --- a/remote/modules/pam/pam.conf.ubuntu +++ b/remote/modules/pam/pam.conf.ubuntu @@ -14,7 +14,6 @@ REQUIRED_INSTALLED_PACKAGES=" REQUIRED_CONTENT_PACKAGES=" libpam0g libpam-modules - libpam-ck-connector libpam-cap libldap-2.4-2 libpam-ldap |
