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" |
14 |
libssl="-lssl" |
libssl="-lssl" |
15 |
libcrypto="-lcrypto" |
libcrypto="-lcrypto" |
16 |
|
|
17 |
cflags="" |
cflags="-g" |
18 |
ldflags="" |
ldflags="" |
19 |
|
|
20 |
interactive="no" |
interactive="no" |
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" |
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] |
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 |
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 |
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 |
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 |
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 |