/[imapfilter]/imapfilter/config
ViewVC logotype

Diff of /imapfilter/config

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

revision 1.25 by lefcha, Sat Feb 7 23:54:16 2004 UTC revision 1.26 by lefcha, Mon Feb 9 17:34:56 2004 UTC
# Line 6  destdir="/usr/local" Line 6  destdir="/usr/local"
6  bindir="$destdir/bin"  bindir="$destdir/bin"
7  mandir="$destdir/man"  mandir="$destdir/man"
8    
 debug="yes"  
9  encpasswds="yes"  encpasswds="yes"
10  ssltls="yes"  ssltls="yes"
11  cram="yes"  cram="yes"
# Line 15  libs="" Line 14  libs=""
14  libssl="-lssl"  libssl="-lssl"
15  libcrypto="-lcrypto"  libcrypto="-lcrypto"
16    
17  cflags=""  cflags="-g"
18  ldflags=""  ldflags=""
19    
20  interactive="no"  interactive="no"
# Line 40  do Line 39  do
39    o)    o)
40      head=`echo $OPTARG | cut -d= -f1`      head=`echo $OPTARG | cut -d= -f1`
41      body=`echo $OPTARG | cut -d= -f2`      body=`echo $OPTARG | cut -d= -f2`
42      if [ $head = "debug" ]      if [ $head = "encpasswds" ]
     then  
       if [ $body = "yes" ]; then debug="yes"  
       elif [ $body = "no" ]; then debug="no"  
       fi  
     elif [ $head = "encpasswds" ]  
43      then      then
44        if [ $body = "yes" ]; then encpasswds="yes"        if [ $body = "yes" ]; then encpasswds="yes"
45        elif [ $body = "no" ]; then encpasswds="no"        elif [ $body = "no" ]; then encpasswds="no"
# Line 79  Description: Line 73  Description:
73    -o option=argument    Enabling/disabling of program's options.    -o option=argument    Enabling/disabling of program's options.
74    
75  Options:  Options:
   debug                 Debugging information, useful during development [$debug]  
76    encpasswds            Encrypted passwords support [$encpasswds]    encpasswds            Encrypted passwords support [$encpasswds]
77    ssltls                Secure Socket Layer and Transport Layer Security [$ssltls]    ssltls                Secure Socket Layer and Transport Layer Security [$ssltls]
78    cram                  Challenge-Response Authentication Mechanism [$cram]    cram                  Challenge-Response Authentication Mechanism [$cram]
# Line 106  then Line 99  then
99    read tmp    read tmp
100    if [ -n "$tmp" ]; then mandir="$tmp"; fi    if [ -n "$tmp" ]; then mandir="$tmp"; fi
101        
   printf "Debugging information [$debug]: "  
   read tmp  
   if [ -n "$tmp" ]; then debug="$tmp"; fi  
     
102    printf "Encrypted passwords support [$encpasswds]: "    printf "Encrypted passwords support [$encpasswds]: "
103    read tmp    read tmp
104    if [ -n "$tmp" ]; then encpasswds="$tmp"; fi    if [ -n "$tmp" ]; then encpasswds="$tmp"; fi
# Line 126  else Line 115  else
115  Destination directory:                                  $destdir  Destination directory:                                  $destdir
116  Binaries directory:                                     $bindir  Binaries directory:                                     $bindir
117  Manual pages directory:                                 $mandir  Manual pages directory:                                 $mandir
 Debugging information:                                  $debug  
118  Encrypted passwords support:                            $encpasswds  Encrypted passwords support:                            $encpasswds
119  Secure Socket Layer and Transport Layer Security:       $ssltls  Secure Socket Layer and Transport Layer Security:       $ssltls
120  Challenge-Response Authentication Mechanism:            $cram  Challenge-Response Authentication Mechanism:            $cram
# Line 145  then Line 133  then
133  fi  fi
134    
135    
 # C flags  
   
 if [ $debug = "yes" ]  
 then  
   cflags="-g"  
 else  
   cflags="-O"  
 fi  
   
   
136  # Backup of original Makefile and config.h  # Backup of original Makefile and config.h
137    
138  if [ ! -f .Makefile ]; then cp -f Makefile .Makefile; fi  if [ ! -f .Makefile ]; then cp -f Makefile .Makefile; fi
# Line 196  account.o destroy.o filter.o imapfilter. Line 174  account.o destroy.o filter.o imapfilter.
174  destroy.o filter.o imapfilter.o match.o: filter.h  destroy.o filter.o imapfilter.o match.o: filter.h
175  account.o filter.o: struct.h  account.o filter.o: struct.h
176  buffer.o imap.o imapfilter.o response.o: buffer.h  buffer.o imap.o imapfilter.o response.o: buffer.h
177  cert.o file.o lock.o parse.o: pathnames.h  cert.o file.o lock.o log.o parse.o: pathnames.h
178  imapfilter.o: version.h  imapfilter.o: version.h
179    
180  install: imapfilter  install: imapfilter
# Line 229  echo "#ifndef CONFIG_H" > config.h Line 207  echo "#ifndef CONFIG_H" > config.h
207  echo "#define CONFIG_H" >> config.h  echo "#define CONFIG_H" >> config.h
208  echo >> config.h; echo >> config.h  echo >> config.h; echo >> config.h
209    
 echo "/* Debugging information. */" >> config.h  
 if [ $debug = "yes" ]  
 then  
   echo "#define DEBUG" >> config.h  
 else  
   echo "#undef DEBUG" >> config.h  
 fi  
 echo >> config.h  
   
210  echo "/* Encrypted passwords support. */" >> config.h  echo "/* Encrypted passwords support. */" >> config.h
211  if [ $encpasswds = "yes" ]  if [ $encpasswds = "yes" ]
212  then  then

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26