Changeset 63889 in vbox
- Timestamp:
- Sep 19, 2016 2:19:48 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 110759
- Location:
- trunk/src/VBox/Additions/linux
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/Makefile.kmk
r63877 r63889 42 42 VBOX_LNX_ADD_INST_SBIN_DIR := $(VBOX_LNX_ADD_INST_OUT_DIR)sbin/ 43 43 VBOX_LNX_ADD_INST_LIB_DIR := $(VBOX_LNX_ADD_INST_OUT_DIR)lib/ 44 VBOX_LNX_ADD_INST_ SHARE_DIR := $(VBOX_LNX_ADD_INST_OUT_DIR)share/44 VBOX_LNX_ADD_INST_OTHER_DIR := $(VBOX_LNX_ADD_INST_OUT_DIR)other/ 45 45 VBOX_LNX_ADD_INST_MOD_DIR := $(VBOX_LNX_ADD_INST_OUT_DIR)lib/$(VBOX_LNX_ADD_PACKAGE_NAME)/ 46 46 VBOX_LNX_ADD_INST_KMOD_DIR := $(VBOX_LNX_ADD_INST_OUT_DIR)src/ … … 172 172 $(addprefix $(VBOX_LNX_ADD_INST_LIB_DIR),$(VBOX_LNX_ADD_STRIP_LIB)) \ 173 173 $(addprefix $(VBOX_LNX_ADD_INST_MOD_DIR),$(VBOX_LNX_ADD_STRIP_MOD)) \ 174 $(addprefix $(VBOX_LNX_ADD_INST_ MOD_DIR),$(VBOX_LNX_ADD_MOD)) \174 $(addprefix $(VBOX_LNX_ADD_INST_OTHER_DIR),$(VBOX_LNX_ADD_MOD)) \ 175 175 $(addprefix $(VBOX_LNX_ADD_INST_MOD_DIR),$(VBOX_LNX_ADD_STRIP_OBJ)) \ 176 176 $(addprefix $(VBOX_LNX_ADD_INST_KMOD_DIR),$(VBOX_LNX_ADD_KMOD_FILES)) \ … … 310 310 311 311 INSTALLS += lnx_add_inst-exec 312 lnx_add_inst-exec_INST = $(VBOX_LNX_ADD_INST_ MOD_DIR)312 lnx_add_inst-exec_INST = $(VBOX_LNX_ADD_INST_OTHER_DIR) 313 313 lnx_add_inst-exec_INSTTYPE = stage 314 314 lnx_add_inst-exec_EXEC_SOURCES = \ … … 318 318 319 319 INSTALLS += lnx_add_inst-noexec 320 lnx_add_inst-noexec_INST = $(VBOX_LNX_ADD_INST_ SHARE_DIR)$(VBOX_LNX_ADD_PACKAGE_NAME)/320 lnx_add_inst-noexec_INST = $(VBOX_LNX_ADD_INST_OTHER_DIR) 321 321 lnx_add_inst-noexec_INSTTYPE = stage 322 322 lnx_add_inst-noexec_SOURCES = \ … … 403 403 $(QUIET)tar --dereference --owner 0 --group 0 -cRf $(patsubst %.bz2,%,$@) \ 404 404 -C $(VBOX_LNX_ADD_INST_OUT_DIR) \ 405 LICENSE bin init lib sbin sharesrc \405 LICENSE bin init lib other sbin src \ 406 406 $(if $(filter $(KBUILD_TYPE),debug),debug) 407 407 $(QUIET)pbzip2 $(patsubst %.bz2,%,$@) … … 409 409 $(QUIET)tar --dereference --owner 0 --group 0 --ignore-failed-read -cjRf $@ \ 410 410 -C $(VBOX_LNX_ADD_INST_OUT_DIR) \ 411 LICENSE bin init lib sbin sharesrc \411 LICENSE bin init lib other sbin src \ 412 412 $(if $(filter $(KBUILD_TYPE),debug),debug) 413 413 endif -
trunk/src/VBox/Additions/linux/installer/install.sh.in
r63875 r63889 365 365 link_into_fs "lib" "$lib_path" 366 366 add_symlink "$INSTALLATION_DIR/lib/$PACKAGE" /usr/lib/"$PACKAGE" 367 link_into_fs "share" "/usr/share"368 367 link_into_fs "src" "/usr/src" 369 368 -
trunk/src/VBox/Additions/linux/installer/module-autologon.sh
r48941 r63889 105 105 106 106 # Link to required greeter files into $greeter_dir. 107 add_symlink "$INSTALLATION_DIR/ share/VBoxGuestAdditions/vbox-greeter.desktop" "$greeter_dir/vbox-greeter.desktop"107 add_symlink "$INSTALLATION_DIR/other/vbox-greeter.desktop" "$greeter_dir/vbox-greeter.desktop" 108 108 109 109 # Backup and activate greeter config. -
trunk/src/VBox/Additions/linux/installer/vboxadd-x11.sh
r63870 r63889 32 32 LOG="/var/log/vboxadd-install-x11.log" 33 33 CONFIG_DIR="/var/lib/VBoxGuestAdditions" 34 CONFIG=" config"34 CONFIG="${CONFIG_DIR}/config" 35 35 MODPROBE=/sbin/modprobe 36 36 … … 170 170 setup() 171 171 { 172 if test -r "${CONFIG}"; then 173 . "${CONFIG}" 174 else 175 fail "Configuration file ${CONFIG} not found" 176 fi 177 test -n "$INSTALL_DIR" -a -n "$INSTALL_VER" || 178 fail "Configuration file ${CONFIG} not complete" 172 179 lib_dir="$LIB/VBoxGuestAdditions" 173 share_dir="/usr/share/VBoxGuestAdditions"174 test -x "$lib_dir" -a -x "$ share_dir" ||180 res_dir="${INSTALL_DIR}/other" 181 test -x "$lib_dir" -a -x "$res_dir" || 175 182 fail "Invalid Guest Additions configuration found." 176 183 # By default we want to configure X … … 381 388 { 382 389 rm -f "/usr/share/xserver-xorg/pci/vboxvideo.ids" 383 ln -s "$ share_dir/vboxvideo.ids" /usr/share/xserver-xorg/pci 2>/dev/null390 ln -s "$res_dir/vboxvideo.ids" /usr/share/xserver-xorg/pci 2>/dev/null 384 391 test -n "$automouse" && setupxorgconf="" 385 392 } … … 394 401 generated="$generated `printf "$i\n"`" 395 402 else 396 "$ lib_dir/x11config.sh" $autokeyboard $automouse $nopsaux $vmsvga "$i"403 "$res_dir/x11config.sh" $autokeyboard $automouse $nopsaux $vmsvga "$i" 397 404 fi 398 405 configured="true" … … 407 414 if test -z "$configured"; then 408 415 touch "$main_cfg" 409 "$ lib_dir/x11config.sh" $autokeyboard $automouse $nopsaux $vmsvga --noBak "$main_cfg"416 "$res_dir/x11config.sh" $autokeyboard $automouse $nopsaux $vmsvga --noBak "$main_cfg" 410 417 touch "${nobak_cfg}" 411 418 fi … … 430 437 # open device files 431 438 Fedora\ release\ 7* | Fedora\ release\ 8* ) 432 semodule -i "$ share_dir/vbox_x11.pp" > /dev/null 2>&1439 semodule -i "$res_dir/vbox_x11.pp" > /dev/null 2>&1 433 440 ;; 434 441 # Similar for the accelerated graphics check on Fedora 15 435 442 Fedora\ release\ 15* ) 436 semodule -i "$ share_dir/vbox_accel.pp" > /dev/null 2>&1443 semodule -i "$res_dir/vbox_accel.pp" > /dev/null 2>&1 437 444 ;; 438 445 esac … … 453 460 454 461 # And set up VBoxClient to start when the X session does 455 install_x11_startup_app "$ lib_dir/98vboxadd-xclient" "$share_dir/vboxclient.desktop" VBoxClient VBoxClient-all ||462 install_x11_startup_app "$res_dir/98vboxadd-xclient" "$res_dir/vboxclient.desktop" VBoxClient VBoxClient-all || 456 463 fail "See the log file $LOG for more information." 457 ln -s "$ lib_dir/98vboxadd-xclient" /usr/bin/VBoxClient-all 2>/dev/null464 ln -s "$res_dir/98vboxadd-xclient" /usr/bin/VBoxClient-all 2>/dev/null 458 465 } 459 466 -
trunk/src/VBox/Additions/linux/installer/vboxadd.sh
r63870 r63889 206 206 setup 207 207 $MODPROBE vboxguest >/dev/null 2>&1 || { 208 "$ lib_path/$PACKAGE/vboxadd-x11" cleanup 2>> "${LOG}"208 "${INSTALL_DIR}/init/vboxadd-x11" cleanup 2>> "${LOG}" 209 209 fail "modprobe vboxguest failed" 210 210 } … … 229 229 230 230 # Put the X.Org driver in place. This is harmless if it is not needed. 231 "$ lib_path/$PACKAGE/vboxadd-x11" setup 2>> "${LOG}"231 "${INSTALL_DIR}/init/vboxadd-x11" setup 2>> "${LOG}" 232 232 # Install the guest OpenGL drivers. For now we don't support 233 233 # multi-architecture installations … … 383 383 # Put mount.vboxsf in the right place 384 384 ln -sf "$lib_path/$PACKAGE/mount.vboxsf" /sbin 385 # And an rc file to re-build the kernel modules and re-set-up the X server.386 ln -sf "$lib_path/$PACKAGE/vboxadd" /sbin/rcvboxadd387 385 # And a post-installation script for rebuilding modules when a new kernel 388 386 # is installed. … … 468 466 469 467 # Clean-up X11-related bits 470 "$ lib_path/$PACKAGE/vboxadd-x11" cleanup 2>> "${LOG}"468 "${INSTALL_DIR}/init/vboxadd-x11" cleanup 2>> "${LOG}" 471 469 472 470 # Remove other files 473 471 rm /sbin/mount.vboxsf 2>/dev/null 474 rm /sbin/rcvboxadd 2>/dev/null475 472 rm -f /etc/kernel/postinst.d/vboxadd /etc/kernel/prerm.d/vboxadd 476 473 rmdir -p /etc/kernel/postinst.d /etc/kernel/prerm.d 2>/dev/null
Note:
See TracChangeset
for help on using the changeset viewer.