/[pkg-mixmaster]/trunk/Mix/Install
ViewVC logotype

Diff of /trunk/Mix/Install

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1 by rabbi, Wed Oct 31 08:19:51 2001 UTC revision 8 by rabbi, Fri Nov 2 21:48:21 2001 UTC
# Line 6  Line 6 
6  # ANY KIND, either express or implied. See the file COPYRIGHT for  # ANY KIND, either express or implied. See the file COPYRIGHT for
7  # details.  # details.
8    
9  # $Id: Install,v 1.1 2001/10/31 08:19:52 rabbi Exp $  # $Id: Install,v 1.2 2001/11/02 21:48:21 rabbi Exp $
10    
11  #whereis program default-path  #whereis program default-path
12  whereis()  whereis()
# Line 342  then Line 342  then
342    LDFLAGS="-lsocket -lnsl"    LDFLAGS="-lsocket -lnsl"
343   fi   fi
344    
345     if [ "$system" = OpenBSD ]
346     then
347      LIBDIR=
348      INCDIR=
349      SRCDIR=idea*
350      findlib libidea.a
351      if [ "$found" = "" ]
352      then
353       echo "Please build libidea.a or install OpenSSL with IDEA now."
354       exit 1
355      else
356       IDEALIB="$MAKELIB"
357       LIBS="$LIBS $LIB"
358       LDFLAGS="$LDFLAGS $LDFLAG"
359       if [ "$INCDIR" != "" ]
360       then
361        INC="$INC -I$INCDIR"
362       fi
363      fi
364     fi
365    
366   LIBDIR=   LIBDIR=
367   INCDIR=   INCDIR=
368   SRCDIR=zlib*   SRCDIR=zlib*
# Line 381  then Line 402  then
402    fi    fi
403   fi   fi
404    
405   opensslinfo="Please get OpenSSL 0.9.4 from http://www.openssl.org/"   opensslinfo="Please get OpenSSL 0.9.6b from http://www.openssl.org/"
406   LIBDIR=/usr/local/ssl/lib   LIBDIR=/usr/local/ssl/lib
407   INCDIR="/usr/include /usr/include/ssl /usr/lib/ssl/include /usr/local/ssl/include"   INCDIR="/usr/include /usr/include/ssl /usr/lib/ssl/include /usr/local/ssl/include"
408   SRCDIR="openssl*"   SRCDIR="openssl*"
# Line 421  then Line 442  then
442   fi   fi
443    
444   # Find the OpenSSL version header   # Find the OpenSSL version header
445   if [ -f $INCDIR/openssl/opensslv.h ]   if [ -f $INCDIR/opensslv.h ]
446   then   then
447    version=`grep 'SSL.*_VERSION_NUMBER.*0x' $INCDIR/openssl/opensslv.h | sed 's/.*0x0*//;s/[     ].*//;s/L$//'`    version=`grep 'SSL.*_VERSION_NUMBER.*0x' $INCDIR/opensslv.h | sed 's/.*0x0*//;s/[     ].*//;s/L$//'`
448   fi   fi
449   if [ "$version" = "" ]   if [ "$version" = "" ]
450   then   then
# Line 434  then Line 455  then
455     echo $opensslinfo     echo $opensslinfo
456     exit 1     exit 1
457    fi    fi
458   elif [ "$version" -lt "920" ]   elif [ "16#$version" -lt "16#0920" ]
459   then   then
460    echo "This version of SSLeay is not supported."    echo "This version: ${version} of SSLeay is not supported."
461    echo $opensslinfo    echo $opensslinfo
462    exit 1    exit 1
463   elif [ "$version" -lt "903100" ]   elif [ "16#$version" -lt "16#00903100" ]
464   then   then
465    echo "This version of OpenSSL is not supported."    echo "This version: ${version} of OpenSSL is not supported."
466    echo $opensslinfo    echo $opensslinfo
467    exit 1    exit 1
468   elif [ "$version" -gt "906000" ]   elif [ "16#$version" -gt "16#00906000" ]
469   then   then
470    echo "Warning: This version of OpenSSL is untested."    echo "Warning: This version: ${version} of OpenSSL is untested."
471    readln "Continue anyway?" y    readln "Continue anyway?" y
472    if [ "$ans" = "n" ]    if [ "$ans" = "n" ]
473    then    then
# Line 526  http://www.clark.net/pub/dickey/ncurses/ Line 547  http://www.clark.net/pub/dickey/ncurses/
547       -e "s#%DEF#$DEF#" < Makefile.in >> Makefile       -e "s#%DEF#$DEF#" < Makefile.in >> Makefile
548   echo "$ZLIB" >>Makefile   echo "$ZLIB" >>Makefile
549   echo "$PCRE" >>Makefile   echo "$PCRE" >>Makefile
550     echo "$IDEALIB" >>Makefile
551   echo "$NCURSES" >>Makefile   echo "$NCURSES" >>Makefile
552   echo "$OPENSSL" >>Makefile   echo "$OPENSSL" >>Makefile
553  fi  fi

Legend:
Removed from v.1  
changed lines
  Added in v.8

  ViewVC Help
Powered by ViewVC 1.1.5