Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 447288
Collapse All | Expand All

(-)a/sqlncli-11.0.1790.0/install.sh (-10 / +10 lines)
Lines 15-23 Link Here
15
# Requirements listed here
15
# Requirements listed here
16
req_os="Linux";
16
req_os="Linux";
17
req_proc="x86_64";
17
req_proc="x86_64";
18
req_dm_ver="2.3.0";
18
req_dm_ver="2.3.1";
19
dm_name="unixODBC $req_dm_ver";
19
dm_name="unixODBC $req_dm_ver";
20
req_libs=( glibc e2fsprogs krb5-libs openssl )
20
req_libs=(  )
21
21
22
#language of the install
22
#language of the install
23
lang_id="en_US";
23
lang_id="en_US";
Lines 107-113 Link Here
107
# directories to hold the file categories
107
# directories to hold the file categories
108
bin_dir="";
108
bin_dir="";
109
lib_dir="";
109
lib_dir="";
110
sup_dir="/opt/microsoft/$driver_short_name/$driver_version";
110
sup_dir="${DESTDIR}opt/microsoft/$driver_short_name/$driver_version";
111
rll_dir="";
111
rll_dir="";
112
doc_dir="";
112
doc_dir="";
113
inc_dir="";
113
inc_dir="";
Lines 119-125 Link Here
119
license_accepted=0
119
license_accepted=0
120
120
121
# Log file in the temp directory
121
# Log file in the temp directory
122
tmp=${TMPDIR-/tmp}
122
tmp=${TEMPDIR}
123
tmp="$tmp/$driver_short_name.$RANDOM.$RANDOM.$RANDOM"
123
tmp="$tmp/$driver_short_name.$RANDOM.$RANDOM.$RANDOM"
124
(umask 077 && mkdir $tmp) || {
124
(umask 077 && mkdir $tmp) || {
125
    echo "Could not create temporary directory for the log file." 2>&1 
125
    echo "Could not create temporary directory for the log file." 2>&1 
Lines 206-212 Link Here
206
function check_for_Linux_x86_64 ()
206
function check_for_Linux_x86_64 ()
207
{
207
{
208
    log "Verifying on a 64 bit Linux compatible OS"
208
    log "Verifying on a 64 bit Linux compatible OS"
209
    local proc=$(uname -p);
209
    local proc=$(uname -m);
210
    if [ $proc != $req_proc ]; then
210
    if [ $proc != $req_proc ]; then
211
        log "This installation of the $driver_name may only be installed"
211
        log "This installation of the $driver_name may only be installed"
212
        log "on a 64 bit Linux compatible operating system."
212
        log "on a 64 bit Linux compatible operating system."
Lines 499-505 Link Here
499
    fi
499
    fi
500
    
500
    
501
    # install the driver using odbcinst
501
    # install the driver using odbcinst
502
    odbcinst -i -d -f "$template_ini" 2>&1 >> $log_file
502
    echo odbcinst -i -d -f "$template_ini" 2>&1 >> $log_file
503
503
504
    if [ $? -ne 0 ]; then
504
    if [ $? -ne 0 ]; then
505
        log "Failed installing driver $driver_name with $dm_name"
505
        log "Failed installing driver $driver_name with $dm_name"
Lines 716-731 Link Here
716
    if [ $verified -eq 0 ] || [ $force -eq 1 ]; then
716
    if [ $verified -eq 0 ] || [ $force -eq 1 ]; then
717
717
718
        if [ "$lib_dir" == "" ]; then
718
        if [ "$lib_dir" == "" ]; then
719
            lib_dir="/opt/microsoft/$driver_short_name/lib64"
719
            lib_dir="${DESTDIR}opt/microsoft/$driver_short_name/lib64"
720
        fi
720
        fi
721
721
722
        bin_dir="/opt/microsoft/$driver_short_name/bin"
722
        bin_dir="${DESTDIR}opt/microsoft/$driver_short_name/bin"
723
        
723
        
724
        if [ "$bin_sym_dir" == "" ]; then
724
        if [ "$bin_sym_dir" == "" ]; then
725
            bin_sym_dir="/usr/bin";
725
            bin_sym_dir="${DESTDIR}usr/bin";
726
        fi
726
        fi
727
727
728
        sup_dir="/opt/microsoft/$driver_short_name/$driver_version"
728
        sup_dir="${DESTDIR}opt/microsoft/$driver_short_name/$driver_version"
729
        mkdir -p $sup_dir
729
        mkdir -p $sup_dir
730
        if [ -d $sup_dir ]; then
730
        if [ -d $sup_dir ]; then
731
            log "$sup_dir exists"
731
            log "$sup_dir exists"

Return to bug 447288