VirtualBox

Changeset 11358 in vbox for trunk


Ignore:
Timestamp:
Aug 12, 2008 2:13:23 PM (16 years ago)
Author:
vboxsync
Message:

Installer/solaris: Add SMF support for webservice. Also cleaned up makepackage.sh.

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

Legend:

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

    • Property svn:keywords changed from Id to Author Date Id Revision
    r10797 r11358  
    127127        vnic_setup.sh \
    128128        vnic_term.sh \
     129        virtualbox-webservice.xml \
     130        smf-vboxwebsrv.sh \
    129131        vbox.copyright \
    130132        ReadMe.txt
     
    299301        $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $(PATH_BIN)/vboxwebsrv $(SOLARIS_INST_DIR)/vboxwebsrv,)
    300302        $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $(PATH_BIN)/webtest    $(SOLARIS_INST_DIR)/webtest,)
     303        $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0644 $(PATH_CURRENT)/virtualbox-webservice.xml         $(SOLARIS_INST_DIR)/virtualbox-webservice.xml,)
     304        $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0755 $(PATH_CURRENT)/smf-vboxwebsrv.sh                 $(SOLARIS_INST_DIR)/smf-vboxwebsrv.sh,)
    301305        $(QUIET)$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh            $(SOLARIS_INST_DIR)/vnic_setup.sh
    302306        $(QUIET)$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh            $(SOLARIS_INST_DIR)/vnic_term.sh
  • trunk/src/VBox/Installer/solaris/makepackage.sh

    • Property svn:keywords set to Author Date Id Revision
    r9746 r11358  
    5151set -e
    5252
     53# Fixup filelist using awk, the parameters must be in awk syntax
     54# params: filename condition action
     55filelist_fixup()
     56{
     57  "$VBOX_AWK" 'NF == 6 && '"$2"' { '"$3"' } { print }' "$1" > "tmp-$1"
     58  mv -f "tmp-$1" "$1"
     59}
     60
    5361# prepare file list
    5462cd "$1"
     
    6472
    6573# don't grok for the sed class files
    66 $VBOX_AWK 'NF == 6 && $2 == "none" { $5 = "root"; $6 = "bin" } { print }' prototype > prototype2
    67 $VBOX_AWK 'NF == 6 && $2 == "none" { $3 = "opt/VirtualBox/"$3"="$3 } { print }' prototype2 > prototype
     74filelist_fixup prototype '$2 == "none"'                                                                 '$5 = "root"; $6 = "bin"'
     75filelist_fixup prototype '$2 == "none"'                                                                 '$3 = "opt/VirtualBox/"$3"="$3'
    6876
    6977# install the kernel module to the right place.
    7078if test "$3" = "x86"; then
    71     $VBOX_AWK 'NF == 6 && $3 == "opt/VirtualBox/vboxdrv=vboxdrv" { $3 = "platform/i86pc/kernel/drv/vboxdrv=vboxdrv"; $6 = "sys" } { print }' prototype > prototype2
     79    filelist_fixup prototype '$3 == "opt/VirtualBox/vboxdrv=vboxdrv"                                    '$3 = "platform/i86pc/kernel/drv/vboxdrv=vboxdrv"; $6 = "sys"'
    7280else
    73     $VBOX_AWK 'NF == 6 && $3 == "opt/VirtualBox/vboxdrv=vboxdrv" { $3 = "platform/i86pc/kernel/drv/amd64/vboxdrv=vboxdrv"; $6 = "sys" } { print }' prototype > prototype2
     81    filelist_fixup prototype '$3 == "opt/VirtualBox/vboxdrv=vboxdrv"'                                   '$3 = "platform/i86pc/kernel/drv/amd64/vboxdrv=vboxdrv"; $6 = "sys"'
    7482fi
    7583
    76 $VBOX_AWK 'NF == 6 && $3 == "opt/VirtualBox/vboxdrv.conf=vboxdrv.conf" { $3 = "platform/i86pc/kernel/drv/vboxdrv.conf=vboxdrv.conf" } { print }' prototype2 > prototype
     84filelist_fixup prototype '$3 == "opt/VirtualBox/vboxdrv.conf=vboxdrv.conf"'                             '$3 = "platform/i86pc/kernel/drv/vboxdrv.conf=vboxdrv.conf"'
    7785
    7886# desktop links and icons
    79 $VBOX_AWK 'NF == 6 && $3 == "opt/VirtualBox/virtualbox.desktop=virtualbox.desktop" { $3 = "usr/share/applications/virtualbox.desktop=virtualbox.desktop" } { print }' prototype > prototype2
    80 $VBOX_AWK 'NF == 6 && $3 == "opt/VirtualBox/VBox.png=VBox.png" { $3 = "usr/share/pixmaps/VBox.png=VBox.png" } { print }' prototype2 > prototype
     87filelist_fixup prototype '$3 == "opt/VirtualBox/virtualbox.desktop=virtualbox.desktop"'                 '$3 = "usr/share/applications/virtualbox.desktop=virtualbox.desktop"'
     88filelist_fixup prototype '$3 == "opt/VirtualBox/VBox.png=VBox.png"'                                     '$3 = "usr/share/pixmaps/VBox.png=VBox.png"'
    8189
    82 
    83 rm prototype2
     90# webservice SMF manifest
     91filelist_fixup prototype '$3 == "opt/VirtualBox/virtualbox-webservice.xml=virtualbox-webservice.xml"'   '$3 = "var/svc/manifest/application/virtualbox/webservice.xml=virtualbox-webservice.xml'
    8492
    8593# explicitly set timestamp to shutup warning
  • trunk/src/VBox/Installer/solaris/postinstall.sh

    • Property svn:keywords set to Author Date Id Revision
    r10889 r11358  
    5858    fi
    5959fi
     60if test -f /var/svc/manifest/application/virtualbox/webservice.xml; then
     61    /usr/sbin/svccfg import /var/svc/manifest/application/virtualbox/webservice.xml
     62fi
    6063/usr/sbin/removef $PKGINST /opt/VirtualBox/etc/devlink.tab 1>/dev/null
    6164/usr/sbin/removef $PKGINST /opt/VirtualBox/etc 1>/dev/null
  • trunk/src/VBox/Installer/solaris/preremove.sh

    • Property svn:keywords set to Author Date Id Revision
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