linbpq - Added initial support for the 32-bit installation of linbpq

This commit is contained in:
Gaston Gonzalez
2024-11-08 05:03:31 -07:00
parent e61e4a5a46
commit 2f4d324b86
2 changed files with 50 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
#!/bin/bash
# Author : Gaston Gonzalez
# Date : 8 November 2024
# Purpose : Install Linbpq
#
# Notes:
# These build steps are based on a article by the Modern Ham (KN4MKB).
# https://themodernham.com/install-linbpq-bbs-packet-node-on-debian-ubuntu-and-raspbian/
VERSION=latest
FILE=linbpq
LINK_PATH=/opt/linbpq
INSTALL_DIR=/opt/linbpq-${VERSION}
INSTALL_BIN_DIR=${INSTALL_DIR}/bin
et-log "Installing Linbpq..."
et-log "Install 32-bit dependencies..."
dpkg --add-architecture i386 && apt update && apt install \
libpcap0.8-dev:i386 \
libasound2-dev:i386 \
libz3-4:i386 \
zlib1g:i386 \
-y
URL="https://www.cantab.net/users/john.wiseman/Downloads/${FILE}"
if [ ! -e ${FILE} ]; then
et-log "Downloading Linbpq: ${URL}"
curl -s -L -o ${FILE} --fail ${URL}
fi
[ ! -e ${INSTALL_BIN_DIR} ] && mkdir -v -p ${INSTALL_BIN_DIR}
chmod 755 ${FILE} && mv -v ${FILE} ${INSTALL_BIN_DIR}
CWD_DIR=$(pwd)
[ -e ${LINK_PATH} ] && rm ${LINK_PATH}
ln -s ${INSTALL_DIR} ${LINK_PATH}
stow -v -d /opt linbpq -t /usr/local
cd ${CWD_DIR}
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
# Author : Gaston Gonzalez
# Date : 8 November 2024
# Purpose : Test Linbpq installation
OUT=$(linbpq -h | grep "G8BPQ")
exit $?