add workaround for rar on arm

This commit is contained in:
Mario Fetka
2024-05-10 21:08:51 +02:00
parent cbcf4d4820
commit 184130d1ca
52 changed files with 33 additions and 67 deletions

View File

@@ -2,9 +2,6 @@ if [ $CRYPT = "Yes" ]; then
echo "" >> ${DBP_INFO}
echo "Mystic SSL Support" >> ${DBP_INFO}
echo "with the libcl support you can now activate ssl in the Mystic system" >> ${DBP_INFO}
echo "also with the Cryptlib support a tool called pemtrans has been istalled" >> ${DBP_INFO}
echo "with it you can import your ssl certs like LetsEncrypt into the Mystic system" >> ${DBP_INFO}
echo "./pemtrans <key> <cert> <out> <label> <secret>" >> ${DBP_INFO}
echo "" >> ${DBP_INFO}
echo "==============================================================================================================" >> ${DBP_INFO}
fi

View File

@@ -22,40 +22,10 @@ ln -sf libcl.so.3.4.5 ${LIBDIR}/libcl.so.3.4 &>/dev/null
ln -sf libcl.so.3.4 ${LIBDIR}/libcl.so.3 &>/dev/null
ln -sf libcl.so.3 ${LIBDIR}/libcl.so &>/dev/null
popd &>/dev/null
msg_ok "Setting up ${APP} cryptlib for ssh/ssl (be patient compiling cryptlib)"
msg_info "Setting up ${APP} pemtrans (be patient compiling pemtrans)"
SSLDEV=$(apt-cache madison libssl-dev | grep 1.0.1 | awk '{print $3}')
apt install -y --allow-downgrades libssl1.0.0 libssl-dev=${SSLDEV} &>/dev/null
wget -N https://github.com/amenonsen/pemtrans/archive/refs/heads/master.zip -O $MSTEMPDIR/pemtrans.zip &>/dev/null
rm -rf $MSTEMPDIR/pemtrans-master &>/dev/null
pushd $MSTEMPDIR/ &>/dev/null
unzip pemtrans.zip &>/dev/null
popd &>/dev/null
cat << 'EOF' > $MSTEMPDIR/pemtrans-master/Makefile
## Tell the compiler where to find <openssl/pem.h> and <cryptlib.h>
## Cryptlib is usually linked with these libraries:
EXTRA_LIBS = -lresolv -lpthread
## Remember to change theese to suit your environment!!
INCLUDES = -I../cryptlib-3.4.5
pemtrans: pemtrans.c
gcc $(INCLUDES) $(LIBS) -o pemtrans pemtrans.c $(CRYPTLIB) \
-lcrypto -lssl -lcl $(EXTRA_LIBS)
EOF
pushd $MSTEMPDIR/pemtrans-master &>/dev/null
make &>/dev/null
cp pemtrans ${MYSTIC_DIR}/
cp pemtrans.1 ${MYSTIC_DIR}/docs/
cp README ${MYSTIC_DIR}/docs/pemtrans_README
popd &>/dev/null
apt purge -y gcc g++ cpp &>/dev/null
apt install -y gcc g++ cpp &>/dev/null
msg_ok "Setting up ${APP} pemtrans (be patient compiling pemtrans)"
msg_ok "Setting up ${APP} cryptlib for ssh/ssl (be patient compiling cryptlib)"
fi

View File

@@ -1,3 +1,3 @@
for file in $(ls *-v2.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')"
for file in $(ls *-v3.sh) ; do
cp -- "${file}" "$(echo "${file}" | sed -e 's/v3\.sh/v4\.sh/')"
done