Changeset 12144 in vbox for trunk/src/VBox/Additions/solaris/Installer
- Timestamp:
- Sep 5, 2008 4:18:36 PM (16 years ago)
- Location:
- trunk/src/VBox/Additions/solaris/Installer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/Installer/makepackage.sh
r12134 r12144 22 22 # makespackage.sh $(PATH_TARGET)/install packagename $(KBUILD_TARGET_ARCH) 23 23 24 if test -z "$ 2"; then25 echo "Usage: $0 installdir packagename "24 if test -z "$3"; then 25 echo "Usage: $0 installdir packagename x86|amd64" 26 26 exit 1 27 27 fi … … 65 65 filelist_fixup prototype '$2 == "none"' '$3 = "opt/VirtualBoxAdditions/"$3"="$3' 66 66 67 # 32-bit kernel module 68 filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/vboxguest=vboxguest"' '$3 = "platform/i86pc/kernel/drv/vboxguest=vboxguest"; $6="sys"' 69 70 # 64-bit kernel module 71 filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/amd64/vboxguest=amd64/vboxguest"' '$3 = "platform/i86pc/kernel/drv/amd64/vboxguest=amd64/vboxguest"; $6="sys"' 67 # install kernel module in the right place 68 if test "3" = "x86"; then 69 filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/vboxguest=vboxguest"' '$3 = "platform/i86pc/kernel/drv/vboxguest=vboxguest"; $6="sys"' 70 else 71 filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/vboxguest=vboxguest"' '$3 = "platform/i86pc/kernel/drv/amd64/vboxguest=vboxguest"; $6="sys"' 72 fi 72 73 73 74 # kernel module config file -
trunk/src/VBox/Additions/solaris/Installer/postinstall.sh
r12134 r12144 22 22 sync 23 23 vboxadditions_path="/opt/VirtualBoxAdditions" 24 vboxadditions64_path="/opt/VirtualBoxAdditions/amd64"25 solaris64dir="amd64"26 24 27 25 # vboxguest.sh would've been installed, we just need to call it. 28 26 $vboxadditions_path/vboxguest.sh restart silentunload 29 27 30 # Set permissions 28 # get what ISA the guest is running 29 cputype=`isainfo -k` 30 isadir="" 31 if test "$cputype" = "amd64"; then 32 isadir="amd64" 33 fi 34 35 36 # suid permissions for timesync 31 37 chmod 04755 $vboxadditions_path/VBoxService 32 chmod a+x $vboxadditions_path/VBox.sh33 38 chmod a+x $vboxadditions_path/VBoxClient 34 39 chmod a+x $vboxadditions_path/VBoxControl 35 40 chmod a+x $vboxadditions_path/VBoxRandR.sh 36 chmod 04755 $vboxadditions64_path/VBoxService37 chmod a+x $vboxadditions64_path/VBoxClient38 chmod a+x $vboxadditions64_path/VBoxControl39 41 40 42 # create links 41 43 echo "Creating links..." 42 44 /usr/sbin/installf -c none $PKGINST /dev/vboxguest=../devices/pci@0,0/pci80ee,cafe@4:vboxguest s 43 /usr/sbin/installf -c none $PKGINST /usr/bin/VBoxClient=$vboxadditions_path/VBox .shs44 /usr/sbin/installf -c none $PKGINST /usr/bin/VBoxService=$vboxadditions_path/VBox .shs45 /usr/sbin/installf -c none $PKGINST /usr/bin/VBoxControl=$vboxadditions_path/VBox .shs45 /usr/sbin/installf -c none $PKGINST /usr/bin/VBoxClient=$vboxadditions_path/VBoxClient s 46 /usr/sbin/installf -c none $PKGINST /usr/bin/VBoxService=$vboxadditions_path/VBoxService s 47 /usr/sbin/installf -c none $PKGINST /usr/bin/VBoxControl=$vboxadditions_path/VBoxControl s 46 48 /usr/sbin/installf -c none $PKGINST /usr/bin/VBoxRandR=$vboxadditions_path/VBoxRandR.sh s 47 49 … … 55 57 case "$xorgversion" in 56 58 1.3.* ) 57 vboxmouse_src=" vboxmouse_drv_71.so"58 vboxvideo_src=" vboxvideo_drv_13.so"59 vboxmouse_src="$vboxadditions_path/vboxmouse_drv_71.so" 60 vboxvideo_src="$vboxadditions_path/vboxvideo_drv_13.so" 59 61 ;; 60 62 1.4.* ) 61 vboxmouse_src=" vboxmouse_drv_14.so"62 vboxvideo_src=" vboxvideo_drv_14.so"63 vboxmouse_src="$vboxadditions_path/vboxmouse_drv_14.so" 64 vboxvideo_src="$vboxadditions_path/vboxvideo_drv_14.so" 63 65 ;; 64 66 7.1.* | *7.2.* ) 65 vboxmouse_src=" vboxmouse_drv_71.so"66 vboxvideo_src=" vboxvideo_drv_71.so"67 vboxmouse_src="$vboxadditions_path/vboxmouse_drv_71.so" 68 vboxvideo_src="$vboxadditions_path/vboxvideo_drv_71.so" 67 69 ;; 68 70 6.9.* | 7.0.* ) 69 vboxmouse_src=" vboxmouse_drv_70.so"70 vboxvideo_src=" vboxvideo_drv_70.so"71 vboxmouse_src="$vboxadditions_path/vboxmouse_drv_70.so" 72 vboxvideo_src="$vboxadditions_path/vboxvideo_drv_70.so" 71 73 ;; 72 74 esac … … 82 84 echo "Configuring Xorg..." 83 85 84 # 32-bit 85 vboxmouse_dest="/usr/X11/lib/modules/input/vboxmouse_drv.so" 86 vboxvideo_dest="/usr/X11/lib/modules/drivers/vboxvideo_drv.so" 86 vboxmouse_dest="/usr/X11/lib/modules/input/$isadir/vboxmouse_drv.so" 87 vboxvideo_dest="/usr/X11/lib/modules/drivers/$isadir/vboxvideo_drv.so" 87 88 /usr/sbin/installf -c none $PKGINST "$vboxmouse_dest" f 88 89 /usr/sbin/installf -c none $PKGINST "$vboxvideo_dest" f 89 cp "$vboxadditions_path/$vboxmouse_src" "$vboxmouse_dest" 90 cp "$vboxadditions_path/$vboxvideo_src" "$vboxvideo_dest" 91 92 # 64-bit 93 vboxmouse_dest="/usr/X11/lib/modules/input/$solaris64dir/vboxmouse_drv.so" 94 vboxvideo_dest="/usr/X11/lib/modules/drivers/$solaris64dir/vboxvideo_drv.so" 95 /usr/sbin/installf -c none $PKGINST "$vboxmouse_dest" f 96 /usr/sbin/installf -c none $PKGINST "$vboxvideo_dest" f 97 cp "$vboxadditions64_path/$vboxmouse_src" "$vboxmouse_dest" 98 cp "$vboxadditions64_path/$vboxvideo_src" "$vboxvideo_dest" 90 cp "$vboxmouse_src" "$vboxmouse_dest" 91 cp "$vboxvideo_src" "$vboxvideo_dest" 99 92 100 93 # Removing redudant files 101 # 32-bit102 94 /usr/sbin/removef $PKGINST $vboxadditions_path/vboxmouse_drv_* 1>/dev/null 2>/dev/null 103 95 /usr/sbin/removef $PKGINST $vboxadditions_path/vboxvideo_drv_* 1>/dev/null 2>/dev/null 104 96 rm -f $vboxadditions_path/vboxmouse_drv_* 105 97 rm -f $vboxadditions_path/vboxvideo_drv_* 106 107 # 64-bit108 /usr/sbin/removef $PKGINST $vboxadditions64_path/vboxmouse_drv_* 1>/dev/null 2>/dev/null109 /usr/sbin/removef $PKGINST $vboxadditions64_path/vboxvideo_drv_* 1>/dev/null 2>/dev/null110 rm -f $vboxadditions64_path/vboxmouse_drv_*111 rm -f $vboxadditions64_path/vboxvideo_drv_*112 98 113 99 /usr/sbin/removef -f $PKGINST
Note:
See TracChangeset
for help on using the changeset viewer.