8 |
|
|
9 |
debug="yes" |
debug="yes" |
10 |
checkperms="yes" |
checkperms="yes" |
11 |
|
encpasswds="yes" |
12 |
ssl="yes" |
ssl="yes" |
13 |
|
|
14 |
libs="" |
libs="" |
15 |
|
libenc="-lcrypto" |
16 |
libssl="-lssl -lcrypto" |
libssl="-lssl -lcrypto" |
17 |
|
|
18 |
interactive="no" |
interactive="no" |
56 |
Options: |
Options: |
57 |
debug Debugging information, useful during development [yes] |
debug Debugging information, useful during development [yes] |
58 |
checkperms Configuration file's permissions checking [yes] |
checkperms Configuration file's permissions checking [yes] |
59 |
|
encpasswds Encrypted passwords support [yes] |
60 |
ssl Secure Socket Layer and Transport Layer Security [yes] |
ssl Secure Socket Layer and Transport Layer Security [yes] |
61 |
EOF |
EOF |
62 |
exit 1 |
exit 1 |
89 |
read tmp |
read tmp |
90 |
if [ -n "$tmp" ]; then checkperms="$tmp"; fi |
if [ -n "$tmp" ]; then checkperms="$tmp"; fi |
91 |
|
|
92 |
|
echo -n "Encrypted passwords support: " |
93 |
|
read tmp |
94 |
|
if [ -n "$tmp" ]; then encpasswds="$tmp"; fi |
95 |
|
|
96 |
echo -n "Secure Socket Layer and Transport Layer Security [$ssl]: " |
echo -n "Secure Socket Layer and Transport Layer Security [$ssl]: " |
97 |
read tmp |
read tmp |
98 |
if [ -n "$tmp" ]; then ssl="$tmp"; fi |
if [ -n "$tmp" ]; then ssl="$tmp"; fi |
103 |
Manual pages directory: $mandir |
Manual pages directory: $mandir |
104 |
Debugging information: $debug |
Debugging information: $debug |
105 |
Configuration file permissions checking: $checkperms |
Configuration file permissions checking: $checkperms |
106 |
|
Encrypted passwords support: $encpasswds |
107 |
Secure Socket Layer and Transport Layer Security: $ssl |
Secure Socket Layer and Transport Layer Security: $ssl |
108 |
EOF |
EOF |
109 |
fi |
fi |
114 |
if [ $ssl = "yes" ] |
if [ $ssl = "yes" ] |
115 |
then |
then |
116 |
libs="$libs $libssl" |
libs="$libs $libssl" |
117 |
|
elif [ $encpasswds = "yes" ] |
118 |
|
then |
119 |
|
libs="$libs $libenc" |
120 |
fi |
fi |
121 |
|
|
122 |
|
|
123 |
|
|
124 |
# Backup of original Makefile and config.h |
# Backup of original Makefile and config.h |
125 |
|
|
126 |
if [ ! -f .Makefile ]; then cp Makefile .Makefile; fi |
if [ ! -f .Makefile ]; then cp Makefile .Makefile; fi |
204 |
fi |
fi |
205 |
echo >> config.h |
echo >> config.h |
206 |
|
|
207 |
|
echo "/* Encrypted passwords support. */" >> config.h |
208 |
|
if [ $encpasswds = "yes" ] |
209 |
|
then |
210 |
|
echo "#define ENCRYPTED_PASSWORDS" >> config.h |
211 |
|
else |
212 |
|
echo "#undef ENCRYPTED_PASSWORDS" >> config.h |
213 |
|
fi |
214 |
|
echo >> config.h |
215 |
|
|
216 |
echo "/* Secure Socket Layer and Transport Layer Security support. */" >> config.h |
echo "/* Secure Socket Layer and Transport Layer Security support. */" >> config.h |
217 |
if [ $ssl = "yes" ] |
if [ $ssl = "yes" ] |
218 |
then |
then |