blob: c59a07e9da822048640d27938a12190d42cdc75e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/sh
shout() { echo "${0}: $@" >&2; }
barf() { shout "fatal: $@"; exit 111; }
safe() { "$@" || barf "cannot $@"; }
here=`env - PATH=$PATH pwd`
mypwd=${here%package}
mypwd=${mypwd%/}
sslfiles="conf-ssl compile/ssl.lib compile/ucspissl.a compile/ucspissl.h"
home=`head -1 $mypwd/conf-ucspissl`
[ -d $mypwd/compile ] || safe mkdir -p $mypwd/compile
if [ -d $home ]
then
shout "Linking ucspi-ssl sources."
for sfile in `echo $sslfiles`
do
if [ -f $home/$sfile ]
then
rm -f "$mypwd/compile/$sfile" 2>/dev/null
safe ln -fs "$home/$sfile" "$mypwd/$sfile"
safe ls -l "$mypwd/$sfile"
else
barf "ucspi-ssl file $sfile missing. s/qmail won't compile."
fi
done
else
barf "Can't find ucspi-ssl dir. Check 'conf-ucspissl'."
fi
exit 0
|