VirtualBox

Changeset 25733 in vbox for trunk/src/VBox/Additions/solaris


Ignore:
Timestamp:
Jan 11, 2010 4:49:14 PM (15 years ago)
Author:
vboxsync
Message:

Solaris/Additions: full root packaging, fixes.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/solaris/Installer/makepackage.sh

    r25712 r25733  
    7575find . ! -type d | $VBOX_GGREP -v -E 'prototype|makepackage.sh|vboxguest.pkginfo|postinstall.sh|preremove.sh|vboxguest.space|vboxguest.depend|vboxguest.copyright' | pkgproto >> prototype
    7676
    77 # Include only opt/VirtualBoxAdditions and subdirectories as we want uninstall to clean up directory structure as well
     77# Include opt/VirtualBoxAdditions and subdirectories as we want uninstall to clean up directory structure as well
    7878find . -type d | $VBOX_GGREP -E 'opt/VirtualBoxAdditions' | pkgproto >> prototype
     79
     80# Include /etc/fs/vboxfs (as we need to create the subdirectory)
     81find . -type d | $VBOX_GGREP -E 'etc/fs/vboxfs' | pkgproto >> prototype
     82
    7983
    8084# don't grok for the class files
  • trunk/src/VBox/Additions/solaris/Installer/postinstall.sh

    r25712 r25733  
    7373
    7474solaris64dir="amd64"
     75solaris32dir="i386"
    7576vboxadditions_path="$BASEDIR/opt/VirtualBoxAdditions"
     77vboxadditions32_path=$vboxadditions_path/$solaris32dir
    7678vboxadditions64_path=$vboxadditions_path/$solaris64dir
    7779
     
    9092
    9193# uncompress if necessary
    92 if test -f "$vboxadditions_path/VBoxClient.Z" || test -f "$vboxadditions64_path/VBoxClient.Z"; then
     94if test -f "$vboxadditions32_path/VBoxClient.Z" || test -f "$vboxadditions64_path/VBoxClient.Z"; then
    9395    echo "Uncompressing files..."
    94     if test -f "$vboxadditions_path/VBoxClient.Z"; then
    95         uncompress_files "$vboxadditions_path"
     96    if test -f "$vboxadditions32_path/VBoxClient.Z"; then
     97        uncompress_files "$vboxadditions32_path"
    9698    fi
    9799    if test -f "$vboxadditions64_path/VBoxClient.Z"; then
     
    185187
    186188        # Determine destination paths (snv_130 and above use "/usr/lib/xorg", older use "/usr/X11/lib"
    187         vboxmouse_dest_base="/usr/lib/xorg/modules/input"
    188         if test ! -d $vboxmouse_dest_base; then
    189             vboxmouse_dest_base="/usr/X11/lib/modules/input"
     189        vboxmouse32_dest_base="/usr/lib/xorg/modules/input"
     190        if test ! -d $vboxmouse32_dest_base; then
     191            vboxmouse32_dest_base="/usr/X11/lib/modules/input"
    190192        fi
    191         vboxvideo_dest_base="/usr/lib/xorg/modules/drivers"
    192         if test ! -d $vboxvideo_dest_base; then
    193             vboxvideo_dest_base="/usr/X11/lib/modules/drivers"
     193        vboxvideo32_dest_base="/usr/lib/xorg/modules/drivers"
     194        if test ! -d $vboxvideo32_dest_base; then
     195            vboxvideo32_dest_base="/usr/X11/lib/modules/drivers"
    194196        fi
    195197
     
    198200
    199201        # Make sure destination path exists
    200         if test ! -d $vboxmouse_dest_base || test ! -d $vboxvideo_dest_base || test ! -d $vboxmouse64_dest_base || test ! -d $vboxvideo64_dest_base; then
     202        if test ! -d $vboxmouse32_dest_base || test ! -d $vboxvideo32_dest_base || test ! -d $vboxmouse64_dest_base || test ! -d $vboxvideo64_dest_base; then
    201203            echo "*** Missing destination paths for mouse or video modules. Aborting."
    202204            echo "*** Failed to install the VirtualBox X Window System drivers."
     
    206208        else
    207209            # 32-bit x11 drivers
    208             if test -f "$vboxadditions_path/$vboxmouse_src"; then
    209                 vboxmouse_dest="$vboxmouse_dest_base/vboxmouse_drv.so"
    210                 vboxvideo_dest="$vboxvideo_dest_base/vboxvideo_drv.so"
     210            if test -f "$vboxadditions32_path/$vboxmouse_src"; then
     211                vboxmouse_dest="$vboxmouse32_dest_base/vboxmouse_drv.so"
     212                vboxvideo_dest="$vboxvideo32_dest_base/vboxvideo_drv.so"
    211213                /usr/sbin/installf -c none $PKGINST "$vboxmouse_dest" f
    212214                /usr/sbin/installf -c none $PKGINST "$vboxvideo_dest" f
    213                 cp "$vboxadditions_path/$vboxmouse_src" "$vboxmouse_dest"
    214                 cp "$vboxadditions_path/$vboxvideo_src" "$vboxvideo_dest"
     215                cp "$vboxadditions32_path/$vboxmouse_src" "$vboxmouse_dest"
     216                cp "$vboxadditions32_path/$vboxvideo_src" "$vboxvideo_dest"
    215217
    216218                # Removing redundent names from pkg and files from disk
    217                 /usr/sbin/removef $PKGINST $vboxadditions_path/vboxmouse_drv_* 1>/dev/null
    218                 /usr/sbin/removef $PKGINST $vboxadditions_path/vboxvideo_drv_* 1>/dev/null
    219                 rm -f $vboxadditions_path/vboxmouse_drv_*
    220                 rm -f $vboxadditions_path/vboxvideo_drv_*
     219                /usr/sbin/removef $PKGINST $vboxadditions32_path/vboxmouse_drv_* 1>/dev/null
     220                /usr/sbin/removef $PKGINST $vboxadditions32_path/vboxvideo_drv_* 1>/dev/null
     221                rm -f $vboxadditions32_path/vboxmouse_drv_*
     222                rm -f $vboxadditions32_path/vboxvideo_drv_*
    221223            fi
    222224
     
    305307# 64-bit shared folder module
    306308if test -f "$vboxadditions64_path/$vboxfsmod"; then
     309    echo "Installing 64-bit shared folders module..."
    307310    /usr/sbin/installf -c none $PKGINST "/usr/kernel/fs/$solaris64dir/vboxfs" f
    308311    mv -f $vboxadditions64_path/$vboxfsmod /usr/kernel/fs/$solaris64dir/vboxfs
     
    313316
    314317# 32-bit shared folder module
    315 if test -f "$vboxadditions_path/$vboxfsmod"; then
     318if test -f "$vboxadditions32_path/$vboxfsmod"; then
     319    echo "Installing 32-bit shared folders module..."
    316320    /usr/sbin/installf -c none $PKGINST "/usr/kernel/fs/vboxfs" f
    317     mv -f $vboxadditions_path/$vboxfsmod /usr/kernel/fs/vboxfs
    318     /usr/sbin/removef $PKGINST $vboxadditions_path/$vboxfsmod 1>/dev/null
    319     /usr/sbin/removef $PKGINST $vboxadditions_path/$vboxfsunused 1>/dev/null
    320     rm -f $vboxadditions_path/$vboxfsunused
     321    mv -f $vboxadditions32_path/$vboxfsmod /usr/kernel/fs/vboxfs
     322    /usr/sbin/removef $PKGINST $vboxadditions32_path/$vboxfsmod 1>/dev/null
     323    /usr/sbin/removef $PKGINST $vboxadditions32_path/$vboxfsunused 1>/dev/null
     324    rm -f $vboxadditions32_path/$vboxfsunused
    321325fi
    322326
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