add workaround for rar on arm
This commit is contained in:
parent
cbcf4d4820
commit
184130d1ca
@ -2,9 +2,6 @@ if [ $CRYPT = "Yes" ]; then
|
|||||||
echo "" >> ${DBP_INFO}
|
echo "" >> ${DBP_INFO}
|
||||||
echo "Mystic SSL Support" >> ${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 "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}
|
||||||
echo "==============================================================================================================" >> ${DBP_INFO}
|
echo "==============================================================================================================" >> ${DBP_INFO}
|
||||||
fi
|
fi
|
@ -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.4 ${LIBDIR}/libcl.so.3 &>/dev/null
|
||||||
ln -sf libcl.so.3 ${LIBDIR}/libcl.so &>/dev/null
|
ln -sf libcl.so.3 ${LIBDIR}/libcl.so &>/dev/null
|
||||||
popd &>/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 purge -y gcc g++ cpp &>/dev/null
|
||||||
apt install -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
|
fi
|
||||||
|
|
@ -1,3 +1,3 @@
|
|||||||
for file in $(ls *-v2.sh) ; do
|
for file in $(ls *-v3.sh) ; do
|
||||||
cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')"
|
cp -- "${file}" "$(echo "${file}" | sed -e 's/v3\.sh/v4\.sh/')"
|
||||||
done
|
done
|
@ -1,3 +1,3 @@
|
|||||||
for file in $(ls *-v2.sh) ; do
|
for file in $(ls *-v3.sh) ; do
|
||||||
cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')"
|
cp -- "${file}" "$(echo "${file}" | sed -e 's/v3\.sh/v4\.sh/')"
|
||||||
done
|
done
|
@ -1,3 +1,3 @@
|
|||||||
for file in $(ls *-v2.sh) ; do
|
for file in $(ls *-v3.sh) ; do
|
||||||
cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')"
|
cp -- "${file}" "$(echo "${file}" | sed -e 's/v3\.sh/v4\.sh/')"
|
||||||
done
|
done
|
@ -1,3 +1,3 @@
|
|||||||
for file in $(ls *-v2.sh) ; do
|
for file in $(ls *-v3.sh) ; do
|
||||||
cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')"
|
cp -- "${file}" "$(echo "${file}" | sed -e 's/v3\.sh/v4\.sh/')"
|
||||||
done
|
done
|
@ -13,7 +13,7 @@ APP="Mystic BBS"
|
|||||||
MSDIR="/opt/mystic"
|
MSDIR="/opt/mystic"
|
||||||
MSTEMPDIR="/usr/local/src/mystic"
|
MSTEMPDIR="/usr/local/src/mystic"
|
||||||
TMP_DIR=$(mktemp -d)
|
TMP_DIR=$(mktemp -d)
|
||||||
SCRIPT_VER="v3"
|
SCRIPT_VER="v4"
|
||||||
|
|
||||||
GROUP=$(getent group mystic)
|
GROUP=$(getent group mystic)
|
||||||
USER=$(getent shadow mystic)
|
USER=$(getent shadow mystic)
|
||||||
|
13
install.sh
13
install.sh
@ -13,7 +13,7 @@ APP="Mystic BBS"
|
|||||||
MSDIR="/opt/mystic"
|
MSDIR="/opt/mystic"
|
||||||
MSTEMPDIR="/usr/local/src/mystic"
|
MSTEMPDIR="/usr/local/src/mystic"
|
||||||
TMP_DIR=$(mktemp -d)
|
TMP_DIR=$(mktemp -d)
|
||||||
SCRIPT_VER="v2"
|
SCRIPT_VER="v3"
|
||||||
|
|
||||||
GROUP=$(getent group mystic)
|
GROUP=$(getent group mystic)
|
||||||
USER=$(getent shadow mystic)
|
USER=$(getent shadow mystic)
|
||||||
@ -62,7 +62,7 @@ function msg_ok() {
|
|||||||
|
|
||||||
msg_info "Installing needed base packages"
|
msg_info "Installing needed base packages"
|
||||||
apt update &>/dev/null
|
apt update &>/dev/null
|
||||||
apt install lsb-release dpkg-dev wget curl figlet lolcat unzip -y &>/dev/null
|
apt install lsb-release dpkg-dev wget curl figlet lolcat unzip whiptail dialog -y &>/dev/null
|
||||||
msg_ok "Installing needed base packages"
|
msg_ok "Installing needed base packages"
|
||||||
|
|
||||||
function header_info {
|
function header_info {
|
||||||
@ -82,18 +82,22 @@ if [ "${ARCH}" = "x86_64-linux-gnu" ]; then
|
|||||||
INIMOD_ARCH="amd64"
|
INIMOD_ARCH="amd64"
|
||||||
MYSTIC_ARCH="l64"
|
MYSTIC_ARCH="l64"
|
||||||
MYSTIC_EXT="rar"
|
MYSTIC_EXT="rar"
|
||||||
|
RARLAB="rar"
|
||||||
elif [ "${ARCH}" = "i386-linux-gnu" ]; then
|
elif [ "${ARCH}" = "i386-linux-gnu" ]; then
|
||||||
INIMOD_ARCH="amd32"
|
INIMOD_ARCH="amd32"
|
||||||
MYSTIC_ARCH="l32"
|
MYSTIC_ARCH="l32"
|
||||||
MYSTIC_EXT="rar"
|
MYSTIC_EXT="rar"
|
||||||
|
RARLAB="rar"
|
||||||
elif [ "${ARCH}" = "aarch64-linux-gnu" ]; then
|
elif [ "${ARCH}" = "aarch64-linux-gnu" ]; then
|
||||||
INIMOD_ARCH="arm64"
|
INIMOD_ARCH="arm64"
|
||||||
MYSTIC_ARCH="p64"
|
MYSTIC_ARCH="p64"
|
||||||
MYSTIC_EXT="zip"
|
MYSTIC_EXT="zip"
|
||||||
|
RARLAB=""
|
||||||
elif [ "${ARCH}" = "arm-linux-gnueabihf" ]; then
|
elif [ "${ARCH}" = "arm-linux-gnueabihf" ]; then
|
||||||
INIMOD_ARCH="arm32"
|
INIMOD_ARCH="arm32"
|
||||||
MYSTIC_ARCH="p32"
|
MYSTIC_ARCH="p32"
|
||||||
MYSTIC_EXT="zip"
|
MYSTIC_EXT="zip"
|
||||||
|
RARLAB=""
|
||||||
else
|
else
|
||||||
echo "Architecture not supported: ${ARCH}"
|
echo "Architecture not supported: ${ARCH}"
|
||||||
exit 1
|
exit 1
|
||||||
@ -119,11 +123,6 @@ echo "deb http://security.debian.org bullseye-security contrib non-free main" >>
|
|||||||
msg_ok "adding bullseye repository to bookworm for python2"
|
msg_ok "adding bullseye repository to bookworm for python2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "adding jessie lts repository for openssl 1.0"
|
|
||||||
wget https://deb.freexian.com/extended-lts/archive-key.gpg -O /etc/apt/trusted.gpg.d/freexian-archive-extended-lts.gpg &>/dev/null
|
|
||||||
echo "deb http://deb.freexian.com/extended-lts jessie main contrib non-free" > /etc/apt/sources.list.d/jessie-extended-lts.list
|
|
||||||
msg_ok "adding jessie lts repository for openssl 1.0"
|
|
||||||
|
|
||||||
msg_info "Setting up ${APP} Repository"
|
msg_info "Setting up ${APP} Repository"
|
||||||
apt install -y software-properties-common &>/dev/null
|
apt install -y software-properties-common &>/dev/null
|
||||||
if [ "${DIST}" = "Debian" ]; then
|
if [ "${DIST}" = "Debian" ]; then
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
for file in $(ls *-v2.sh) ; do
|
for file in $(ls *-v3.sh) ; do
|
||||||
cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')"
|
cp -- "${file}" "$(echo "${file}" | sed -e 's/v3\.sh/v4\.sh/')"
|
||||||
done
|
done
|
@ -1,3 +1,3 @@
|
|||||||
for file in $(ls *-v2.sh) ; do
|
for file in $(ls *-v3.sh) ; do
|
||||||
cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')"
|
cp -- "${file}" "$(echo "${file}" | sed -e 's/v3\.sh/v4\.sh/')"
|
||||||
done
|
done
|
@ -1,3 +1,3 @@
|
|||||||
for file in $(ls *-v2.sh) ; do
|
for file in $(ls *-v3.sh) ; do
|
||||||
cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')"
|
cp -- "${file}" "$(echo "${file}" | sed -e 's/v3\.sh/v4\.sh/')"
|
||||||
done
|
done
|
@ -7,10 +7,8 @@ echo -e "${DGN}Install Mystic to: ${BGN}$MYSTIC_DIR${CL}"
|
|||||||
read -p "Press enter to continue"
|
read -p "Press enter to continue"
|
||||||
|
|
||||||
msg_info "Starting ${APP} Installation"
|
msg_info "Starting ${APP} Installation"
|
||||||
#apt install -y python3 python2 libpython2.7 arj zip unrar dos2unix ${RARLAB} &>/dev/null
|
apt install -y python3 python2 libpython2.7 arj zip unrar dos2unix ${RARLAB} &>/dev/null
|
||||||
apt install -y python3 python2 libpython2.7 arj zip unrar dos2unix ${RARLAB}
|
wget -N http://www.mysticbbs.com/${UPSTREAM}/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} -O $MSTEMPDIR/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} &>/dev/null
|
||||||
#wget -N http://www.mysticbbs.com/${UPSTREAM}/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} -O $MSTEMPDIR/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} &>/dev/null
|
|
||||||
wget -N http://www.mysticbbs.com/${UPSTREAM}/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} -O $MSTEMPDIR/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT}
|
|
||||||
rm -rf $MSTEMPDIR/mystic-${MYSTIC_VER} &>/dev/null
|
rm -rf $MSTEMPDIR/mystic-${MYSTIC_VER} &>/dev/null
|
||||||
mkdir -p $MSTEMPDIR/mystic-${MYSTIC_VER} &>/dev/null
|
mkdir -p $MSTEMPDIR/mystic-${MYSTIC_VER} &>/dev/null
|
||||||
pushd $MSTEMPDIR/mystic-${MYSTIC_VER} &>/dev/null
|
pushd $MSTEMPDIR/mystic-${MYSTIC_VER} &>/dev/null
|
||||||
|
@ -7,7 +7,7 @@ echo -e "${DGN}Install Mystic to: ${BGN}$MYSTIC_DIR${CL}"
|
|||||||
read -p "Press enter to continue"
|
read -p "Press enter to continue"
|
||||||
|
|
||||||
msg_info "Starting ${APP} Installation"
|
msg_info "Starting ${APP} Installation"
|
||||||
apt install -y python3 python2 libpython2.7 arj zip rar unrar &>/dev/null
|
apt install -y python3 python2 libpython2.7 arj zip unrar dos2unix ${RARLAB} &>/dev/null
|
||||||
wget -N http://www.mysticbbs.com/${UPSTREAM}/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} -O $MSTEMPDIR/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} &>/dev/null
|
wget -N http://www.mysticbbs.com/${UPSTREAM}/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} -O $MSTEMPDIR/mys${MYSTIC_VER}_${MYSTIC_ARCH}.${MYSTIC_EXT} &>/dev/null
|
||||||
rm -rf $MSTEMPDIR/mystic-${MYSTIC_VER} &>/dev/null
|
rm -rf $MSTEMPDIR/mystic-${MYSTIC_VER} &>/dev/null
|
||||||
mkdir -p $MSTEMPDIR/mystic-${MYSTIC_VER} &>/dev/null
|
mkdir -p $MSTEMPDIR/mystic-${MYSTIC_VER} &>/dev/null
|
||||||
@ -34,7 +34,7 @@ if [ -z "${GROUP}" ]; then
|
|||||||
groupadd mystic &>/dev/null
|
groupadd mystic &>/dev/null
|
||||||
fi
|
fi
|
||||||
if [ -z "${USER}" ]; then
|
if [ -z "${USER}" ]; then
|
||||||
useradd --home-dir ${MYSTIC_DIR} -g mystic mystic &>/dev/null
|
useradd -m --home-dir ${MYSTIC_DIR} -g mystic mystic &>/dev/null
|
||||||
fi
|
fi
|
||||||
chown mystic:mystic -R ${MYSTIC_DIR} &>/dev/null
|
chown mystic:mystic -R ${MYSTIC_DIR} &>/dev/null
|
||||||
find ${MYSTIC_DIR} -name '*.txt' -type f -exec dos2unix {} \; &>/dev/null
|
find ${MYSTIC_DIR} -name '*.txt' -type f -exec dos2unix {} \; &>/dev/null
|
||||||
@ -54,11 +54,13 @@ find ${MYSTIC_DIR} -name '*.ms' -type f -exec chmod 0664 {} \; &>/dev/null
|
|||||||
msg_ok "Creating ${APP} und setting Permissions in ${MYSTIC_DIR}"
|
msg_ok "Creating ${APP} und setting Permissions in ${MYSTIC_DIR}"
|
||||||
|
|
||||||
msg_info "Installing ${APP} Systemd Start/Stop Scripts and Service File"
|
msg_info "Installing ${APP} Systemd Start/Stop Scripts and Service File"
|
||||||
|
MID=$(id -u mystic)
|
||||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis-start.sh > ${MYSTIC_DIR}/mis-start
|
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis-start.sh > ${MYSTIC_DIR}/mis-start
|
||||||
chmod +x ${MYSTIC_DIR}/mis-start
|
chmod +x ${MYSTIC_DIR}/mis-start
|
||||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis-stop.sh > ${MYSTIC_DIR}/mis-stop
|
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis-stop.sh > ${MYSTIC_DIR}/mis-stop
|
||||||
chmod +x ${MYSTIC_DIR}/mis-stop
|
chmod +x ${MYSTIC_DIR}/mis-stop
|
||||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis.service > /etc/systemd/system/mystic.service
|
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis.service > /etc/systemd/system/mystic.service
|
||||||
|
sed -e "s!@MID@!${MID}!g" $MSTEMPDIR/mystic/mystic/mystic.conf.tmpfiles.d > /etc/tmpfiles.d/mystic.conf
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
msg_ok "Installing ${APP} Systemd Start/Stop Scripts and Service File"
|
msg_ok "Installing ${APP} Systemd Start/Stop Scripts and Service File"
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
pushd ${MUTIL_DIR} &>/dev/null
|
pushd ${MUTIL_DIR} &>/dev/null
|
||||||
|
|
||||||
configfile="maint.ini"
|
configfile="maint.ini"
|
||||||
config=('PurgeMessageBases' 'PackMessageBases' 'MergeNodeLists' 'PackFileBases' 'PurgeUserBase' 'PackUserBase' 'FileSort')
|
config=('PurgeMessageBases' 'PackMessageBases' 'MergeNodeLists' 'PackFileBases' 'LinkMessages' 'PurgeUserBase' 'PackUserBase' 'FileSort')
|
||||||
msg_info "Merging ${config} into ${configfile}"
|
msg_info "Merging ${config} into ${configfile}"
|
||||||
preparray=("${configarray[@]}")
|
preparray=("${configarray[@]}")
|
||||||
for el in ${config[@]}
|
for el in ${config[@]}
|
@ -1,3 +1,3 @@
|
|||||||
for file in $(ls *-v2.sh) ; do
|
for file in $(ls *-v3.sh) ; do
|
||||||
cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')"
|
cp -- "${file}" "$(echo "${file}" | sed -e 's/v3\.sh/v4\.sh/')"
|
||||||
done
|
done
|
@ -1,3 +1,3 @@
|
|||||||
for file in $(ls *-v2.sh) ; do
|
for file in $(ls *-v3.sh) ; do
|
||||||
cp -- "${file}" "$(echo "${file}" | sed -e 's/v2\.sh/v3\.sh/')"
|
cp -- "${file}" "$(echo "${file}" | sed -e 's/v3\.sh/v4\.sh/')"
|
||||||
done
|
done
|
Loading…
Reference in New Issue
Block a user