Changeset 54676 in vbox for trunk/src/VBox/Installer/darwin
- Timestamp:
- Mar 7, 2015 12:16:35 AM (10 years ago)
- Location:
- trunk/src/VBox/Installer/darwin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/darwin/Makefile.kmk
r54675 r54676 640 640 ,$(INSTALL) -m 0644 $(VBOX_PATH_DIST)/VirtualBox.app/Contents/$(dylib) $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(dylib)$(NLTAB)) 641 641 @# Copy the other binaries. 642 $(foreach otherbin, $(VBOX_DI_VBAPP_OTHER_UNIVERSAL_BINS) \642 $(foreach otherbin, $(VBOX_DI_VBAPP_OTHER_UNIVERSAL_BINS) $(VBOX_DI_VBAPP_OTHER_BINS) \ 643 643 ,$(INSTALL) -m 0644 $(VBOX_PATH_DIST)/VirtualBox.app/Contents/$(otherbin) $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(otherbin)$(NLTAB)) 644 $(foreach otherbin, $(VBOX_DI_VBAPP_OTHER_BINS) \645 ,$(INSTALL) -m 0644 $(VBOX_PATH_DIST)/VirtualBox.app/Contents/$(otherbin) $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(otherbin)-$(KBUILD_TARGET_ARCH)$(NLTAB))646 644 @# Create/copy the universal executable binaries. 647 645 $(foreach otherbin, $(VBOX_DI_VBAPP_UNIVERSAL_PROGS) \ … … 649 647 @# Copy the binaries. 650 648 $(foreach prog, $(VBOX_DI_VBAPP_PROGS) \ 651 ,$(INSTALL) -m 0755 $(VBOX_PATH_DIST)/VirtualBox.app/Contents/$(prog) $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(prog) -$(KBUILD_TARGET_ARCH)$(NLTAB))649 ,$(INSTALL) -m 0755 $(VBOX_PATH_DIST)/VirtualBox.app/Contents/$(prog) $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(prog)$(NLTAB)) 652 650 #ifdef VBOX_WITH_HARDENING - disabled temporarily 653 651 if 1 … … 659 657 $(VBOX_DI_VBAPP_DYLIBS) \ 660 658 $(VBOX_DI_VBAPP_DYLIBS.$(KBUILD_TARGET_ARCH)) \ 661 $( addsuffix -$(KBUILD_TARGET_ARCH), $(VBOX_DI_VBAPP_PROGS)) \659 $(VBOX_DI_VBAPP_PROGS) \ 662 660 ,install_name_tool \ 663 661 $(foreach qtmod, $(VBOX_QT4_MOD_NAMES), \ … … 699 697 , $(NLTAB)$(call VBOX_SIGN_MACHO_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(bin),org.virtualbox.app.macos.$(notdir $(bin))) ) 700 698 ifdef VBOX_NOT_OSX_105 # Still being hacked on, everything needs to be signed that lives in Contents/MacOS, guess we have to MOVE files out. 701 $(foreach other, $(VBOX_DI_VBAPP_OTHER_UNIVERSAL_BINS) \699 $(foreach other, $(VBOX_DI_VBAPP_OTHER_UNIVERSAL_BINS) $(VBOX_DI_VBAPP_OTHER_BINS)\ 702 700 , $(NLTAB)$(call VBOX_SIGN_MACHO_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(other),org.virtualbox.app.macos.$(notdir $(other))) ) 703 $(foreach arch, $(KBUILD_TARGET_ARCH) \704 , $(foreach other, $(VBOX_DI_VBAPP_OTHER_BINS) \705 , $(NLTAB)$(call VBOX_SIGN_MACHO_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(other)-$(arch),org.virtualbox.app.macos.$(notdir $(other))-$(arch)) ) )706 701 $(foreach other, $(filter MacOS/%,$(VBOX_DI_VBAPP_MISC_FILES)) \ 707 702 $(if $(VBOX_WITH_PYTHON),MacOS/vboxshell.py,) \ … … 709 704 , $(NLTAB)$(call VBOX_SIGN_VMM_MOD_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(other),org.virtualbox.app.macos.$(notdir $(other))) ) 710 705 else 711 $(foreach other, $(VBOX_DI_VBAPP_OTHER_UNIVERSAL_BINS) \706 $(foreach other, $(VBOX_DI_VBAPP_OTHER_UNIVERSAL_BINS) $(VBOX_DI_VBAPP_OTHER_BINS) \ 712 707 , $(NLTAB)$(call VBOX_SIGN_VMM_MOD_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(other),org.virtualbox.app.macos.$(notdir $(other))) ) 713 $(foreach arch, $(KBUILD_TARGET_ARCH) \714 , $(foreach other, $(VBOX_DI_VBAPP_OTHER_BINS) \715 , $(NLTAB)$(call VBOX_SIGN_VMM_MOD_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(other)-$(arch),org.virtualbox.app.macos.$(notdir $(other))-$(arch)) ) )716 708 endif 717 $(foreach arch, $(KBUILD_TARGET_ARCH) \ 718 , $(foreach bin, $(if-expr defined(VBOX_NOT_OSX_105),$(filter-out MacOS/VirtualBox,$(VBOX_DI_VBAPP_PROGS)),$(VBOX_DI_VBAPP_PROGS)) \ 719 , \ 720 $(NLTAB)$(MV) -- $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(bin)-$(arch) $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(bin) \ 721 $(NLTAB)$(call VBOX_SIGN_MACHO_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(bin),org.virtualbox.app.macos.$(notdir $(bin))) \ 722 $(NLTAB)$(MV) -- $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(bin) $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(bin)-$(arch) \ 723 )) 709 $(foreach bin, $(if-expr defined(VBOX_NOT_OSX_105),$(filter-out MacOS/VirtualBox,$(VBOX_DI_VBAPP_PROGS)),$(VBOX_DI_VBAPP_PROGS)) \ 710 , $(NLTAB)$(call VBOX_SIGN_MACHO_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(bin),org.virtualbox.app.macos.$(notdir $(bin))) ) 724 711 ifdef VBOX_NOT_OSX_105 # requires codesign+framworks from Lion or later. Snow Leopard codesign says object file format invalid or unsuitable. 725 712 $(call VBOX_SIGN_BUNDLE_FN,$(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app,) … … 733 720 sudo chmod u+s \ 734 721 $(foreach bin,VBoxHeadless VirtualBox VirtualBoxVM VBoxNetAdpCtl VBoxNetDHCP VBoxNetNAT,\ 735 $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/MacOS/$(bin) -$(KBUILD_TARGET_ARCH))722 $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/MacOS/$(bin)) 736 723 endif 737 724 @# Do keyword replacement in the package info and description files. -
trunk/src/VBox/Installer/darwin/VBoxKEXTs/VirtualBoxStartup.sh
r49540 r54676 7 7 8 8 # 9 # Copyright (C) 2007-201 3Oracle Corporation9 # Copyright (C) 2007-2015 Oracle Corporation 10 10 # 11 11 # This file is part of VirtualBox Open Source Edition (OSE), as … … 73 73 74 74 # 75 # Switch the binaries to the right architecture.76 #77 VBOX_ARCH=`uname -m`78 if test "$VBOX_ARCH" = "x86_64"; then79 VBOX_ARCH="amd64"80 else81 VBOX_ARCH="x86"82 fi83 for VBOX_TRG in `ls /Applications/VirtualBox.app/Contents/MacOS/*-${VBOX_ARCH}`;84 do85 VBOX_LINKNAME=`echo "$VBOX_TRG" | sed -e 's|-'"${VBOX_ARCH}"'$||' `86 if test "$VBOX_LINKNAME" != "$VBOX_TRG"; then87 rm -f "$VBOX_LINKNAME"88 if ! /bin/ln -vh "$VBOX_TRG" "$VBOX_LINKNAME"; then89 ConsoleMessage "Error: /bin/ln -vh $VBOX_TRG $VBOX_LINKNAME failed"90 VBOX_RC=191 fi92 else93 ConsoleMessage "Error: Script error VBOX_TRG=$VBOX_TRG"94 VBOX_RC=195 fi96 done97 98 #99 75 # Check that all the directories exist first. 100 76 # -
trunk/src/VBox/Installer/darwin/VirtualBox/postflight
r49540 r54676 1 1 #!/bin/sh 2 # $Id$ 3 ## @file 4 # Post installation script. 5 # 2 6 3 7 # 4 # Copyright (C) 2007-201 0Oracle Corporation8 # Copyright (C) 2007-2015 Oracle Corporation 5 9 # 6 10 # This file is part of VirtualBox Open Source Edition (OSE), as … … 16 20 CPDIR="${CP} -R" 17 21 18 #19 # Select the right architecture.20 #21 MY_ARCH=`uname -m`22 if test "$MY_ARCH" = "x86_64"; then23 MY_ARCH="amd64"24 else25 MY_ARCH="x86"26 fi27 set -e28 for trg in `ls /Applications/VirtualBox.app/Contents/MacOS/*-${MY_ARCH}`;29 do30 linkname=`echo "$trg" | sed -e 's|-'"${MY_ARCH}"'$||' `31 if test "$linkname" = "$trg"; then32 echo "oops: $trg" 1>&233 exit 1;34 fi35 rm -f "$linkname"36 /bin/ln -vh "$trg" "$linkname"37 done38 22 39 23 # … … 104 88 105 89 exit 0; 90
Note:
See TracChangeset
for help on using the changeset viewer.