diff options
| author | Jonathan Bauer | 2014-03-25 15:24:04 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2014-03-25 15:24:04 +0100 |
| commit | 3d1235af060955e271be68240c0ca46bc6d81b03 (patch) | |
| tree | ef02dcc4bb8476cfeef07e2df6a38b4c29d350df /remote/modules/ldm | |
| parent | [rootfs-stage32] /var/log/openslx in tmpfiles.d (diff) | |
| download | tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.tar.gz tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.tar.xz tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.zip | |
[modules] new module naming convention
rename $MODULE.{conf,build} to module.{conf,build}
Diffstat (limited to 'remote/modules/ldm')
| -rw-r--r-- | remote/modules/ldm/module.build | 34 | ||||
| -rw-r--r-- | remote/modules/ldm/module.conf | 8 |
2 files changed, 42 insertions, 0 deletions
diff --git a/remote/modules/ldm/module.build b/remote/modules/ldm/module.build new file mode 100644 index 00000000..e88f0b08 --- /dev/null +++ b/remote/modules/ldm/module.build @@ -0,0 +1,34 @@ +#tool/distro specific functions for fetching, building and installing dependencies + +fetch_source () { + download_untar "$URL" "src/" +} + +build () { + 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 - +} + +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/module.conf b/remote/modules/ldm/module.conf new file mode 100644 index 00000000..74ab9450 --- /dev/null +++ b/remote/modules/ldm/module.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_INSTALLED_PACKAGES="libpam-dev itstool liblightdm-gobject-1-dev" +REQUIRED_CONTENT_PACKAGES="" +REQUIRED_BINARIES="dm-tool lightdm lightdm-set-defaults gdmflexiserver lightdm-guest-session-wrapper lightdm-set-defaults" +REQUIRED_DIRECTORIES="/etc /lib" +REQUIRED_FILES="" + |
