Changeset 76818 in vbox for trunk/src/VBox/Installer/darwin
- Timestamp:
- Jan 14, 2019 4:17:07 PM (6 years ago)
- Location:
- trunk/src/VBox/Installer/darwin
- Files:
-
- 2 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}"
Note:
See TracChangeset
for help on using the changeset viewer.