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

Contents of /trunk/Mix/upgrade

Parent Directory Parent Directory | Revision Log Revision Log


Revision 93 - (show annotations) (download)
Thu Jul 11 02:39:33 2002 UTC (10 years, 11 months ago) by rabbi
File size: 2368 byte(s)
Modified the Install script to properly locate opensslv.h. It now checks
in both $INCDIR/openssl and $INCDIR/ for the file.

Also, I reverted back to the version checking that was done in 2.9beta23,
and added special case exceptions for the four OpenSSL versions with
alphanumeric designations prior to the main version check, since Bourne
shell cannot handle multiple bases and bash is not universal.

Also,I modifed the "upgrade" script for clarity, and changed the default
from "y" to "n" for activating Type I remailers on installation.

Lastly, I performed pre-release configuration file updates. Ready for
2.9b35.
1 #!/bin/sh
2 # Mixmaster version 3 -- (C) 1999 Anonymizer Inc.
3
4 # Mixmaster may be redistributed and modified under certain conditions.
5 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
6 # ANY KIND, either express or implied. See the file COPYRIGHT for
7 # details.
8
9 # $Id: upgrade,v 1.2 2002/07/11 02:39:33 rabbi Exp $
10
11 # readln text default
12 readln()
13 {
14 echo $echo1 "$1 [$2] $echo2"
15 read ans
16 if [ -z "$ans" ]
17 then
18 ans="$2"
19 fi
20 }
21
22 echo "This script will upgrade an installation of Mixmaster 2.0."
23 echo "Do not use this script to upgrade an installation of Mixmaster 2.9."
24 echo "Use the Install script instead."
25 readln "Continue with upgrade?" n
26 if [ "$ans" = n ]
27 then
28 exit 1
29 fi
30
31 NEW=~/tmp.$$
32 mkdir $NEW
33
34 cp $MIXSRC/mix $NEW/mix
35 cd $NEW
36 ln -s mix mixmaster
37 cp $MIXDEST/mixrand.bin $MIXDEST/id.log $MIXDEST/pubring.mix $MIXDEST/secring.mix $MIXDEST/type2.list $MIXDEST/stats.log $MIXDEST/urls .
38 cp $MIXDEST/mix.list mlist.txt
39 cp $MIXDEST/mix.help help.txt
40 cp $MIXDEST/mix.key key.txt
41 grep -v '#' $MIXDEST/headers.del | sed 's#^#/#;s#$#/#' | grep -v '//' >header.blk
42 grep -v '#' $MIXDEST/destination.block | sed 's#^#/#;s#$#/#' | grep -v '//' >dest.blk
43 grep -v '#' $MIXDEST/source.block | sed 's#^#/#;s#$#/#' | grep -v '//' >source.blk
44
45 cat /dev/null >mix.cfg
46 grep SENDMAIL $MIXDEST/mixmaster.conf >>mix.cfg
47 grep SHORTNAME $MIXDEST/mixmaster.conf >>mix.cfg
48 grep REMAILERADDR $MIXDEST/mixmaster.conf >>mix.cfg
49 grep ANONADDR $MIXDEST/mixmaster.conf >>mix.cfg
50 grep COMPLAINTS $MIXDEST/mixmaster.conf >>mix.cfg
51 grep REMAILERNAME $MIXDEST/mixmaster.conf >>mix.cfg
52 grep ANONNAME $MIXDEST/mixmaster.conf >>mix.cfg
53 grep POOLSIZE $MIXDEST/mixmaster.conf >>mix.cfg
54 grep RATE $MIXDEST/mixmaster.conf >>mix.cfg
55 grep NEWS $MIXDEST/mixmaster.conf | grep -v mail-to-news >>mix.cfg
56 grep ORGANIZATION $MIXDEST/mixmaster.conf >>mix.cfg
57 grep MAILtoNEWS $MIXDEST/mixmaster.conf | sed 's/MAILtoNEWS/NEWS/' >>mix.cfg
58
59 cat <<END >>mix.cfg
60
61 # Supported formats:
62 MIX y
63 PGP y
64 UNENCRYPTED n
65
66 # Filter binary attachments?
67 BINFILTER y
68
69 # Maximum message size in kB:
70 SIZELIMIT 0
71
72 SENDPOOLTIME 1h
73 IDEXP 7d
74 PACKETEXP 7d
75
76 # Where to log error messages (file name or "syslog"):
77 ERRLOG log
78
79 # Anti-spam message IDs on Usenet (MD5 of message body)?
80 MID y
81
82 # Where to deliver non-remailer messages:
83 MAIL stdout
84
85 END
86
87 mv $MIXDEST $MIXDEST.old
88 mv $NEW $MIXDEST

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5