diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-03 15:48:04 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-03 15:48:04 +0200 |
commit | 89b7b67a13ebb7965cc7f13ad0595e2194a2d34c (patch) | |
tree | 25efd77a90ae87236e6730d8ea3846bbe0fd126f /package/ucspissl |
add sqmail-4.2.29asqmail-4.2
Diffstat (limited to 'package/ucspissl')
-rwxr-xr-x | package/ucspissl | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/package/ucspissl b/package/ucspissl new file mode 100755 index 0000000..c59a07e --- /dev/null +++ b/package/ucspissl @@ -0,0 +1,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 |