From 89b7b67a13ebb7965cc7f13ad0595e2194a2d34c Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Wed, 3 Jul 2024 15:48:04 +0200 Subject: add sqmail-4.2.29a --- package/ucspissl | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 package/ucspissl (limited to 'package/ucspissl') 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 -- cgit v1.2.3