diff options
| author | Michael Neves | 2013-03-13 17:08:12 +0100 |
|---|---|---|
| committer | Michael Neves | 2013-03-13 17:08:12 +0100 |
| commit | 9fbb1bdf25bad4990586bda73ac2bdeb6831c0bc (patch) | |
| tree | 8f2bb751865ce6fbea3127542d20c8990b27dcdb /remote/tools | |
| parent | add to tools again (diff) | |
| download | tm-scripts-9fbb1bdf25bad4990586bda73ac2bdeb6831c0bc.tar.gz tm-scripts-9fbb1bdf25bad4990586bda73ac2bdeb6831c0bc.tar.xz tm-scripts-9fbb1bdf25bad4990586bda73ac2bdeb6831c0bc.zip | |
move to tools again
Diffstat (limited to 'remote/tools')
| l--------- | remote/tools/ldm/data/etc/systemd/system/graphical.target.wants/lightdm.service | 1 | ||||
| -rw-r--r-- | remote/tools/ldm/data/etc/systemd/system/lightdm.service | 10 | ||||
| -rw-r--r-- | remote/tools/ldm/ldm.build | 42 | ||||
| -rw-r--r-- | remote/tools/ldm/ldm.conf | 8 |
4 files changed, 61 insertions, 0 deletions
diff --git a/remote/tools/ldm/data/etc/systemd/system/graphical.target.wants/lightdm.service b/remote/tools/ldm/data/etc/systemd/system/graphical.target.wants/lightdm.service new file mode 120000 index 00000000..c7aaa65a --- /dev/null +++ b/remote/tools/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/tools/ldm/data/etc/systemd/system/lightdm.service b/remote/tools/ldm/data/etc/systemd/system/lightdm.service new file mode 100644 index 00000000..99911bff --- /dev/null +++ b/remote/tools/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/tools/ldm/ldm.build b/remote/tools/ldm/ldm.build new file mode 100644 index 00000000..35584058 --- /dev/null +++ b/remote/tools/ldm/ldm.build @@ -0,0 +1,42 @@ +#tool/distro specific functions for fetching, building and installing dependencies + +fetch_source () { + [ ! -e .fetched_source ] && download_untar "$URL" "src/" + touch .fetched_source +} + +build () { + BUILDDIR="$TOOL_DIR/$TOOL/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="$BUILDDIR" make install || perror "failed." + + COPYLIST="list_dpkg_output" + + [ -e "$COPYLIST" ] && rm "$COPYLIST" + + list_packet_files >> "$COPYLIST" + tarcopy "$(cat "$COPYLIST" | sort -u)" "$BUILDDIR" + + cd - + touch .built + fi +} + +post_copy() { + mkdir -p "${INIT_DIR}/var/lib/lightdm" + touch "${INIT_DIR}/var/lib/lightdm/.Xauthority" || perror "Cannot touch '${INIT_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}" "${INIT_DIR}/var/lib/lightdm/" || perror "chowning '${INIT_DIR}/var/lib/lightdm/' failed." + #copyi static data files + cp -r "${TOOL_DIR}/${TOOL}/data/"* "${INIT_DIR}" || perror "Copying data/ failed." + +} + diff --git a/remote/tools/ldm/ldm.conf b/remote/tools/ldm/ldm.conf new file mode 100644 index 00000000..d40aab7f --- /dev/null +++ b/remote/tools/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="" + |
