/[imapfilter]/imapfilter/config
ViewVC logotype

Diff of /imapfilter/config

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

revision 1.18 by lefcha, Tue May 20 12:17:52 2003 UTC revision 1.19 by lefcha, Sat Jul 26 19:40:18 2003 UTC
# Line 10  debug="yes" Line 10  debug="yes"
10  checkperms="yes"  checkperms="yes"
11  encpasswds="yes"  encpasswds="yes"
12  ssl="yes"  ssl="yes"
13    cram="yes"
14    
15  libs=""  libs=""
16  libenc="-lcrypto"  libssl="-lssl"
17  libssl="-lssl -lcrypto"  libcrypto="-lcrypto"
18    
19  cflags=""  cflags=""
20  ldflags=""  ldflags=""
# Line 60  do Line 61  do
61        if [ $body = "yes" ]; then ssl="yes"        if [ $body = "yes" ]; then ssl="yes"
62        elif [ $body = "no" ]; then ssl="no"        elif [ $body = "no" ]; then ssl="no"
63        fi        fi
64        elif [ $head = "cram" ]
65        then
66          if [ $body = "yes" ]; then cram="yes"
67          elif [ $body = "no" ]; then cram="no"
68          fi
69      fi        fi  
70      ;;      ;;
71    i)    i)
# Line 83  Options: Line 89  Options:
89    checkperms            Configuration file's permissions checking [$checkperms]    checkperms            Configuration file's permissions checking [$checkperms]
90    encpasswds            Encrypted passwords support [$encpasswds]    encpasswds            Encrypted passwords support [$encpasswds]
91    ssl                   Secure Socket Layer and Transport Layer Security [$ssl]    ssl                   Secure Socket Layer and Transport Layer Security [$ssl]
92      cram                  Challenge-Response Authentication Mechanism [$cram]
93  EOF  EOF
94      exit 1      exit 1
95      ;;      ;;
# Line 121  then Line 128  then
128    printf "Secure Socket Layer and Transport Layer Security [$ssl]: "    printf "Secure Socket Layer and Transport Layer Security [$ssl]: "
129    read tmp    read tmp
130    if [ -n "$tmp" ]; then ssl="$tmp"; fi    if [ -n "$tmp" ]; then ssl="$tmp"; fi
131    
132      printf "Challenge-Response Authentication Mechanism [$cram]: "
133      read tmp
134      if [ -n "$tmp" ]; then cram="$tmp"; fi
135  else  else
136    cat << EOF    cat << EOF
137  Destination directory:                                  $destdir  Destination directory:                                  $destdir
# Line 130  Debugging information:                                 $debug Line 141  Debugging information:                                 $debug
141  Configuration file permissions checking:                $checkperms  Configuration file permissions checking:                $checkperms
142  Encrypted passwords support:                            $encpasswds  Encrypted passwords support:                            $encpasswds
143  Secure Socket Layer and Transport Layer Security:       $ssl  Secure Socket Layer and Transport Layer Security:       $ssl
144    Challenge-Response Authentication Mechanism             $cram
145  EOF  EOF
146  fi  fi
147    
# Line 138  fi Line 150  fi
150    
151  if [ $ssl = "yes" ]  if [ $ssl = "yes" ]
152  then  then
153    libs="$libs $libssl"    libs="$libs $libssl $libcrypto"
154  elif [ $encpasswds = "yes" ]  elif [ $encpasswds = "yes" || $cram = "yes" ]
155  then  then
156    libs="$libs $libenc"    libs="$libs $libcrypto"
157  fi  fi
158    
159    
# Line 178  MAN_BIN = imapfilter.1 Line 190  MAN_BIN = imapfilter.1
190  MAN_RC = imapfilterrc.5  MAN_RC = imapfilterrc.5
191    
192  BIN = imapfilter  BIN = imapfilter
193  OBJ = data.o file.o imap.o imapfilter.o lock.o log.o memory.o misc.o \\  OBJ = auth.o data.o file.o imap.o imapfilter.o lock.o log.o memory.o misc.o \\
194          passwd.o response.o request.o socket.o tty.o          passwd.o response.o request.o socket.o tty.o
195    
196  LIBS = $libs  LIBS = $libs
# Line 186  LIBS = $libs Line 198  LIBS = $libs
198  imapfilter: \$(OBJ)  imapfilter: \$(OBJ)
199          \$(CC) \$(LIBS) \$(LDFLAGS) -o \$(BIN) \$(OBJ)          \$(CC) \$(LIBS) \$(LDFLAGS) -o \$(BIN) \$(OBJ)
200    
201  data.o file.o imap.o imapfilter.o lock.o log.o response.o request.o \\  auth.o data.o file.o imap.o imapfilter.o lock.o log.o response.o request.o \\
202          memory.o passwd.o socket.o tty.o: imapfilter.h config.h          memory.o passwd.o socket.o tty.o: imapfilter.h config.h
203  data.o imapfilter.o imap.o file.o passwd.o request.o socket.o: data.h  data.o imapfilter.o imap.o file.o passwd.o request.o socket.o: data.h
204    
# Line 248  then Line 260  then
260  else  else
261    echo "#undef SSL_TLS" >> config.h    echo "#undef SSL_TLS" >> config.h
262  fi  fi
263    echo >> config.h
264    
265    echo "/* Challenge-Response Authentication Mechanism support. */" >> config.h
266    if [ $cram = "yes" ]
267    then
268      echo "#define CRAM_MD5" >> config.h
269    else
270      echo "#undef CRAM_MD5" >> config.h
271    fi
272    
273    
274  exit 0  exit 0

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26