From efdf98651290a72fd70f98d9c242b20caf0eec48 Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Wed, 28 Aug 2013 14:38:35 +0200 Subject: [vbox] vbox build script - compiles kernel modules, unpacks rpm, patches scripts so far. --- remote/modules/vbox/vbox.build | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'remote/modules') 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 } -- cgit v1.2.3-55-g7522