| 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.8 2002/08/09 18:00:06 rabbi Exp $ |
# $Id: Install,v 1.9 2002/08/21 15:24:27 weaselp Exp $ |
| 10 |
|
|
| 11 |
#whereis program default-path |
#whereis program default-path |
| 12 |
whereis() |
whereis() |
| 307 |
if [ -f $MIXDEST/secring.mix ] |
if [ -f $MIXDEST/secring.mix ] |
| 308 |
then |
then |
| 309 |
remailer=y |
remailer=y |
| 310 |
|
if grep PASSPHRASE $MIXDEST/mix.cfg >/dev/null |
| 311 |
|
then |
| 312 |
|
PASSINCONFIG=1 |
| 313 |
|
fi |
| 314 |
else |
else |
| 315 |
readln "Do you want to set up a remailer?" n |
readln "Do you want to set up a remailer?" n |
| 316 |
remailer=$ans |
remailer=$ans |
| 324 |
remailer=$ans |
remailer=$ans |
| 325 |
fi |
fi |
| 326 |
|
|
| 327 |
|
|
| 328 |
|
ans="" |
| 329 |
|
if [ "$remailer" = "y" ] |
| 330 |
|
then |
| 331 |
|
ans="n" |
| 332 |
|
if [ "$PASSINCONFIG" != 1 ] |
| 333 |
|
then |
| 334 |
|
echo "You can eiter compile your secret pass phrase into the binary |
| 335 |
|
or you can set it in your config file. Note that the former does not |
| 336 |
|
really increase security as the passphrase can still be found out |
| 337 |
|
by running something like »strings mix«." |
| 338 |
|
readln "Do you want to compile the passphrase into the binary?" y |
| 339 |
|
fi |
| 340 |
|
|
| 341 |
|
rm -f "$MIXSRC/mix.o" # make sure our new passphrase takes effect |
| 342 |
|
if [ "$ans" = "y" ] |
| 343 |
|
then |
| 344 |
|
ans="" |
| 345 |
|
echo "Please enter a pass phrase for your remailer (must be the same |
| 346 |
|
whenever you re-compile Mixmaster)." |
| 347 |
|
read ans |
| 348 |
|
|
| 349 |
|
if [ "$ans" != "" ] |
| 350 |
|
then |
| 351 |
|
PASS="PASS=$ans" |
| 352 |
|
else |
| 353 |
|
echo "WARNING: not setting a passphrase" |
| 354 |
|
fi |
| 355 |
|
else |
| 356 |
|
if [ "$PASSINCONFIG" != 1 ] |
| 357 |
|
then |
| 358 |
|
ans="" |
| 359 |
|
echo "Please enter a pass phrase for your remailer (it will be |
| 360 |
|
stored in mix.cfg in clear)." |
| 361 |
|
read ans |
| 362 |
|
|
| 363 |
|
if [ "$ans" == "" ] |
| 364 |
|
then |
| 365 |
|
echo "WARNING: setting empty passphrase" |
| 366 |
|
fi |
| 367 |
|
PASSPHRASE="PASSPHRASE $ans" |
| 368 |
|
fi |
| 369 |
|
fi |
| 370 |
|
fi |
| 371 |
|
|
| 372 |
|
|
| 373 |
cd $MIXSRC |
cd $MIXSRC |
| 374 |
if [ ! -f Makefile ] |
if [ ! -f Makefile ] |
| 375 |
then |
then |
| 378 |
DEF= |
DEF= |
| 379 |
LDFLAGS= |
LDFLAGS= |
| 380 |
|
|
| 381 |
|
if [ ! -z "$PASS" ] |
| 382 |
|
then |
| 383 |
|
DEF="$DEF -DCOMPILEDPASS='\"\$(PASS)\"'" |
| 384 |
|
fi |
| 385 |
|
|
| 386 |
if [ "$system" = msdos ] |
if [ "$system" = msdos ] |
| 387 |
then |
then |
| 388 |
readln "Use WIN32 GUI?" y |
readln "Use WIN32 GUI?" y |
| 644 |
echo "$OPENSSL" >>Makefile |
echo "$OPENSSL" >>Makefile |
| 645 |
fi |
fi |
| 646 |
|
|
|
ans="" |
|
|
if [ "$remailer" = "y" ] |
|
|
then |
|
|
echo "Please enter a pass phrase for your remailer (must be the same |
|
|
whenever you re-compile Mixmaster)." |
|
|
read ans |
|
|
fi |
|
| 647 |
|
|
| 648 |
if [ "$ans" != "" ] |
|
| 649 |
then |
|
|
PASS="PASS=$ans" |
|
|
fi |
|
| 650 |
|
|
| 651 |
echo "Compiling. Please wait." |
echo "Compiling. Please wait." |
| 652 |
whereis gmake make |
whereis gmake make |
| 938 |
IDEXP 7d |
IDEXP 7d |
| 939 |
PACKETEXP 7d |
PACKETEXP 7d |
| 940 |
|
|
| 941 |
|
$PASSPHRASE |
| 942 |
|
|
| 943 |
END |
END |
| 944 |
fi |
|
| 945 |
|
fi # not yet installed |
| 946 |
|
|
| 947 |
|
|
| 948 |
REPLACE="s/%RMN/$RMN/g;s/%RMA/$RMA/g;s/%CA/$CA/g;s/%RAA/$RAA/g" |
REPLACE="s/%RMN/$RMN/g;s/%RMA/$RMA/g;s/%CA/$CA/g;s/%RAA/$RAA/g" |
| 949 |
if [ "$installed" = "n" ] |
if [ "$installed" = "n" ] |