Changeset 48928 in vbox for trunk/src/VBox/Installer/darwin
- Timestamp:
- Oct 7, 2013 4:13:23 PM (11 years ago)
- Location:
- trunk/src/VBox/Installer/darwin
- Files:
-
- 1 added
- 1 deleted
- 5 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/darwin/DiskImage/VirtualBox_Uninstall.tool
r48924 r48928 58 58 test -d /Library/Receipts/VBoxStartupItems.pkg/ && my_directories+=("/Library/Receipts/VBoxStartupItems.pkg/") 59 59 60 test -d "/Library/Application Support/VirtualBox/LaunchDaemons/" && my_directories+=("/Library/Application Support/VirtualBox/LaunchDaemons/") 60 61 test -d "/Library/Application Support/VirtualBox/VBoxDrv.kext/" && my_directories+=("/Library/Application Support/VirtualBox/VBoxDrv.kext/") 61 62 test -d "/Library/Application Support/VirtualBox/VBoxUSB.kext/" && my_directories+=("/Library/Application Support/VirtualBox/VBoxUSB.kext/") … … 82 83 test -f /usr/bin/vbox-img && my_files+=("/usr/bin/vbox-img") 83 84 test -d /Library/Receipts/VirtualBoxCLI.pkg/ && my_directories+=("/Library/Receipts/VirtualBoxCLI.pkg/") 85 test -f /Library/LaunchDaemons/org.virtualbox.startup.plist && my_files+=("/Library/LaunchDaemons/org.virtualbox.startup.plist") 84 86 85 87 test -d /Applications/VirtualBox.app/ && my_directories+=("/Applications/VirtualBox.app/") -
trunk/src/VBox/Installer/darwin/Makefile.kmk
r48926 r48928 166 166 # 167 167 $(VBOX_PATH_PACK_TMP)/DiskImage/VirtualBox.pkg: \ 168 $(VBOX_PATH_PACK_TMP)/Packages/VBoxStartupItems.pkg \169 168 $(VBOX_PATH_PACK_TMP)/Packages/VBoxKEXTs.pkg \ 170 169 $(VBOX_PATH_PACK_TMP)/Packages/VirtualBoxCLI.pkg \ … … 272 271 $(MKDIR) -p -m 0755 \ 273 272 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root \ 273 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/LaunchDaemons \ 274 274 $(foreach kext,$(VBOX_DI_KEXTS), \ 275 275 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/$(kext).kext \ 276 276 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/$(kext).kext/Contents \ 277 277 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/$(kext).kext/Contents/MacOS ) 278 @# Copy the launch daemon bits. 279 $(INSTALL) -m 0755 $(VBOX_PATH_DI_SRC)/VBoxKEXTs/VirtualBoxStartup.sh $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/LaunchDaemons/ 280 $(INSTALL) -m 0644 $(VBOX_PATH_DI_SRC)/VBoxKEXTs/org.virtualbox.startup.plist $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/LaunchDaemons/ 278 281 @# Copy the common files (Info.plist). 279 282 $(foreach kext,$(VBOX_DI_KEXTS), \ … … 331 334 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.desc \ 332 335 $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.res 333 334 335 #336 # The VirtualBox Startupitems.337 #338 $(VBOX_PATH_PACK_TMP)/Packages/VBoxStartupItems.pkg: \339 $$(wildcard $(VBOX_PATH_DI_SRC)/VBoxStartupItems/VirtualBox/* \340 $(VBOX_PATH_DI_SRC)/VBoxStartupItems/VirtualBox/Resources/*.lproj/*) \341 $$(wildcard $(VBOX_PATH_DI_SRC)/VBoxStartupItems/* \342 $(VBOX_PATH_DI_SRC)/VBoxStartupItems/*.lproj/*) \343 $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES), \344 $(VBOX_BRAND_$(f)_VBOXSTARTUPITEMS_DESCRIPTION_PLIST)) \345 $(VBOX_DARWIN_INST_DEP_ON_MAKEFILE)346 $(call MSG_TOOL,pkgbuild,,,$@)347 @# Cleanup any previously failed attempts.348 sudo rm -Rf \349 $@ \350 $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.root \351 $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.desc \352 $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.res353 @# Correct directory permissions are important.354 $(MKDIR) -p \355 $(@D) \356 $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.desc \357 $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.res \358 $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.res/English.lproj359 $(MKDIR) -p -m 0775 $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.root/Library360 $(MKDIR) -p -m 0755 \361 $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.root/Library/StartupItems \362 $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.root/Library/StartupItems/VirtualBox \363 $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.root/Library/StartupItems/VirtualBox/Resources \364 $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.root/Library/StartupItems/VirtualBox/Resources/English.lproj365 @# Copy the files.366 $(INSTALL) -m 0644 $(VBOX_PATH_DI_SRC)/VBoxStartupItems/VirtualBox/StartupParameters.plist $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.root/Library/StartupItems/VirtualBox/367 $(INSTALL) -m 0755 $(VBOX_PATH_DI_SRC)/VBoxStartupItems/VirtualBox/VirtualBox $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.root/Library/StartupItems/VirtualBox/368 $(INSTALL) -m 0644 $(VBOX_PATH_DI_SRC)/VBoxStartupItems/VirtualBox/Resources/English.lproj/Localizable.strings $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.root/Library/StartupItems/VirtualBox/Resources/English.lproj/369 @# Set the correct owners.370 sudo chown root:admin $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.root/Library371 sudo chown -R root:wheel $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.root/Library/StartupItems372 @# Build the package.373 $(VBOX_PKGBUILD) \374 --root $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.root/Library/StartupItems/ \375 --identifier org.virtualbox.pkg.vboxstartupitems \376 --version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \377 --install-location /Library/StartupItems/ \378 --ownership preserve \379 $(if $(VBOX_MACOSX_INSTALLER_SIGN),--sign "$(VBOX_MACOSX_INSTALLER_SIGN)",) \380 $@381 @# Cleanup382 sudo chown -R "$(shell whoami)" \383 $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.root/Library384 sudo rm -Rf \385 $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.root \386 $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.desc \387 $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.res388 336 389 337 … … 949 897 VBoxKEXTs.pkg: $(VBOX_PATH_PACK_TMP)/Packages/VBoxKEXTs.pkg 950 898 VirtualBoxCLI.pkg: $(VBOX_PATH_PACK_TMP)/Packages/VirtualBoxCLI.pkg 951 VBoxStartupItems.pkg: $(VBOX_PATH_PACK_TMP)/Packages/VBoxStartupItems.pkg952 899 VirtualBox.pkg: $(VBOX_PATH_PACK_TMP)/Packages/VirtualBox.pkg 953 900 VirtualBox.mpkg: $(VBOX_PATH_PACK_TMP)/DiskImage/VirtualBox.pkg -
trunk/src/VBox/Installer/darwin/VBoxKEXTs/VirtualBoxStartup.sh
-
Property svn:keywords
set to
Author Date Id Revision
r48924 r48928 18 18 # 19 19 20 . /etc/rc.common 20 if false; then 21 . /etc/rc.common 22 else 23 # Fake the startup item functions we're using. 24 25 ConsoleMessage() 26 { 27 if [ "$1" != "-f" ]; then 28 echo "$@" 29 else 30 shift 31 echo "Fatal error: $@" 32 exit 1; 33 fi 34 } 35 36 RunService() 37 { 38 case "$1" in 39 "start") 40 StartService 41 exit $?; 42 ;; 43 "stop") 44 StopService 45 exit $?; 46 ;; 47 "restart") 48 RestartService 49 exit $?; 50 ;; 51 "launchd") 52 if RestartService; then 53 while true; 54 do 55 sleep 3600 56 done 57 fi 58 exit $?; 59 ;; 60 **) 61 echo "Error: Unknown action '$1'" 62 exit 1; 63 esac 64 } 65 fi 21 66 22 67 -
Property svn:keywords
set to
-
trunk/src/VBox/Installer/darwin/VBoxKEXTs/postflight
r48924 r48928 16 16 # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 17 17 # 18 19 # 20 # Make sure the old startup items are gone. 21 # 22 if [ -d /Library/StartupItems/VirtualBox/ ]; then 23 rm -vf "/Library/StartupItems/VirtualBox/StartupParameters.plist" 24 rm -vf "/Library/StartupItems/VirtualBox/VirtualBox" 25 rm -vf "/Library/StartupItems/VirtualBox/Resources/English.lproj/Localizable.strings" 26 test -d "/Library/StartupItems/VirtualBox/Resources/English.lproj/" && rmdir "/Library/StartupItems/VirtualBox/Resources/English.lproj/" 27 test -d "/Library/StartupItems/VirtualBox/Resources/" && rmdir "/Library/StartupItems/VirtualBox/Resources/" 28 test -d "/Library/StartupItems/VirtualBox/" && rmdir "/Library/StartupItems/VirtualBox/" 29 fi 30 31 # 32 # Install the launchd script. 33 # 34 rm -vf "/Library/LaunchDaemons/org.virtualbox.startup.plist" 35 set -e 36 ln -s "../Application Support/VirtualBox/LaunchDaemons/org.virtualbox.startup.plist" \ 37 "/Library/LaunchDaemons/org.virtualbox.startup.plist" 38 set +e 18 39 19 40 # -
trunk/src/VBox/Installer/darwin/VirtualBox_mpkg/Localizable.strings
r43008 r48928 2 2 3 3 'choiceVBoxKEXTs_title' = '@VBOX_PRODUCT@ Kernel Extensions'; 4 'choiceVBoxKEXTs_msg' = 'Installs the @VBOX_PRODUCT@ Kernel Extensions into /Library/Extensions.'; 5 6 'choiceVBoxStartup_title' = '@VBOX_PRODUCT@ Startup Items'; 7 'choiceVBoxStartup_msg' = 'Installs the @VBOX_PRODUCT@ Startup Items to /Library/StartupItems/VirtualBox.'; 4 'choiceVBoxKEXTs_msg' = 'Installs the @VBOX_PRODUCT@ Kernel Extensions into /Library/Application Support/VirtualBox; 8 5 9 6 'choiceVBox_title' = '@VBOX_PRODUCT@'; -
trunk/src/VBox/Installer/darwin/VirtualBox_mpkg/distribution.dist
r47894 r48928 78 78 <choices-outline> 79 79 <line choice="choiceVBoxKEXTs"></line> 80 <line choice="choiceVBoxStartup"></line>81 80 <line choice="choiceVBox"></line> 82 81 <line choice="choiceVBoxCLI"></line> … … 84 83 <choice id="choiceVBoxKEXTs" title="choiceVBoxKEXTs_title" description="choiceVBoxKEXTs_msg" start_selected="true" start_enabled="false" start_visible="true"> 85 84 <pkg-ref id="org.virtualbox.pkg.vboxkexts"></pkg-ref> 86 </choice>87 <choice id="choiceVBoxStartup" title="choiceVBoxStartup_title" description="choiceVBoxStartup_msg" start_selected="true" start_enabled="false" start_visible="true">88 <pkg-ref id="org.virtualbox.pkg.vboxstartupitems"></pkg-ref>89 85 </choice> 90 86 <choice id="choiceVBox" title="choiceVBox_title" description="choiceVBox_msg" start_selected="true" start_enabled="false" start_visible="true"> … … 95 91 </choice> 96 92 <pkg-ref id="org.virtualbox.pkg.vboxkexts" auth="Root">file:./Contents/Packages/VBoxKEXTs.pkg</pkg-ref> 97 <pkg-ref id="org.virtualbox.pkg.vboxstartupitems" auth="Root">file:./Contents/Packages/VBoxStartupItems.pkg</pkg-ref>98 93 <pkg-ref id="org.virtualbox.pkg.virtualbox" auth="Root">file:./Contents/Packages/VirtualBox.pkg</pkg-ref> 99 94 <pkg-ref id="org.virtualbox.pkg.virtualboxcli" auth="Root">file:./Contents/Packages/VirtualBoxCLI.pkg</pkg-ref>
Note:
See TracChangeset
for help on using the changeset viewer.