VirtualBox

Changeset 9159 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 27, 2008 1:53:14 PM (17 years ago)
Author:
vboxsync
Message:

Solaris VBI installer: pack it in the same .tar.gz and removed duplicate readme.

Location:
trunk/src/VBox/Installer/solaris
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/Makefile.kmk

    r9156 r9159  
    4747# Targets
    4848INSTALLS         = solaris-doc
    49 PACKING          = $(PATH_BIN)/$(PKG_FILENAME).tar.gz $(PATH_BIN)/$(VBIPKG_FILENAME).tar.gz $(PATH_BIN)/$(DBG_ARCHIVE)
     49PACKING          = $(PATH_BIN)/$(PKG_FILENAME).tar.gz $(PATH_BIN)/$(DBG_ARCHIVE)
    5050OTHER_CLEAN      = $(addprefix $(SOLARIS_INST_DIR)/,\
    5151        vbox.pkginfo vbox.copyright vbox.space vbox.pkgresponse \
     
    201201                $(PATH_ROOT)/doc/ReadMe-Solaris.txt \
    202202                Makefile.kmk \
     203                $(if $(VBOX_WITH_SOLARIS_VBI),$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg,) \
    203204                $(if $(VBOX_OSE),,$(PATH_ROOT)/doc/License.txt) \
    204205                $(if $(VBOX_OSE),,$(PATH_BIN)/LICENSE) \
     
    314315                --output $(SOLARIS_INST_DIR)/ReadMe.txt \
    315316                $(PATH_ROOT)/doc/ReadMe-Solaris.txt
     317        $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(INSTALL) -m 0644 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg      $(SOLARIS_INST_DIR)/$(VBIPKG_FILENAME).pkg,)
    316318        $(call MSG_L1,Creating install package: $(PKG_FILENAME).tar.gz)
    317         $(QUIET)$(SOLARIS_INST_DIR)/makepackage.sh $(SOLARIS_INST_DIR) $(PKG_FILENAME) $(KBUILD_TARGET_ARCH)
     319        $(QUIET)$(SOLARIS_INST_DIR)/makepackage.sh $(SOLARIS_INST_DIR) $(PKG_FILENAME) $(KBUILD_TARGET_ARCH) $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,)
    318320        $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_INST_DIR)/$(PKG_FILENAME).tar.gz $(PATH_BIN)
    319321        @# Clean up files emitted as side-effect or result of packing
     
    322324
    323325
    324 $(PATH_BIN)/$(VBIPKG_FILENAME).tar.gz: \
     326$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg: \
    325327                $(VBOX_VERSION_STAMP) \
    326328                vbi/vboxkern.pkginfo \
    327329                vbi/makepackage.sh \
    328                 $(PATH_ROOT)/doc/ReadMe-Solaris-vbi.txt \
    329330                Makefile.kmk \
    330331                $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi \
     
    338339        $(QUIET)$(SED) \
    339340                -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
    340                 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
    341                 --output $(SOLARIS_VBI_DIR)/ReadMe.txt \
    342                 $(PATH_ROOT)/doc/ReadMe-Solaris-vbi.txt
    343         $(QUIET)$(SED) \
    344                 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
    345341                -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
    346342                -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
     
    348344                $(PATH_CURRENT)/vbi/vboxkern.pkginfo
    349345        $(QUIET)$(INSTALL) -m 0755 $(PATH_CURRENT)/vbi/makepackage.sh                                           $(SOLARIS_VBI_DIR)/makepackage.sh
    350         $(call MSG_L1,Creating install package: $(VBIPKG_FILENAME).tar.gz)
     346        $(call MSG_L1,Creating install package: $(VBIPKG_FILENAME).pkg)
    351347        $(QUIET)$(SOLARIS_VBI_DIR)/makepackage.sh $(SOLARIS_VBI_DIR) $(VBIPKG_FILENAME)
    352         $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).tar.gz $(PATH_BIN)
    353         @# Clean up files emitted as side-effect or result of packing
    354         $(QUIET)$(RM) -f $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).tar.gz
    355         $(QUIET)$(RM) -f $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg
    356348
    357349
  • trunk/src/VBox/Installer/solaris/makepackage.sh

    r9157 r9159  
    9292pkgtrans -s -o /var/spool/pkg "`pwd`/$VBOX_PKGFILE" "$VBOX_PKGNAME"
    9393
    94 $VBOX_GTAR zcvf "$VBOX_ARCHIVE" "$VBOX_PKGFILE" autoresponse ReadMe.txt
     94# $4 if exist would contain the path to the VBI package to include in the .tar.gz
     95if test -f "$4"; then
     96    $VBOX_GTAR zcvf "$VBOX_ARCHIVE" "$VBOX_PKGFILE" $4 autoresponse ReadMe.txt
     97else
     98    $VBOX_GTAR zcvf "$VBOX_ARCHIVE" "$VBOX_PKGFILE" autoresponse ReadMe.txt
     99fi
    95100
    96101echo "## Packaging and transfer completed successfully!"
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette