Changeset 41698 in vbox for trunk/src/VBox/Additions/solaris
- Timestamp:
- Jun 14, 2012 9:54:38 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 78506
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/Installer/makepackage.sh
r39235 r41698 31 31 exit 1 32 32 fi 33 ostype=`uname -s` 34 if test "$ostype" != "Linux" && test "$ostype" != "SunOS" ; then 35 echo "Linux/Solaris not detected." 36 exit 1 37 fi 33 38 34 39 VBOX_BASEPKG_DIR=$1 … … 39 44 VBOX_PKGNAME=SUNWvboxguest 40 45 VBOX_AWK=/usr/bin/awk 41 VBOX_GGREP=/usr/sfw/bin/ggrep 46 case "$ostype" in 47 "SunOS") 48 VBOX_GGREP=/usr/sfw/bin/ggrep 49 VBOX_SOL_PKG_DEV=/var/spool/pkg 50 ;; 51 *) 52 VBOX_GGREP=`which grep` 53 VBOX_SOL_PKG_DEV=$4 54 ;; 55 esac 42 56 VBOX_AWK=/usr/bin/awk 43 57 … … 118 132 119 133 # create the package instance 120 pkgmk - p $VBOXPKG_TIMESTAMP -o -r .134 pkgmk -d $VBOX_SOL_PKG_DEV -p $VBOXPKG_TIMESTAMP -o -r . 121 135 122 136 # translate into package datastream 123 pkgtrans -s -o /var/spool/pkg`pwd`/$VBOX_PKGFILENAME "$VBOX_PKGNAME"137 pkgtrans -s -o "$VBOX_SOL_PKG_DEV" `pwd`/$VBOX_PKGFILENAME "$VBOX_PKGNAME" 124 138 125 rm -rf " /var/spool/pkg/$VBOX_PKGNAME"139 rm -rf "$VBOX_SOL_PKG_DEV/$VBOX_PKGNAME" 126 140 exit $? 127 141
Note:
See TracChangeset
for help on using the changeset viewer.