| 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.5 2002/07/24 06:50:53 rabbi Exp $ |
| 10 |
|
|
| 11 |
#whereis program default-path |
#whereis program default-path |
| 12 |
whereis() |
whereis() |
| 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* |
| 372 |
readln "Continue anyway?" n |
readln "Continue anyway?" n |
| 373 |
if [ "$ans" = "n" ] |
if [ "$ans" = "n" ] |
| 374 |
then |
then |
| 375 |
echo "Please install zlib now." |
echo "Please install zlib 1.1.4 or greater now." |
| 376 |
exit 1 |
exit 1 |
| 377 |
fi |
fi |
| 378 |
else |
else |
| 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.4 or greater 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*" |
| 445 |
if [ -f $INCDIR/openssl/opensslv.h ] |
if [ -f $INCDIR/openssl/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/openssl/opensslv.h | sed 's/.*0x0*//;s/[ ].*//;s/L$//'` |
| 448 |
|
elif [ -f $INCDIR/opensslv.h ] |
| 449 |
|
then |
| 450 |
|
version=`grep 'SSL.*_VERSION_NUMBER.*0x' $INCDIR/opensslv.h | sed 's/.*0x0*//;s/[ ].*//;s/L$//'` |
| 451 |
fi |
fi |
| 452 |
if [ "$version" = "" ] |
if [ "$version" = "" ] |
| 453 |
then |
then |
| 458 |
echo $opensslinfo |
echo $opensslinfo |
| 459 |
exit 1 |
exit 1 |
| 460 |
fi |
fi |
| 461 |
|
elif [ "16#$version" = "16#90581f" ] |
| 462 |
|
then |
| 463 |
|
echo "Compiling with OpenSSL 0.9.5a." |
| 464 |
|
elif [ "16#$version" = "16#90601f" ] |
| 465 |
|
then |
| 466 |
|
echo "Compiling with OpenSSL 0.9.6a." |
| 467 |
|
elif [ "16#$version" = "16#90602f" ] |
| 468 |
|
then |
| 469 |
|
echo "Compiling with OpenSSL 0.9.6b." |
| 470 |
|
elif [ "16#$version" = "16#90603f" ] |
| 471 |
|
then |
| 472 |
|
echo "Compiling with OpenSSL 0.9.6c." |
| 473 |
|
elif [ "16#$version" = "16#90604f" ] |
| 474 |
|
then |
| 475 |
|
echo "Compiling with OpenSSL 0.9.6d." |
| 476 |
elif [ "$version" -lt "920" ] |
elif [ "$version" -lt "920" ] |
| 477 |
then |
then |
| 478 |
echo "This version of SSLeay is not supported." |
echo "This version: ${version} of SSLeay is not supported." |
| 479 |
echo $opensslinfo |
echo $opensslinfo |
| 480 |
exit 1 |
exit 1 |
| 481 |
elif [ "$version" -lt "903100" ] |
elif [ "$version" -lt "903100" ] |
| 482 |
then |
then |
| 483 |
echo "This version of OpenSSL is not supported." |
echo "This version: ${version} of OpenSSL is not supported." |
| 484 |
echo $opensslinfo |
echo $opensslinfo |
| 485 |
exit 1 |
exit 1 |
| 486 |
elif [ "$version" -gt "906000" ] |
elif [ "$version" -gt "906000" ] |
| 487 |
then |
then |
| 488 |
echo "Warning: This version of OpenSSL is untested." |
echo "Warning: This version: ${version} of OpenSSL is untested." |
| 489 |
readln "Continue anyway?" y |
readln "Continue anyway?" y |
| 490 |
if [ "$ans" = "n" ] |
if [ "$ans" = "n" ] |
| 491 |
then |
then |
| 565 |
-e "s#%DEF#$DEF#" < Makefile.in >> Makefile |
-e "s#%DEF#$DEF#" < Makefile.in >> Makefile |
| 566 |
echo "$ZLIB" >>Makefile |
echo "$ZLIB" >>Makefile |
| 567 |
echo "$PCRE" >>Makefile |
echo "$PCRE" >>Makefile |
| 568 |
|
echo "$IDEALIB" >>Makefile |
| 569 |
echo "$NCURSES" >>Makefile |
echo "$NCURSES" >>Makefile |
| 570 |
echo "$OPENSSL" >>Makefile |
echo "$OPENSSL" >>Makefile |
| 571 |
fi |
fi |
| 737 |
readln "Accept Mixmaster (Type II) messages?" y |
readln "Accept Mixmaster (Type II) messages?" y |
| 738 |
mix=$ans |
mix=$ans |
| 739 |
|
|
| 740 |
readln "Accept PGP (Type I) remailer messages?" y |
readln "Accept PGP (Type I) remailer messages?" n |
| 741 |
pgp=$ans |
pgp=$ans |
| 742 |
|
|
| 743 |
unencrypted=n |
unencrypted=n |
| 840 |
BINFILTER $binfilter |
BINFILTER $binfilter |
| 841 |
AUTOBLOCK $autoblock |
AUTOBLOCK $autoblock |
| 842 |
|
|
| 843 |
ERRLOG errlog |
ERRLOG error.log |
| 844 |
VERBOSE $verbose |
VERBOSE $verbose |
| 845 |
|
|
| 846 |
# Remailer name and addresses |
# Remailer name and addresses |