get python ver also on python2
This commit is contained in:
0
cryptlib/config-v6.sh
Normal file
0
cryptlib/config-v6.sh
Normal file
7
cryptlib/info-v6.sh
Normal file
7
cryptlib/info-v6.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
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 "" >> ${DBP_INFO}
|
||||
echo "==============================================================================================================" >> ${DBP_INFO}
|
||||
fi
|
||||
31
cryptlib/install-v6.sh
Normal file
31
cryptlib/install-v6.sh
Normal file
@@ -0,0 +1,31 @@
|
||||
if [ $CRYPT = "Yes" ]; then
|
||||
msg_info "Setting up ${APP} cryptlib for ssh/ssl (be patient compiling cryptlib)"
|
||||
apt install -y build-essential &>/dev/null
|
||||
apt install -y gcc-9 g++-9 cpp-9 gcc g++ cpp &>/dev/null
|
||||
apt install -y patch &>/dev/null
|
||||
apt install -y dos2unix &>/dev/null
|
||||
wget -N http://www.mysticbbs.com/downloads/cl345.zip -O $MSTEMPDIR/cryptlib345.zip &>/dev/null
|
||||
rm -rf $MSTEMPDIR/cryptlib-3.4.5 &>/dev/null
|
||||
mkdir -p $MSTEMPDIR/cryptlib-3.4.5 &>/dev/null
|
||||
pushd $MSTEMPDIR/cryptlib-3.4.5 &>/dev/null
|
||||
unzip ../cryptlib345.zip &>/dev/null
|
||||
dos2unix tools/* &>/dev/null
|
||||
dos2unix kernel/* &>/dev/null
|
||||
patch -p1 -i $MSTEMPDIR/mystic/cryptlib/patches/gccversion-345.patch &>/dev/null
|
||||
patch -p0 -i $MSTEMPDIR/mystic/cryptlib/patches/cl-linux-yield.patch &>/dev/null
|
||||
ln -sf gcc-9 /usr/bin/gcc &>/dev/null
|
||||
ln -sf g++-9 /usr/bin/g++ &>/dev/null
|
||||
ln -sf cpp-9 /usr/bin/cpp &>/dev/null
|
||||
make shared &>/dev/null
|
||||
cp libcl.so.3.4.5 ${LIBDIR}/ &>/dev/null
|
||||
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
|
||||
|
||||
apt purge -y gcc g++ cpp &>/dev/null
|
||||
apt install -y gcc g++ cpp &>/dev/null
|
||||
msg_ok "Setting up ${APP} cryptlib for ssh/ssl (be patient compiling cryptlib)"
|
||||
|
||||
fi
|
||||
|
||||
8
cryptlib/prompt-v6.sh
Normal file
8
cryptlib/prompt-v6.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
CRYPT=$(whiptail --title "SSL SSH Support for Mystic" --radiolist --cancel-button Exit-Script "Choose Yes No" 8 58 2 \
|
||||
"Yes" "Add ssl Support" ON \
|
||||
"No" "Don't add ssl Support" OFF \
|
||||
3>&1 1>&2 2>&3)
|
||||
exitstatus=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Add ssl Support: ${BGN}$CRYPT${CL}"
|
||||
fi
|
||||
@@ -1,3 +1,3 @@
|
||||
for file in $(ls *-v4.sh) ; do
|
||||
cp -- "${file}" "$(echo "${file}" | sed -e 's/v4\.sh/v5\.sh/')"
|
||||
for file in $(ls *-v5.sh) ; do
|
||||
cp -- "${file}" "$(echo "${file}" | sed -e 's/v5\.sh/v6\.sh/')"
|
||||
done
|
||||
Reference in New Issue
Block a user