summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmware/vmware.build
diff options
context:
space:
mode:
authorJonathan Bauer2014-03-25 16:05:27 +0100
committerJonathan Bauer2014-03-25 16:05:27 +0100
commit249e951ce236e3bbeb32b5a943215524a81f42f2 (patch)
treee7538724066c4a0330f2e6588e956680613bff57 /remote/modules/vmware/vmware.build
parent[consolekit] woops, delete old files (diff)
downloadtm-scripts-249e951ce236e3bbeb32b5a943215524a81f42f2.tar.gz
tm-scripts-249e951ce236e3bbeb32b5a943215524a81f42f2.tar.xz
tm-scripts-249e951ce236e3bbeb32b5a943215524a81f42f2.zip
woopsie, the return ;)
Diffstat (limited to 'remote/modules/vmware/vmware.build')
-rw-r--r--remote/modules/vmware/vmware.build65
1 files changed, 0 insertions, 65 deletions
diff --git a/remote/modules/vmware/vmware.build b/remote/modules/vmware/vmware.build
deleted file mode 100644
index 98ee2b8d..00000000
--- a/remote/modules/vmware/vmware.build
+++ /dev/null
@@ -1,65 +0,0 @@
-fetch_source() {
- [ -e "${MODULE_DIR}/src" -a -d "${MODULE_DIR}/src" ] && \
- { rm -r "${MODULE_DIR}/src" || perror "Could not delete old src dir."; }
- mkdir -p "${MODULE_DIR}/src" || perror "Could not mkdir src"
- cd "${MODULE_DIR}/src" || perror "cd fail."
-
- # Get directory listing
- wget -O "index.html" "$REQUIRED_DOWNLOAD_BASE" || perror "Could not download vmware dir index"
-
- VMWARE_BUNDLE_FILE=$(grep -E -o -i "href=\"VMware-$REQUIRED_TYPE-[^\"]+[\._\-]$ARCHREGEX[\._\-][^\"]+\"" "index.html" | head -n 1 | awk -F '"' '{printf $2}')
- [ -z "$VMWARE_BUNDLE_FILE" ] && perror "Could not determine vmware $REQUIRED_TYPE bundle file for current arch from $MODULE_DIR/src/index.html"
- # Download file
- wget -O "$VMWARE_BUNDLE_FILE" "$REQUIRED_DOWNLOAD_BASE/$VMWARE_BUNDLE_FILE" || perror "Could not download $VMWARE_BUNDLE_FILE from $REQUIRED_DOWNLOAD_BASE"
- if [[ "$VMWARE_BUNDLE_FILE" == *.tar ]]; then
- tar -x "${VMWARE_BUNDLE_FILE%.tar}" -f "$VMWARE_BUNDLE_FILE" || perror "Could not untar downloaded $VMWARE_BUNDLE_FILE"
- unlink "$VMWARE_BUNDLE_FILE"
- VMWARE_BUNDLE_FILE="${VMWARE_BUNDLE_FILE%.tar}"
- fi
-
- cd - >/dev/null
-}
-
-build() {
- local DELETE_FILES
- DELETE_FILES=$(for LINE in $REQUIRED_VMWARE_DELETIONS;do echo rm -rf $LINE; done)
-
- # prepare the build directory with the files needed during the chroot
- cp "${MODULE_DIR}/src/$VMWARE_BUNDLE_FILE" "${MODULE_BUILD_DIR}/$VMWARE_BUNDLE_FILE"
- cp -r "${MODULE_DIR}/patches" "${MODULE_BUILD_DIR}"
-
- # sanity check to see if KERNEL_HEADERS_PATH is set and exists
- [ -z "${KERNEL_HEADERS_PATH}" -o ! -e "${KERNEL_HEADERS_PATH}" ] && perror "KERNEL_HEADERS_PATH ('"${KERNEL_HEADERS_PATH}"') not found. Was the kernel module built?"
-
- pinfo "Installing vmware per chroot..."
- chroot_run "${MODULE_BUILD_DIR}" <<-EOF
- # PS1='\[\e[1;33m\](chroot) \u@\h:\w\$ \[\e[1;32m\]' /bin/bash -norc # un-comment for debugging within chroot
- $DELETE_FILES
- yes | sh /"${VMWARE_BUNDLE_FILE}" --eulas-agreed --console --required
- vmware-modconfig --console --build-mod -k "${SYS_UTS_RELEASE}" vmnet $(which gcc) "${KERNEL_HEADERS_PATH}/include" vmplayer vmnet
- vmware-modconfig --console --build-mod -k "${SYS_UTS_RELEASE}" vmmon $(which gcc) "${KERNEL_HEADERS_PATH}/include" vmplayer vmmon
- # PS1='\[\e[1;33m\](chroot) \u@\h:\w\$ \[\e[1;32m\]' /bin/bash -norc # un-comment for debugging within chroot
- EOF
-
- # cleanup unneeded files
- rm -rf -- "${MODULE_BUILD_DIR}/etc/vmware-installer"
- rm -rf -- "${MODULE_BUILD_DIR}/usr/lib/vmware-installer"
- rm -rf -- "${MODULE_BUILD_DIR}/usr/lib/vmware-ovftool"
- unlink "${MODULE_BUILD_DIR}/$VMWARE_BUNDLE_FILE"
-
-}
-
-post_copy() {
- # FIXME: gconftool is copied without dependencies
- tarcopy "$(find /usr/lib/ /usr/lib64 -name gconv -type d)" "$TARGET_BUILD_DIR"
-
- # Update Icon cache for vmplayer
- gtk-update-icon-cache-3.0 "${TARGET_BUILD_DIR}/usr/share/icons/hicolor/" || pwarning "update-icon-cache-3.0 failed."
-
- # fix vmware-usbarbitrator bug
- date +'%Y.%m.%d' >"${TARGET_BUILD_DIR}/etc/arch-release"
-
- mkdir -p "$TARGET_BUILD_DIR/lib/modules/vmware/"
- cp "${MODULE_BUILD_DIR}/lib/modules/$SYS_UTS_RELEASE/vmplayer/"* "$TARGET_BUILD_DIR/lib/modules/vmware/" || perror "Could not cp vmware modules to target!"
-}
-