summaryrefslogtreecommitdiffstats
path: root/core/modules/lightdm-greeter-bwlp
diff options
context:
space:
mode:
authorSimon Rettberg2017-08-11 17:56:03 +0200
committerSimon Rettberg2017-08-11 17:56:03 +0200
commit1d848f34f05bff68342f804bde0afecad2151e13 (patch)
treeb6ec6cd2dcdb7fa5dbb200d9b171a29bbf073fc8 /core/modules/lightdm-greeter-bwlp
parent[rfs-s32] fix ssl certs not being copied (diff)
downloadmltk-1d848f34f05bff68342f804bde0afecad2151e13.tar.gz
mltk-1d848f34f05bff68342f804bde0afecad2151e13.tar.xz
mltk-1d848f34f05bff68342f804bde0afecad2151e13.zip
lightdm-qt-greeter -> lightdm-greeter-bwlp
Diffstat (limited to 'core/modules/lightdm-greeter-bwlp')
-rw-r--r--core/modules/lightdm-greeter-bwlp/data/etc/lightdm/lightdm.conf.d/10-openslx.conf4
-rw-r--r--core/modules/lightdm-greeter-bwlp/data/etc/lightdm/qt-lightdm-greeter.conf19
-rw-r--r--core/modules/lightdm-greeter-bwlp/data/opt/openslx/lightdm/bwlp-background.pngbin0 -> 54978 bytes
-rw-r--r--core/modules/lightdm-greeter-bwlp/module.build34
-rw-r--r--core/modules/lightdm-greeter-bwlp/module.conf10
-rw-r--r--core/modules/lightdm-greeter-bwlp/module.conf.ubuntu10
6 files changed, 77 insertions, 0 deletions
diff --git a/core/modules/lightdm-greeter-bwlp/data/etc/lightdm/lightdm.conf.d/10-openslx.conf b/core/modules/lightdm-greeter-bwlp/data/etc/lightdm/lightdm.conf.d/10-openslx.conf
new file mode 100644
index 00000000..0e717dbf
--- /dev/null
+++ b/core/modules/lightdm-greeter-bwlp/data/etc/lightdm/lightdm.conf.d/10-openslx.conf
@@ -0,0 +1,4 @@
+[SeatDefaults]
+greeter-hide-users=true
+greeter-session=qt-lightdm-greeter
+session-wrapper=/opt/openslx/bin/vmchooser
diff --git a/core/modules/lightdm-greeter-bwlp/data/etc/lightdm/qt-lightdm-greeter.conf b/core/modules/lightdm-greeter-bwlp/data/etc/lightdm/qt-lightdm-greeter.conf
new file mode 100644
index 00000000..a1d19f07
--- /dev/null
+++ b/core/modules/lightdm-greeter-bwlp/data/etc/lightdm/qt-lightdm-greeter.conf
@@ -0,0 +1,19 @@
+; qt-lightdm-greeter.conf
+;
+; General configuration
+;
+; greeter-icon-theme = name of icon theme to use for the greeter
+;
+; greeter-background = /path/to/background/image to set a background image for the login screen
+;
+; loginform-offset-x = how far from the left edge of the screen should the loginform be placed.
+; Can be given in pixels, e.g. loginform-offset-x=60px, or in percentage of screen width, e.g. loginform-offset-x=20%.
+;
+; loginform-offset-y = how far from the left edge of the screen should the loginform be placed.
+; Can be given in pixels, e.g. loginform-offset-y=60px, or in percentage of screen width, e.g. loginform-offset-y=20%.
+
+[General]
+;greeter-icon-theme=oxygen
+greeter-background-image=/opt/openslx/lightdm/bwlp-background.png
+loginform-offset-x=50%
+loginform-offset-y=50%
diff --git a/core/modules/lightdm-greeter-bwlp/data/opt/openslx/lightdm/bwlp-background.png b/core/modules/lightdm-greeter-bwlp/data/opt/openslx/lightdm/bwlp-background.png
new file mode 100644
index 00000000..e52de595
--- /dev/null
+++ b/core/modules/lightdm-greeter-bwlp/data/opt/openslx/lightdm/bwlp-background.png
Binary files differ
diff --git a/core/modules/lightdm-greeter-bwlp/module.build b/core/modules/lightdm-greeter-bwlp/module.build
new file mode 100644
index 00000000..9698970e
--- /dev/null
+++ b/core/modules/lightdm-greeter-bwlp/module.build
@@ -0,0 +1,34 @@
+#!/bin/bash
+fetch_source() {
+ git clone "$REQUIRED_GIT" "${MODULE_WORK_DIR}/src"
+}
+
+build() {
+ local SRCDIR="${MODULE_WORK_DIR}/src/"
+ local BUILDDIR="${SRCDIR}/build/"
+ local DESTDIR="${MODULE_BUILD_DIR}/opt/openslx/bin"
+
+ # now regular cmake stuff
+ mkdir -p "${BUILDDIR}" || perror "Could not mkdir ${BUILDDIR}!"
+ pushd "${BUILDDIR}" &>/dev/null || perror "Could not cd to ${BUILDDIR}!"
+ pinfo "Running cmake"
+ cmake .. || perror "'cmake ..' failed."
+ pinfo "Running make"
+ make || perror "'make' failed."
+ popd &>/dev/null
+ # "install"
+ mkdir -p "${DESTDIR}" || perror "Could not mkdir ${DESTDIR}!"
+ mv "${BUILDDIR}/qt-lightdm-greeter" "${DESTDIR}"
+ mkdir -p "${MODULE_BUILD_DIR}/usr/share/xgreeters"
+ cp "${SRCDIR}/qt-lightdm-greeter.desktop" "${MODULE_BUILD_DIR}/usr/share/xgreeters"
+
+ COPYLIST="list_dpkg_output"
+ [ -e "$COPYLIST" ] && rm "$COPYLIST"
+ list_packet_files >> "$COPYLIST"
+ tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}"
+}
+
+post_copy() {
+ :
+}
+
diff --git a/core/modules/lightdm-greeter-bwlp/module.conf b/core/modules/lightdm-greeter-bwlp/module.conf
new file mode 100644
index 00000000..f203328f
--- /dev/null
+++ b/core/modules/lightdm-greeter-bwlp/module.conf
@@ -0,0 +1,10 @@
+REQUIRED_MODULE="lightdm"
+REQUIRED_GIT="git://git.openslx.org/openslx-ng/slxgreeter"
+REQUIRED_BINARIES="
+ qt-lightdm-greeter
+"
+REQUIRED_LIBRARIES=""
+REQUIRED_DIRECTORIES="
+ /usr/lib
+ /usr/share/xgreeters
+"
diff --git a/core/modules/lightdm-greeter-bwlp/module.conf.ubuntu b/core/modules/lightdm-greeter-bwlp/module.conf.ubuntu
new file mode 100644
index 00000000..49f304ba
--- /dev/null
+++ b/core/modules/lightdm-greeter-bwlp/module.conf.ubuntu
@@ -0,0 +1,10 @@
+#!/bin/bash
+REQUIRED_INSTALLED_PACKAGES="
+ liblightdm-qt5-3-dev
+ libqt5svg5-dev
+"
+
+REQUIRED_CONTENT_PACKAGES="
+ liblightdm-qt5-3-0
+ libqt5svg5
+"