Changeset 38998 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Oct 14, 2011 2:59:01 PM (13 years ago)
- Location:
- trunk/src/VBox/Installer/solaris
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/Makefile.kmk
r38831 r38998 545 545 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo \ 546 546 $(VBOX_PATH_SOL_INST_SRC)/vbox.space \ 547 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend \548 547 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \ 549 548 $(PATH_ROOT)/src/VBox/Installer/common/virtualbox.desktop.in \ … … 671 670 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_BASEINST_DIR)/autoresponse 672 671 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.space $(SOLARIS_BASEINST_DIR)/vbox.space 673 @# Warning!! If we add NON-PYTHON dependencies to vbox.depend, remove the VBOX_WITH_PYTHON setting674 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend $(SOLARIS_BASEINST_DIR)/vbox.depend,)675 672 $(QUIET)$(SED) \ 676 673 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \ -
trunk/src/VBox/Installer/solaris/checkinstall.sh
r32702 r38998 30 30 { 31 31 errorprint "Please close all VirtualBox processes and re-run this installer." 32 errorprint "Note: It can take up to 10 seconds for all VirtualBox & related processes to close."33 32 exit 1 34 33 } 35 34 35 checkdep_svr4() 36 { 37 if test -z "$1"; then 38 errorprint "Missing argument to checkdep_svr4" 39 return 1 40 fi 41 $BIN_PKGINFO $BASEDIR_OPT "$1" >/dev/null 2>&1 42 if test $? -eq 0; then 43 return 0 44 fi 45 PKG_MISSING_SVR4="$PKG_MISSING_SVR4 $1" 46 return 1 47 } 48 49 checkdep_ips() 50 { 51 if test -z "$1"; then 52 errorprint "Missing argument to checkdep_svr4" 53 return 1 54 fi 55 # using "list" without "-a" only lists installed pkgs which is what we need 56 $BIN_PKG $BASEDIR_OPT list "$1" >/dev/null 2>&1 57 if test $? -eq 0; then 58 return 0 59 fi 60 PKG_MISSING_IPS="$PKG_MISSING_IPS $1" 61 return 1 62 63 } 64 36 65 # nothing to check for remote install 66 REMOTE_INST=0 37 67 if test "x${PKG_INSTALL_ROOT:=/}" != "x/"; then 68 BASEDIR_OPT="-R \"$PKG_INSTALL_ROOT\"" 69 REMOTE_INST=1 70 fi 71 72 infoprint "Checking package dependencies..." 73 74 PKG_MISSING_IPS="" 75 PKG_MISSING_SVR4="" 76 BIN_PKGINFO=`which pkginfo 2> /dev/null` 77 BIN_PKG=`which pkg 2> /dev/null` 78 79 if test -x "$BIN_PKG"; then 80 checkdep_ips "runtime/python-26" 81 checkdep_ips "system/library/iconv/utf-8" 82 else 83 PKG_MISSING_IPS="runtime/python-26 system/library/iconv/utf-8" 84 fi 85 if test -x "$BIN_PKGINFO"; then 86 checkdep_svr4 "SUNWPython" 87 checkdep_svr4 "SUNWPython-devel" 88 checkdep_svr4 "SUNWuiu8" 89 else 90 PKG_MISSING_SVR4="SUNWPython SUNWPython-devel SUNWuiu8" 91 fi 92 93 if test "$PKG_MISSING_IPS" != "" && test "$PKG_MISSING_SVR4" != ""; then 94 if test ! -x "$BIN_PKG" && test ! -x "$BIN_PKGINFO"; then 95 errorprint "Missing or non-executable binaries: pkg ($BIN_PKG) and pkginfo ($BIN_PKGINFO)." 96 errorprint "Cannot check for dependencies." 97 errorprint "" 98 errorprint "Please install one of the required packaging system." 99 exit 1 100 fi 101 errorprint "Missing packages: " 102 errorprint "IPS : $PKG_MISSING_IPS" 103 errorprint "SVr4: $PKG_MISSING_SVR4" 104 errorprint "" 105 errorprint "Please install either the IPS or SVr4 packages before installing VirtualBox." 106 exit 1 107 else 108 infoprint "Done." 109 fi 110 111 # nothing more to do for remote installs 112 if test "$REMOTE_INST" -eq 1; then 38 113 exit 0 39 114 fi -
trunk/src/VBox/Installer/solaris/makepackage.sh
r37328 r38998 107 107 if test -f "./vbox.copyright"; then 108 108 echo 'i copyright=./vbox.copyright' >> prototype 109 fi110 if test -f "./vbox.depend"; then111 echo 'i depend=./vbox.depend' >> prototype112 109 fi 113 110
Note:
See TracChangeset
for help on using the changeset viewer.