Changeset 76818 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Jan 14, 2019 4:17:07 PM (6 years ago)
- Location:
- trunk/src/VBox/Installer
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/darwin/Makefile.kmk
r76614 r76818 407 407 endif 408 408 ifdef VBOX_WITH_HARDENING 409 ifndef VBOX_GUI_WITH_SHARED_LIBRARY 410 VBOX_DI_VBAPP_DYLIBS += \ 411 MacOS/VirtualBox.dylib \ 412 MacOS/VBoxNetDHCP.dylib \ 413 MacOS/VBoxNetNAT.dylib \ 414 MacOS/VBoxHeadless.dylib 415 else 416 VBOX_DI_VBAPP_DYLIBS += \ 417 MacOS/VBoxGlobal.dylib \ 418 MacOS/VirtualBoxVM.dylib \ 419 MacOS/VBoxNetDHCP.dylib \ 420 MacOS/VBoxNetNAT.dylib \ 421 MacOS/VBoxHeadless.dylib 422 endif 409 VBOX_DI_VBAPP_DYLIBS += \ 410 MacOS/VBoxGlobal.dylib \ 411 MacOS/VirtualBoxVM.dylib \ 412 MacOS/VBoxNetDHCP.dylib \ 413 MacOS/VBoxNetNAT.dylib \ 414 MacOS/VBoxHeadless.dylib 423 415 endif 424 416 ifdef VBOX_WITH_HDDPARALLELS_INSTALL … … 786 778 sudo chmod u+s $(VBOX_PATH_VBOX_APP_TMP)/Contents/MacOS/VBoxNetAdpCtl 787 779 ifdef VBOX_WITH_HARDENING 788 ifndef VBOX_GUI_WITH_SHARED_LIBRARY789 sudo chmod u+s \790 $(foreach bin,VBoxHeadless VirtualBox VirtualBoxVM VBoxNetDHCP VBoxNetNAT,\791 $(VBOX_PATH_VBOX_APP_TMP)/Contents/MacOS/$(bin))792 else793 780 sudo chmod u+s \ 794 781 $(foreach bin,VBoxHeadless VirtualBoxVM VBoxNetDHCP VBoxNetNAT,\ 795 782 $(VBOX_PATH_VBOX_APP_TMP)/Contents/MacOS/$(bin)) 796 endif797 783 endif 798 784 @# Do keyword replacement in the package info and description files. … … 809 795 @# Copy the resources. 810 796 $(INSTALL) -m 0755 $(VBOX_PATH_DI_SRC)/VirtualBox/preflight $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res/ 811 if defined(VBOX_WITH_HARDENING) && !defined(VBOX_GUI_WITH_SHARED_LIBRARY)797 ifdef VBOX_WITH_HARDENING 812 798 $(INSTALL) -m 0755 $(VBOX_PATH_DI_SRC)/VirtualBox/postflight $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res/ 813 799 else 814 $(SED) $(if-expr !defined(VBOX_WITH_HARDENING),-e '/WITH_HARDENING/d',) \ 815 $(if-expr !defined(VBOX_GUI_WITH_SHARED_LIBRARY),-e '/WITH_SHARED_LIBRARY/d',-e '/WITHOUT_SHARED_LIBRARY/d') \ 816 --output $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res/postflight \ 817 $(VBOX_PATH_DI_SRC)/VirtualBox/postflight 800 $(SED) -s '/WITH_HARDENING/d' -o $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res/postflight $(VBOX_PATH_DI_SRC)/VirtualBox/postflight 818 801 $(CHMOD) 0755 $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res/postflight 819 802 endif … … 874 857 $(APPEND) -tn $(VBOX_PATH_PACK_TMP)/VirtualBoxCLI.pkg.root/usr/local/bin/VirtualBox \ 875 858 '#!/bin/bash' 'exec /Applications/VirtualBox.app/Contents/MacOS/VirtualBox "$$@"' 876 ifdef VBOX_GUI_WITH_SHARED_LIBRARY877 859 $(APPEND) -tn $(VBOX_PATH_PACK_TMP)/VirtualBoxCLI.pkg.root/usr/local/bin/VirtualBoxVM \ 878 860 '#!/bin/bash' 'exec /Applications/VirtualBox.app/Contents/MacOS/VirtualBoxVM "$$@"' 879 endif880 861 $(APPEND) -tn $(VBOX_PATH_PACK_TMP)/VirtualBoxCLI.pkg.root/usr/local/bin/VBoxManage \ 881 862 '#!/bin/bash' 'exec /Applications/VirtualBox.app/Contents/MacOS/VBoxManage "$$@"' -
trunk/src/VBox/Installer/darwin/VirtualBox/postflight
r76553 r76818 92 92 SET_UID_BINARIES="VBoxNetAdpCtl" 93 93 SET_UID_BINARIES="${SET_UID_BINARIES} VBoxHeadless VirtualBoxVM VBoxNetDHCP VBoxNetNAT" # WITH_HARDENING 94 SET_UID_BINARIES="${SET_UID_BINARIES} VirtualBox" # WITH_HARDENING WITHOUT_SHARED_LIBRARY95 94 for bin in ${SET_UID_BINARIES}; do 96 95 chmod u+s "/Applications/VirtualBox.app/Contents/MacOS/${bin}" -
trunk/src/VBox/Installer/linux/Makefile.kmk
r76553 r76818 248 248 VBoxKeyboard.so \ 249 249 VirtualBox \ 250 $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VirtualBoxVM)\251 $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VBoxGlobal.so)\250 VirtualBoxVM \ 251 VBoxGlobal.so \ 252 252 $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so DbgPlugInDiggers.so) 253 253 ifdef VBOX_WITH_HARDENING 254 254 VBOX_LNX_STRIP_BIN += \ 255 $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VirtualBoxVM.so,VirtualBox.so)255 VirtualBoxVM.so 256 256 endif 257 257 VBOX_LNX_NO_STRIP += \ -
trunk/src/VBox/Installer/solaris/Makefile.kmk
r76553 r76818 294 294 SOLARIS_STRIP_EXES = \ 295 295 VBoxZoneAccess \ 296 $(if $(VBOX_WITH_QTGUI),VirtualBox $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VirtualBoxVM),) \296 $(if $(VBOX_WITH_QTGUI),VirtualBox VirtualBoxVM,) \ 297 297 VBoxManage \ 298 298 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \ … … 373 373 VBoxNetNAT.so \ 374 374 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL.so,) \ 375 $(if $(VBOX_WITH_QTGUI), $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VirtualBoxVM.so VBoxGlobal.so,VirtualBox.so),)375 $(if $(VBOX_WITH_QTGUI),VirtualBoxVM.so VBoxGlobal.so,) 376 376 endif 377 377 … … 408 408 # Naturally no subdirectories. 409 409 SOLARIS_USRBIN_LINKS = \ 410 $(if $(VBOX_WITH_QTGUI),VirtualBox $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VirtualBoxVM),) \410 $(if $(VBOX_WITH_QTGUI),VirtualBox VirtualBoxVM,) \ 411 411 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless,) \ 412 412 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \ … … 678 678 $(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(VBOX_PATH_SI_SCRATCH_PKG)/makepackage.sh \ 679 679 $(if-expr defined(VBOX_WITH_HARDENING),--hardened,) \ 680 $(if-expr defined(VBOX_GUI_WITH_SHARED_LIBRARY),--guisharedlib,) \681 680 $(VBOX_PATH_SI_SCRATCH_PKG) \ 682 681 $(PKG_FILENAME) \ -
trunk/src/VBox/Installer/solaris/makepackage.sh
r76553 r76818 24 24 # Parse options. 25 25 HARDENED="" 26 GUISHAREDLIB=""27 26 while test $# -ge 1; 28 27 do … … 30 29 --hardened) 31 30 HARDENED=1 32 ;;33 --guisharedlib)34 GUISHAREDLIB=135 31 ;; 36 32 *) … … 190 186 if test -n "$HARDENED"; then 191 187 $VBOX_AWK 'NF == 6 \ 192 && ( ( $3 == "opt/VirtualBox/amd64/VirtualBox" \ 193 && "'$GUISHAREDLIB'" == "") \ 194 || $3 == "opt/VirtualBox/amd64/VirtualBoxVM" \ 188 && ( $3 == "opt/VirtualBox/amd64/VirtualBoxVM" \ 195 189 || $3 == "opt/VirtualBox/amd64/VBoxHeadless" \ 196 190 || $3 == "opt/VirtualBox/amd64/VBoxSDL" \ -
trunk/src/VBox/Installer/win/Makefile.kmk
r76553 r76818 610 610 -E 'VBOX_WITH_SDS=$(if $(VBOX_WITH_SDS),yes,no)' \ 611 611 -E 'VBOX_WITH_UNATTENDED=$(if $(VBOX_WITH_UNATTENDED),yes,no)' \ 612 -E 'VBOX_GUI_WITH_SHARED_LIBRARY=$(if $(VBOX_GUI_WITH_SHARED_LIBRARY),yes,no)' \613 612 -E 'BUILD_TYPE=$(KBUILD_TYPE)' \ 614 613 -E 'BUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH)' \ -
trunk/src/VBox/Installer/win/VBoxMergeApp.wxi
r74770 r76818 322 322 Source="$(env.PATH_OUT)\bin\VirtualBox.exe"> 323 323 </File> 324 <?if $(env.VBOX_GUI_WITH_SHARED_LIBRARY) = "yes" ?> 325 <File Id="file_VirtualBoxVM.exe" Name="VirtualBoxVM.exe" 326 Source="$(env.PATH_OUT)\bin\VirtualBoxVM.exe"> 327 </File> 328 <File Id="file_VBoxGlobal.dll" Name="VBoxGlobal.dll" 329 Source="$(env.PATH_OUT)\bin\VBoxGlobal.dll"> 330 </File> 331 <?endif ?> 324 <File Id="file_VirtualBoxVM.exe" Name="VirtualBoxVM.exe" 325 Source="$(env.PATH_OUT)\bin\VirtualBoxVM.exe"> 326 </File> 327 <File Id="file_VBoxGlobal.dll" Name="VBoxGlobal.dll" 328 Source="$(env.PATH_OUT)\bin\VBoxGlobal.dll"> 329 </File> 332 330 <?if $(env.VBOX_WITH_HARDENING) = "yes" ?> 333 <?if $(env.VBOX_GUI_WITH_SHARED_LIBRARY) = "yes" ?> 334 <File Id="file_VirtualBoxVM.dll" Name="VirtualBoxVM.dll" 335 Source="$(env.PATH_OUT)\bin\VirtualBoxVM.dll"> 336 </File> 337 <?else ?> 338 <File Id="file_VirtualBox.dll" Name="VirtualBox.dll" 339 Source="$(env.PATH_OUT)\bin\VirtualBox.dll"> 340 </File> 341 <?endif ?> 331 <File Id="file_VirtualBoxVM.dll" Name="VirtualBoxVM.dll" 332 Source="$(env.PATH_OUT)\bin\VirtualBoxVM.dll"> 333 </File> 342 334 <?endif ?> 343 335 <File Id="file_Qt5Core$(var.VBOX_QT_INFIX).dll" Name="Qt5Core$(var.VBOX_QT_INFIX).dll"
Note:
See TracChangeset
for help on using the changeset viewer.