8 |
|
|
9 |
debug="yes" |
debug="yes" |
10 |
checkperms="yes" |
checkperms="yes" |
11 |
|
memlock="yes" |
12 |
encpasswds="yes" |
encpasswds="yes" |
13 |
ssl="yes" |
ssl="yes" |
14 |
|
|
48 |
if [ $body = "yes" ]; then checkperms="yes" |
if [ $body = "yes" ]; then checkperms="yes" |
49 |
elif [ $body = "no" ]; then checkperms="no" |
elif [ $body = "no" ]; then checkperms="no" |
50 |
fi |
fi |
51 |
|
elif [ $head = "memlock" ] |
52 |
|
then |
53 |
|
if [ $body = "yes" ]; then memlock="yes" |
54 |
|
elif [ $body = "no" ]; then memlock="no" |
55 |
|
fi |
56 |
elif [ $head = "encpasswds" ] |
elif [ $head = "encpasswds" ] |
57 |
then |
then |
58 |
if [ $body = "yes" ]; then encpasswds="yes" |
if [ $body = "yes" ]; then encpasswds="yes" |
84 |
Options: |
Options: |
85 |
debug Debugging information, useful during development [yes] |
debug Debugging information, useful during development [yes] |
86 |
checkperms Configuration file's permissions checking [yes] |
checkperms Configuration file's permissions checking [yes] |
87 |
|
memlock Try to lock memory pages to avoid swapping [yes] |
88 |
encpasswds Encrypted passwords support [yes] |
encpasswds Encrypted passwords support [yes] |
89 |
ssl Secure Socket Layer and Transport Layer Security [yes] |
ssl Secure Socket Layer and Transport Layer Security [yes] |
90 |
EOF |
EOF |
98 |
|
|
99 |
if [ $interactive = "yes" ] |
if [ $interactive = "yes" ] |
100 |
then |
then |
101 |
echo -n "Destination directory [$destdir]: " |
printf "Destination directory [$destdir]: " |
102 |
read tmp |
read tmp |
103 |
if [ -n "$tmp" ]; then destdir="$tmp"; fi |
if [ -n "$tmp" ]; then destdir="$tmp"; fi |
104 |
|
|
105 |
echo -n "Binaries directory [$bindir]: " |
printf "Binaries directory [$bindir]: " |
106 |
read tmp |
read tmp |
107 |
if [ -n "$tmp" ]; then bindir="$tmp"; fi |
if [ -n "$tmp" ]; then bindir="$tmp"; fi |
108 |
|
|
109 |
echo -n "Manual pages directory [$mandir]: " |
printf "Manual pages directory [$mandir]: " |
110 |
read tmp |
read tmp |
111 |
if [ -n "$tmp" ]; then mandir="$tmp"; fi |
if [ -n "$tmp" ]; then mandir="$tmp"; fi |
112 |
|
|
113 |
echo -n "Debugging information [$debug]: " |
printf "Debugging information [$debug]: " |
114 |
read tmp |
read tmp |
115 |
if [ -n "$tmp" ]; then debug="$tmp"; fi |
if [ -n "$tmp" ]; then debug="$tmp"; fi |
116 |
|
|
117 |
echo -n "Configuration file permissions checking [$checkperms]: " |
printf "Configuration file permissions checking [$checkperms]: " |
118 |
read tmp |
read tmp |
119 |
if [ -n "$tmp" ]; then checkperms="$tmp"; fi |
if [ -n "$tmp" ]; then checkperms="$tmp"; fi |
120 |
|
|
121 |
echo -n "Encrypted passwords support: " |
printf "Try to lock memory pages to avoid swapping [$memlock]: " |
122 |
|
read tmp |
123 |
|
if [ -n "$tmp" ]; then memlock="$tmp"; fi |
124 |
|
|
125 |
|
printf "Encrypted passwords support: " |
126 |
read tmp |
read tmp |
127 |
if [ -n "$tmp" ]; then encpasswds="$tmp"; fi |
if [ -n "$tmp" ]; then encpasswds="$tmp"; fi |
128 |
|
|
129 |
echo -n "Secure Socket Layer and Transport Layer Security [$ssl]: " |
printf "Secure Socket Layer and Transport Layer Security [$ssl]: " |
130 |
read tmp |
read tmp |
131 |
if [ -n "$tmp" ]; then ssl="$tmp"; fi |
if [ -n "$tmp" ]; then ssl="$tmp"; fi |
132 |
else |
else |
136 |
Manual pages directory: $mandir |
Manual pages directory: $mandir |
137 |
Debugging information: $debug |
Debugging information: $debug |
138 |
Configuration file permissions checking: $checkperms |
Configuration file permissions checking: $checkperms |
139 |
|
Try to lock memory pages to avoid swapping: $memlock |
140 |
Encrypted passwords support: $encpasswds |
Encrypted passwords support: $encpasswds |
141 |
Secure Socket Layer and Transport Layer Security: $ssl |
Secure Socket Layer and Transport Layer Security: $ssl |
142 |
EOF |
EOF |
238 |
fi |
fi |
239 |
echo >> config.h |
echo >> config.h |
240 |
|
|
241 |
|
echo "/* Try to lock memory pages to avoid swapping. */" >> config.h |
242 |
|
if [ $memlock = "yes" ] |
243 |
|
then |
244 |
|
echo "#define MEMORY_LOCK" >> config.h |
245 |
|
else |
246 |
|
echo "#undef MEMORY_LOCK" >> config.h |
247 |
|
fi |
248 |
|
echo >> config.h |
249 |
|
|
250 |
echo "/* Encrypted passwords support. */" >> config.h |
echo "/* Encrypted passwords support. */" >> config.h |
251 |
if [ $encpasswds = "yes" ] |
if [ $encpasswds = "yes" ] |
252 |
then |
then |