diff -ur a/sqlncli-11.0.1790.0/install.sh b/sqlncli-11.0.1790.0/install.sh --- a/sqlncli-11.0.1790.0/install.sh 2012-02-27 20:39:00.000000000 +0100 +++ b/sqlncli-11.0.1790.0/install.sh 2013-02-03 12:10:54.467994484 +0100 @@ -15,9 +15,9 @@ # Requirements listed here req_os="Linux"; req_proc="x86_64"; -req_dm_ver="2.3.0"; +req_dm_ver="2.3.1"; dm_name="unixODBC $req_dm_ver"; -req_libs=( glibc e2fsprogs krb5-libs openssl ) +req_libs=( ) #language of the install lang_id="en_US"; @@ -107,7 +107,7 @@ # directories to hold the file categories bin_dir=""; lib_dir=""; -sup_dir="/opt/microsoft/$driver_short_name/$driver_version"; +sup_dir="${DESTDIR}opt/microsoft/$driver_short_name/$driver_version"; rll_dir=""; doc_dir=""; inc_dir=""; @@ -119,7 +119,7 @@ license_accepted=0 # Log file in the temp directory -tmp=${TMPDIR-/tmp} +tmp=${TEMPDIR} tmp="$tmp/$driver_short_name.$RANDOM.$RANDOM.$RANDOM" (umask 077 && mkdir $tmp) || { echo "Could not create temporary directory for the log file." 2>&1 @@ -206,7 +206,7 @@ function check_for_Linux_x86_64 () { log "Verifying on a 64 bit Linux compatible OS" - local proc=$(uname -p); + local proc=$(uname -m); if [ $proc != $req_proc ]; then log "This installation of the $driver_name may only be installed" log "on a 64 bit Linux compatible operating system." @@ -499,7 +499,7 @@ fi # install the driver using odbcinst - odbcinst -i -d -f "$template_ini" 2>&1 >> $log_file + echo odbcinst -i -d -f "$template_ini" 2>&1 >> $log_file if [ $? -ne 0 ]; then log "Failed installing driver $driver_name with $dm_name" @@ -716,16 +716,16 @@ if [ $verified -eq 0 ] || [ $force -eq 1 ]; then if [ "$lib_dir" == "" ]; then - lib_dir="/opt/microsoft/$driver_short_name/lib64" + lib_dir="${DESTDIR}opt/microsoft/$driver_short_name/lib64" fi - bin_dir="/opt/microsoft/$driver_short_name/bin" + bin_dir="${DESTDIR}opt/microsoft/$driver_short_name/bin" if [ "$bin_sym_dir" == "" ]; then - bin_sym_dir="/usr/bin"; + bin_sym_dir="${DESTDIR}usr/bin"; fi - sup_dir="/opt/microsoft/$driver_short_name/$driver_version" + sup_dir="${DESTDIR}opt/microsoft/$driver_short_name/$driver_version" mkdir -p $sup_dir if [ -d $sup_dir ]; then log "$sup_dir exists"