Changeset 87098 in vbox for trunk/src/VBox/Installer/solaris
- Timestamp:
- Dec 16, 2020 11:56:58 PM (4 years ago)
- Location:
- trunk/src/VBox/Installer/solaris
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/Makefile.kmk
r87039 r87098 67 67 $(VBOX_PATH_SI_SCRATCH)/$(PKG_FILENAME).pkg \ 68 68 $(PATH_STAGE_BIN)/$(PKG_FILENAME).tar.gz \ 69 $( VBOX_PATH_SI_SCRATCH)/$(PKG_FILENAME).p5p \69 $(PATH_STAGE_BIN)/$(PKG_FILENAME).p5p \ 70 70 $(PATH_STAGE_BIN)/VirtualBoxDebug.tar.bz2 \ 71 71 $(VBOX_PATH_SI_SCRATCH)/dist-copy.ts … … 213 213 SOLARIS_INSTALLER_FILES = \ 214 214 vbox.space 215 216 ## @def SOLARIS_INSTALLER_LICENSE 217 # List of files that are copied directly from INST_BIN to VBOX_PATH_SI_SCRATCH_PKG (/). 218 # LICENSE is needed by IPS packaging only. 219 SOLARIS_FILE_LIST_VARS += SOLARIS_INSTALLER_LICENSE 220 SOLARIS_INSTALLER_LICENSE.SUBDIRS := no 221 SOLARIS_INSTALLER_LICENSE.STRIP := no 222 SOLARIS_INSTALLER_LICENSE.MODE := 0644 223 SOLARIS_INSTALLER_LICENSE.SRC := $(PATH_STAGE_BIN) 224 SOLARIS_INSTALLER_LICENSE.DST := $(VBOX_PATH_SI_SCRATCH_PKG) 225 SOLARIS_INSTALLER_LICENSE = \ 226 LICENSE 215 227 216 228 ## @def SOLARIS_DRIVER_BINS … … 419 431 VBox.sh \ 420 432 pkginstall.sh \ 421 $(if $(VBOX_WITH_PYTHON),vboxshell.py,) \422 433 smf-vboxballoonctrl.sh \ 423 434 smf-vboxautostart.sh \ … … 559 570 $(VBOX_SI_DEP_ON_MAKEFILE) \ 560 571 | $$(dir $$@) 561 $(call MSG_L1,C reating $(PKG_FILENAME).pkg: Copying files)572 $(call MSG_L1,Copying files to package staging area) 562 573 # Start with a clean slate, don't want to pick up random garbage. 563 574 $(RM) -Rf -- "$(VBOX_PATH_SI_SCRATCH_PKG)/" … … 606 617 $(if-expr defined(VBOX_WITH_ADDITIONS_PACKING) \ 607 618 ,$(INSTALL) -m 0644 $(PATH_STAGE_BIN)/additions/VBoxGuestAdditions.iso $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/,) 608 $(LN_SYMLINK) -f ./pkginstall.sh 609 $(SED) 619 $(LN_SYMLINK) -f ./pkginstall.sh $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/ipsinstall.sh 620 $(SED) -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,)/" \ 610 621 --output $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/vboxconfig.sh \ 611 622 $(VBOX_PATH_SOL_INST_SRC)/vboxconfig.sh 612 623 $(CHMOD) 0755 $(VBOX_PATH_SOL_INST_SRC)/vboxconfig.sh 613 $(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/autoresponse 624 $(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/autoresponse 625 $(if-expr defined(VBOX_WITH_PYTHON) \ 626 ,$(SED) -e "s@^#!.*@#!/usr/bin/python2@" \ 627 --output $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/vboxshell.py \ 628 $(PATH_STAGE_BIN)/vboxshell.py,) 614 629 615 630 # VirtualBox: Arch specific files. … … 633 648 634 649 $(if-expr defined(VBOX_WITH_EFIFW_PACKING) \ 635 ,$(LN_SYMLINK) ../VBoxEFI32.fd ../VBoxEFI64.fd 650 ,$(LN_SYMLINK) ../VBoxEFI32.fd ../VBoxEFI64.fd $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/$(VBOX_SI_ARCH)/,) 636 651 637 652 # Links to /usr/bin. … … 640 655 641 656 # Desktop stuff in /usr/share/applications/. 642 $(SED) 657 $(SED) -e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+" \ 643 658 -e "s+@VBOX_DOC_PATH@+/opt/VirtualBox+" \ 644 659 --output $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/applications/virtualbox.desktop \ … … 647 662 648 663 # Desktop stuff in /usr/share/mime/packages/ (S10 cannot deal with icon information in virtualbox.xml). 649 $(SED) 664 $(SED) -e '/<icon/d' \ 650 665 --output $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/mime/packages/virtualbox.xml \ 651 666 $(VBOX_PATH_INST_COMMON_SRC)/virtualbox.xml … … 653 668 654 669 # Desktop stuff in /usr/share/application-registry. 655 $(SED) 670 $(SED) -e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+" \ 656 671 --output $(VBOX_PATH_SI_SCRATCH_PKG)/usr/share/application-registry/virtualbox.applications \ 657 672 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.applications.in … … 665 680 666 681 # Files related to package creation. 667 $(SED) 682 $(SED) -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \ 668 683 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \ 669 684 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \ … … 673 688 --output $(VBOX_PATH_SI_SCRATCH_PKG)/vbox.pkginfo \ 674 689 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo 675 $(SED) 690 $(SED) -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \ 676 691 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \ 677 692 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \ … … 732 747 # Creates the IPS style installer package. 733 748 # 734 solaris-package-ips:: $( VBOX_PATH_SI_SCRATCH)/$(PKG_FILENAME).p5p735 $( VBOX_PATH_SI_SCRATCH)/$(PKG_FILENAME).p5p: \749 solaris-package-ips:: $(PATH_STAGE_BIN)/$(PKG_FILENAME).p5p 750 $(PATH_STAGE_BIN)/$(PKG_FILENAME).p5p: \ 736 751 $(VBOX_PATH_SI_SCRATCH)/dist-copy.ts \ 737 752 $(VBOX_SI_DEP_ON_MAKEFILE) \ -
trunk/src/VBox/Installer/solaris/makepackage.sh
r87038 r87098 66 66 VBOX_PKGNAME=SUNWvbox 67 67 fi 68 # need GNU grep because Solaris egrep does not support word matching69 VBOX_ GGREP=/usr/gnu/bin/grep68 # any egrep should do the job, the one from /usr/xpg4/bin isn't required 69 VBOX_EGREP=/usr/bin/egrep 70 70 # need dynamic regex support which isn't available in S11 /usr/bin/awk 71 71 VBOX_AWK=/usr/xpg4/bin/awk 72 73 # check for GNU grep we use which might not ship with all Solaris74 if [ ! -f "$VBOX_GGREP" ] && [ ! -h "$VBOX_GGREP" ]; then75 echo "## GNU grep not found in $VBOX_GGREP."76 exit 177 fi78 72 79 73 # bail out on non-zero exit status … … 139 133 rm -f "$1/$2" 140 134 pkgrecv -a -s "$1/vbox-repo" -d "$1/$2" -m latest "$3" 141 #rm -rf "$1/vbox-repo"135 rm -rf "$1/vbox-repo" 142 136 } 143 137 … … 168 162 cd "$1" 169 163 # Exclude directories to not cause install-time conflicts with existing system directories 170 find . ! -type d | "$VBOX_ GGREP" -v -wE 'prototype|makepackage\.sh|vbox\.pkginfo|postinstall\.sh|checkinstall\.sh|preremove\.sh|vbox\.space|vbox-ips.mog|virtualbox\.p5m.*|vbox-repo' | LC_COLLATE=C sort | pkgproto >> "$PACKAGE_SPEC"164 find . ! -type d | "$VBOX_EGREP" -v '^\./(LICENSE|prototype|makepackage\.sh|vbox\.pkginfo|postinstall\.sh|checkinstall\.sh|preremove\.sh|vbox\.space|vbox-ips.mog|virtualbox\.p5m.*)$' | LC_COLLATE=C sort | pkgproto >> "$PACKAGE_SPEC" 171 165 cd - 172 166 "$VBOX_AWK" 'NF == 3 && $1 == "s" && $2 == "none" { $3="/"$3 } { print }' "$PACKAGE_SPEC" > "$PACKAGE_SPEC.tmp" … … 178 172 # Include opt/VirtualBox and subdirectories as we want uninstall to clean up directory structure. 179 173 # Include var/svc for manifest class action script does not create them. 180 find . -type d | "$VBOX_ GGREP" -E'opt/VirtualBox|var/svc/manifest/application/virtualbox' | LC_COLLATE=C sort | pkgproto >> "$PACKAGE_SPEC"174 find . -type d | "$VBOX_EGREP" 'opt/VirtualBox|var/svc/manifest/application/virtualbox' | LC_COLLATE=C sort | pkgproto >> "$PACKAGE_SPEC" 181 175 cd - 182 176 "$VBOX_AWK" 'NF == 6 && $1 == "d" && $2 == "none" { $3="/"$3 } { print }' "$PACKAGE_SPEC" > "$PACKAGE_SPEC.tmp" -
trunk/src/VBox/Installer/solaris/vbox-ips.mog
r87045 r87098 7 7 set name=variant.opensolaris.zone value=global value=nonglobal 8 8 set name=info.classification value=org.opensolaris.category.2008:System/Virtualization 9 license LICENSE license="GPLv2 (virtualbox)" 10 # The data-xkb was renamed to xkeyboard-config in S11.4, so adjust this when 11 # we have moved our builds away from S11.3. 12 depend fmri=pkg:/x11/keyboard/data-xkb type=require 13 depend fmri=pkg:/system/font/xorg/xorg-core type=require 14 depend fmri=pkg:/system/font/truetype/dejavu type=require 9 15 10 16 # Drop system directories to not have conflicting permissions … … 54 60 <transform dir file path=var/svc/manifest/.*$ -> set group sys> 55 61 <transform file path=var/svc/manifest/.*\.xml$ -> default restart_fmri svc:/system/manifest-import:default> 56 57 # todo:58 # resolve dependencies properly for python59 <transform file path=opt/VirtualBox/vboxshell\.py$ -> drop>
Note:
See TracChangeset
for help on using the changeset viewer.