- Timestamp:
- Aug 10, 2012 7:23:39 AM (12 years ago)
- Location:
- trunk/src/VBox/Installer/darwin
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/darwin/Makefile.kmk
r42730 r42742 64 64 VBOX_PACKAGEMAKER := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS)/darwin.x86/packagemaker/v*/PackageMaker.app/Contents/MacOS/PackageMaker)) \ 65 65 /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker) 66 endif 67 68 # The location of the pkgbuild program. 69 ifndef VBOX_PKGBUILD 70 VBOX_PKGBUILD := pkgbuild 71 endif 72 73 # The location of the productbuild program. 74 ifndef VBOX_PKGBUILD 75 VBOX_PRODUCTBUILD := productbuild 66 76 endif 67 77 … … 371 381 sudo chown -R root:wheel $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/Library/Extensions 372 382 @# Do keyword replacement in the package info and description files. 383 ifdef VBOX_USE_PACKAGEMAKER 373 384 $(SED) \ 374 385 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \ … … 397 408 --output $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.res/English.lproj/ReadMe.html \ 398 409 $(VBOX_PATH_DI_SRC)/VBoxKEXTs/ReadMe.html 410 else 411 $(SED) \ 412 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \ 413 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \ 414 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \ 415 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \ 416 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \ 417 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \ 418 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \ 419 --output $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.desc/PkgBuildComponent.plist \ 420 $(VBOX_PATH_DI_SRC)/VBoxKEXTs/PkgBuildComponent.plist 421 endif 399 422 @# Copy the resources. 400 423 $(INSTALL) -m 0755 $(VBOX_PATH_DI_SRC)/VBoxKEXTs/InstallationCheck $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.res/ 401 424 $(INSTALL) -m 0755 $(VBOX_PATH_DI_SRC)/VBoxKEXTs/postflight $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.res/ 425 ifdef VBOX_USE_PACKAGEMAKER 402 426 $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES), \ 403 427 $(MKDIR) -p \ … … 422 446 ) 423 447 $(INSTALL) -m 0644 $(VBOX_PATH_DI_SRC)/VBoxKEXTs/English.lproj/InstallationCheck.strings $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.res/English.lproj/ 448 endif 424 449 @# Build the package. 450 ifdef VBOX_USE_PACKAGEMAKER 425 451 $(VBOX_PACKAGEMAKER) -build -v \ 426 452 -p $@ \ … … 429 455 -i $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.desc/Info.plist \ 430 456 -d $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.desc/Description.plist 457 else 458 $(VBOX_PKGBUILD) \ 459 --root $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.root/Library/Extensions/ \ 460 --component-plist $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.desc/PkgBuildComponent.plist \ 461 --script $(VBOX_PATH_PACK_TMP)/VBoxKEXTs.pkg.res \ 462 --identifier org.virtualbox.pkg.vboxkexts \ 463 --version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \ 464 --install-location /Library/Extensions/ \ 465 --ownership preserve \ 466 $@ 467 endif 431 468 @# Cleanup 432 469 sudo rm -Rf \ … … 474 511 sudo chown -R root:wheel $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.root/Library/StartupItems 475 512 @# Do keyword replacement in the package info and description files. 513 ifdef VBOX_USE_PACKAGEMAKER 476 514 $(SED) \ 477 515 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \ … … 494 532 --output $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.desc/Description.plist \ 495 533 $(VBOX_PATH_DI_SRC)/VBoxStartupItems/Description.plist 534 endif 496 535 @# Copy the resources. 536 ifdef VBOX_USE_PACKAGEMAKER 497 537 $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES), \ 498 538 $(MKDIR) -p \ … … 509 549 $(VBOX_BRAND_$(f)_VBOXSTARTUPITEMS_DESCRIPTION_PLIST)$(NLTAB) \ 510 550 ) 551 endif 511 552 @# Build the package. 553 ifdef VBOX_USE_PACKAGEMAKER 512 554 $(VBOX_PACKAGEMAKER) -build -v \ 513 555 -p $@ \ … … 516 558 -i $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.desc/Info.plist \ 517 559 -d $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.desc/Description.plist 560 else 561 $(VBOX_PKGBUILD) \ 562 --root $(VBOX_PATH_PACK_TMP)/VBoxStartupItems.pkg.root/Library/StartupItems/ \ 563 --identifier org.virtualbox.pkg.vboxstartupitems \ 564 --version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \ 565 --install-location /Library/StartupItems/ \ 566 --ownership preserve \ 567 $@ 568 endif 518 569 @# Cleanup 519 570 sudo rm -Rf \ … … 952 1003 endif 953 1004 @# Do keyword replacement in the package info and description files. 1005 ifdef VBOX_USE_PACKAGEMAKER 954 1006 $(SED) \ 955 1007 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \ … … 972 1024 --output $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.desc/Description.plist \ 973 1025 $(VBOX_PATH_DI_SRC)/VirtualBox/Description.plist 1026 else 1027 $(SED) \ 1028 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \ 1029 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \ 1030 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \ 1031 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \ 1032 -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \ 1033 -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \ 1034 -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \ 1035 --output $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.desc/PkgBuildComponent.plist \ 1036 $(VBOX_PATH_DI_SRC)/VirtualBox/PkgBuildComponent.plist 1037 endif 974 1038 @# Copy the resources. 1039 ifdef VBOX_USE_PACKAGEMAKER 975 1040 $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES) \ 976 1041 ,$(MKDIR) -p \ … … 987 1052 $(VBOX_BRAND_$(f)_VIRTUALBOX_DESCRIPTION_PLIST)$(NLTAB) \ 988 1053 ) 1054 endif 989 1055 $(INSTALL) -m 0755 $(VBOX_PATH_DI_SRC)/VirtualBox/postflight $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res/ 990 1056 @# Build the package. 1057 ifdef VBOX_USE_PACKAGEMAKER 991 1058 $(VBOX_PACKAGEMAKER) -build -v \ 992 1059 -p $@ \ … … 995 1062 -i $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.desc/Info.plist \ 996 1063 -d $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.desc/Description.plist 1064 else 1065 $(VBOX_PKGBUILD) \ 1066 --root $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/ \ 1067 --component-plist $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.desc/PkgBuildComponent.plist \ 1068 --script $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res \ 1069 --identifier org.virtualbox.pkg.virtualbox \ 1070 --version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \ 1071 --install-location /Applications/ \ 1072 --ownership preserve \ 1073 $@ 1074 endif 997 1075 @# Cleanup 998 1076 sudo rm -Rf \ … … 1048 1126 sudo chown -R root:wheel $(VBOX_PATH_PACK_TMP)/VirtualBoxCLI.pkg.root/usr 1049 1127 @# Do keyword replacement in the package info and description files. 1128 ifdef VBOX_USE_PACKAGEMAKER 1050 1129 $(SED) \ 1051 1130 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \ … … 1068 1147 --output $(VBOX_PATH_PACK_TMP)/VirtualBoxCLI.pkg.desc/Description.plist \ 1069 1148 $(VBOX_PATH_DI_SRC)/VirtualBoxCLI/Description.plist 1149 endif 1070 1150 @# Copy the resources. 1151 ifdef VBOX_USE_PACKAGEMAKER 1071 1152 $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES) \ 1072 1153 ,$(MKDIR) -p \ … … 1083 1164 $(VBOX_BRAND_$(f)_VIRTUALBOXCLI_DESCRIPTION_PLIST)$(NLTAB) \ 1084 1165 ) 1166 endif 1085 1167 @# Build the package. 1168 ifdef VBOX_USE_PACKAGEMAKER 1086 1169 $(VBOX_PACKAGEMAKER) -build -v \ 1087 1170 -p $@ \ … … 1090 1173 -i $(VBOX_PATH_PACK_TMP)/VirtualBoxCLI.pkg.desc/Info.plist \ 1091 1174 -d $(VBOX_PATH_PACK_TMP)/VirtualBoxCLI.pkg.desc/Description.plist 1175 else 1176 $(VBOX_PKGBUILD) \ 1177 --root $(VBOX_PATH_PACK_TMP)/VirtualBoxCLI.pkg.root/usr/bin \ 1178 --identifier org.virtualbox.pkg.virtualboxcli \ 1179 --version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \ 1180 --install-location /usr/bin \ 1181 --ownership preserve \ 1182 $@ 1183 endif 1092 1184 @# Cleanup 1093 1185 sudo rm -Rf \ -
trunk/src/VBox/Installer/darwin/VirtualBox_mpkg/Info.plist
r31655 r42742 10 10 <key>IFMinorVersion</key> <integer>@VBOX_VERSION_MINOR@</integer> 11 11 <key>IFPkgFormatVersion</key> <real>0.10000000149011612</real> 12 <key>IFPkgFlagComponentDirectory</key> <string>./Contents/Packages</string> 12 <key>IFPkgFlagComponentDirectory</key> <string>./Contents/Packages/</string> 13 <key>IFPkgFlagRootVolumeOnly</key> <true/> 14 <key>IFPkgFlagFollowLinks</key> <false/> 13 15 <key>IFPkgFlagPackageList</key> 14 16 <array>
Note:
See TracChangeset
for help on using the changeset viewer.