diff options
| author | root | 2013-03-19 15:28:56 +0100 |
|---|---|---|
| committer | root | 2013-03-19 15:28:56 +0100 |
| commit | cc112cd5c1b75403fa99357f981a5471784f5ab4 (patch) | |
| tree | c61196354a0112720b0181ae2b0cd9fb1736605e /remote/modules/ldm | |
| parent | openSUSE non-interactive zypper (diff) | |
| parent | binutil: add libs to blacklist, speeds up by a LOT (thanks michi:)) (diff) | |
| download | tm-scripts-cc112cd5c1b75403fa99357f981a5471784f5ab4.tar.gz tm-scripts-cc112cd5c1b75403fa99357f981a5471784f5ab4.tar.xz tm-scripts-cc112cd5c1b75403fa99357f981a5471784f5ab4.zip | |
Merge branch 'master' of ssh://openslx/openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/ldm')
| l--------- | remote/modules/ldm/data/etc/systemd/system/graphical.target.wants/lightdm.service | 1 | ||||
| -rw-r--r-- | remote/modules/ldm/data/etc/systemd/system/lightdm.service | 10 | ||||
| -rw-r--r-- | remote/modules/ldm/ldm.build | 38 | ||||
| -rw-r--r-- | remote/modules/ldm/ldm.conf | 8 |
4 files changed, 57 insertions, 0 deletions
diff --git a/remote/modules/ldm/data/etc/systemd/system/graphical.target.wants/lightdm.service b/remote/modules/ldm/data/etc/systemd/system/graphical.target.wants/lightdm.service new file mode 120000 index 00000000..c7aaa65a --- /dev/null +++ b/remote/modules/ldm/data/etc/systemd/system/graphical.target.wants/lightdm.service @@ -0,0 +1 @@ +../lightdm.service
\ No newline at end of file diff --git a/remote/modules/ldm/data/etc/systemd/system/lightdm.service b/remote/modules/ldm/data/etc/systemd/system/lightdm.service new file mode 100644 index 00000000..99911bff --- /dev/null +++ b/remote/modules/ldm/data/etc/systemd/system/lightdm.service @@ -0,0 +1,10 @@ +[Unit] +Description=LightDM Display Manager +Requires=dev-tty7.device +After=dev-tty7.device systemd-user-sessions.service + +[Service] +ExecStart=/sbin/lightdm + +[Install] +WantedBy=graphical.target diff --git a/remote/modules/ldm/ldm.build b/remote/modules/ldm/ldm.build new file mode 100644 index 00000000..0e73148c --- /dev/null +++ b/remote/modules/ldm/ldm.build @@ -0,0 +1,38 @@ +#tool/distro specific functions for fetching, building and installing dependencies + +fetch_source () { + [ ! -e .fetched_source ] && download_untar "$URL" "src/" + touch .fetched_source +} + +build () { + if [ ! -e .built ]; then + cd "src/$VERSION" + pinfo "Running configure" + ./configure --prefix="/" --datarootdir="/usr/share" || perror "failed." + pinfo "Running make" + make || perror "failed." + pinfo "Running make install" + DESTDIR="${MODULE_BUILD_DIR}" make install || perror "failed." + + COPYLIST="list_dpkg_output" + + [ -e "$COPYLIST" ] && rm "$COPYLIST" + + list_packet_files >> "$COPYLIST" + tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}" + + cd - + touch .built + fi +} + +post_copy() { + mkdir -p "${TARGET_BUILD_DIR}/var/lib/lightdm" + touch "${TARGET_BUILD_DIR}/var/lib/lightdm/.Xauthority" || perror "Cannot touch '${TARGET_BUILD_DIR}/var/lib/lightdm/.Xauthority'" + local LDMUID=$(add_user "lightdm") + local LDMGID=$(add_group "lightdm") + pinfo "lightdm user and group is $LDMUID $LDMGID" + chown -R "${LDMUID}:${LDMGID}" "${TARGET_BUILD_DIR}/var/lib/lightdm/" || perror "chowning '${TARGET_BUILD_DIR}/var/lib/lightdm/' failed." +} + diff --git a/remote/modules/ldm/ldm.conf b/remote/modules/ldm/ldm.conf new file mode 100644 index 00000000..d40aab7f --- /dev/null +++ b/remote/modules/ldm/ldm.conf @@ -0,0 +1,8 @@ +VERSION=lightdm-1.4.0 +URL=https://launchpad.net/lightdm/1.4/1.4.0/+download/lightdm-1.4.0.tar.gz +REQUIRED_DEPENDENCIES="libpam-dev itstool liblightdm-gobject-1-dev" +REQUIRED_PACKAGES="" +REQUIRED_BINARIES="dm-tool lightdm lightdm-set-defaults gdmflexiserver lightdm-guest-session-wrapper lightdm-set-defaults" +REQUIRED_DIRECTORIES="/etc /lib" +REQUIRED_FILES="" + |
