From 3d1235af060955e271be68240c0ca46bc6d81b03 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 25 Mar 2014 15:24:04 +0100 Subject: [modules] new module naming convention rename $MODULE.{conf,build} to module.{conf,build} --- remote/modules/ldm/module.build | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 remote/modules/ldm/module.build (limited to 'remote/modules/ldm/module.build') 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." +} + -- cgit v1.2.3-55-g7522