diff options
author | Christian Rößler | 2013-08-28 14:38:35 +0200 |
---|---|---|
committer | Christian Rößler | 2013-08-28 14:38:35 +0200 |
commit | efdf98651290a72fd70f98d9c242b20caf0eec48 (patch) | |
tree | 267e7d05074c3d412bd864c80864420cd1c3e557 /remote/modules/vbox | |
parent | [vbox] Standard configuration file for openSuse 12.3 (diff) | |
download | tm-scripts-efdf98651290a72fd70f98d9c242b20caf0eec48.tar.gz tm-scripts-efdf98651290a72fd70f98d9c242b20caf0eec48.tar.xz tm-scripts-efdf98651290a72fd70f98d9c242b20caf0eec48.zip |
[vbox] vbox build script - compiles kernel modules, unpacks rpm,
patches scripts so far.
Diffstat (limited to 'remote/modules/vbox')
-rw-r--r-- | remote/modules/vbox/vbox.build | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/remote/modules/vbox/vbox.build b/remote/modules/vbox/vbox.build index fdfc2893..d456f248 100644 --- a/remote/modules/vbox/vbox.build +++ b/remote/modules/vbox/vbox.build @@ -1,25 +1,15 @@ #!/bin/bash patch_vbox_scripts() { - # patching script $BUILDINTMP (as we use the original build script from VB) - #pinfo "[vbox]: Patching script build_in_tmp ..." - #sed "s#if make #export DESTDIR=${MODULE_BUILD_DIR}/$BUILDSUBDIR\nif make #g" "$BUILDINTMP" > "$BUILDINTMP".tmp - #mv "$BUILDINTMP".tmp "$BUILDINTMP" - #chmod u+x "$BUILDINTMP" - # patching some virtualbox utility scripts to include openslx-busybox paths. Strange sed-ing, as the added # openslx paths need to be at the end of PATH to not impede with system binaries to not impede with system binaries pinfo "Patching virtual box scripts to include openslx (busybox)-paths ..." + # vboxmanage is a link to VBox; will get unlinked. Original link will be vboxmanage.original for i in virtualbox vboxmanage; do pinfo "Patching virtual box script $i ..." SCRIPTPATH=$(grep -m 1 PATH "${MODULE_BUILD_DIR}/usr/bin/$i"|sed 's/"//g') # assume first hit is real path -# SCRIPTPATH="${SCRIPTPATH}:/opt/openslx/bin:/opt/openslx/usr/bin:/opt/openslx/sbin" sed -i "-i.original" "/^PATH=/c ${SCRIPTPATH}:/opt/openslx/bin:/opt/openslx/usr/bin:/opt/openslx/sbin"\ - "${MODULE_BUILD_DIR}/usr/bin/$i" -# sed "s#PATH=\"/usr/bin:/bin:/usr/sbin:/sbin\"#$SCRIPTPATH:#g" "${MODULE_BUILD_DIR}/usr/bin/$i" \ -# >"${MODULE_BUILD_DIR}/usr/bin/$i.tmp" -# mv "${MODULE_BUILD_DIR}/usr/bin/$i.tmp" "${MODULE_BUILD_DIR}/usr/bin/$i" -# chmod +x "${MODULE_BUILD_DIR}/usr/bin/$i" + "${MODULE_BUILD_DIR}/usr/bin/$i" # append openslx paths done } |