Changeset 25733 in vbox for trunk/src/VBox/Additions/solaris
- Timestamp:
- Jan 11, 2010 4:49:14 PM (15 years ago)
- Location:
- trunk/src/VBox/Additions/solaris/Installer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/Installer/makepackage.sh
r25712 r25733 75 75 find . ! -type d | $VBOX_GGREP -v -E 'prototype|makepackage.sh|vboxguest.pkginfo|postinstall.sh|preremove.sh|vboxguest.space|vboxguest.depend|vboxguest.copyright' | pkgproto >> prototype 76 76 77 # Include o nly opt/VirtualBoxAdditions and subdirectories as we want uninstall to clean up directory structure as well77 # Include opt/VirtualBoxAdditions and subdirectories as we want uninstall to clean up directory structure as well 78 78 find . -type d | $VBOX_GGREP -E 'opt/VirtualBoxAdditions' | pkgproto >> prototype 79 80 # Include /etc/fs/vboxfs (as we need to create the subdirectory) 81 find . -type d | $VBOX_GGREP -E 'etc/fs/vboxfs' | pkgproto >> prototype 82 79 83 80 84 # don't grok for the class files -
trunk/src/VBox/Additions/solaris/Installer/postinstall.sh
r25712 r25733 73 73 74 74 solaris64dir="amd64" 75 solaris32dir="i386" 75 76 vboxadditions_path="$BASEDIR/opt/VirtualBoxAdditions" 77 vboxadditions32_path=$vboxadditions_path/$solaris32dir 76 78 vboxadditions64_path=$vboxadditions_path/$solaris64dir 77 79 … … 90 92 91 93 # uncompress if necessary 92 if test -f "$vboxadditions _path/VBoxClient.Z" || test -f "$vboxadditions64_path/VBoxClient.Z"; then94 if test -f "$vboxadditions32_path/VBoxClient.Z" || test -f "$vboxadditions64_path/VBoxClient.Z"; then 93 95 echo "Uncompressing files..." 94 if test -f "$vboxadditions _path/VBoxClient.Z"; then95 uncompress_files "$vboxadditions _path"96 if test -f "$vboxadditions32_path/VBoxClient.Z"; then 97 uncompress_files "$vboxadditions32_path" 96 98 fi 97 99 if test -f "$vboxadditions64_path/VBoxClient.Z"; then … … 185 187 186 188 # 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; then189 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" 190 192 fi 191 vboxvideo _dest_base="/usr/lib/xorg/modules/drivers"192 if test ! -d $vboxvideo _dest_base; then193 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" 194 196 fi 195 197 … … 198 200 199 201 # 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; then202 if test ! -d $vboxmouse32_dest_base || test ! -d $vboxvideo32_dest_base || test ! -d $vboxmouse64_dest_base || test ! -d $vboxvideo64_dest_base; then 201 203 echo "*** Missing destination paths for mouse or video modules. Aborting." 202 204 echo "*** Failed to install the VirtualBox X Window System drivers." … … 206 208 else 207 209 # 32-bit x11 drivers 208 if test -f "$vboxadditions _path/$vboxmouse_src"; then209 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" 211 213 /usr/sbin/installf -c none $PKGINST "$vboxmouse_dest" f 212 214 /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" 215 217 216 218 # Removing redundent names from pkg and files from disk 217 /usr/sbin/removef $PKGINST $vboxadditions _path/vboxmouse_drv_* 1>/dev/null218 /usr/sbin/removef $PKGINST $vboxadditions _path/vboxvideo_drv_* 1>/dev/null219 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_* 221 223 fi 222 224 … … 305 307 # 64-bit shared folder module 306 308 if test -f "$vboxadditions64_path/$vboxfsmod"; then 309 echo "Installing 64-bit shared folders module..." 307 310 /usr/sbin/installf -c none $PKGINST "/usr/kernel/fs/$solaris64dir/vboxfs" f 308 311 mv -f $vboxadditions64_path/$vboxfsmod /usr/kernel/fs/$solaris64dir/vboxfs … … 313 316 314 317 # 32-bit shared folder module 315 if test -f "$vboxadditions_path/$vboxfsmod"; then 318 if test -f "$vboxadditions32_path/$vboxfsmod"; then 319 echo "Installing 32-bit shared folders module..." 316 320 /usr/sbin/installf -c none $PKGINST "/usr/kernel/fs/vboxfs" f 317 mv -f $vboxadditions _path/$vboxfsmod /usr/kernel/fs/vboxfs318 /usr/sbin/removef $PKGINST $vboxadditions _path/$vboxfsmod 1>/dev/null319 /usr/sbin/removef $PKGINST $vboxadditions _path/$vboxfsunused 1>/dev/null320 rm -f $vboxadditions _path/$vboxfsunused321 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 321 325 fi 322 326
Note:
See TracChangeset
for help on using the changeset viewer.