diff --git a/scripts/install-gpa.sh b/scripts/install-gpa.sh new file mode 100755 index 0000000..ebcf2aa --- /dev/null +++ b/scripts/install-gpa.sh @@ -0,0 +1,49 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 6 March 2026 +# Purpose : Install GNU Privacy Assistant +set -e +trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG +trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR + +. ./env.sh +. ../overlay/opt/emcomm-tools/bin/et-common + +APP=gpa +VERSION=0.11.1 +DOWNLOAD_FILE="${APP}-${VERSION}.tar.bz2" +URL="https://www.gnupg.org/ftp/gcrypt/gpa/${DOWNLOAD_FILE}" +INSTALL_DIR=/opt/${APP}-${VERSION} +LINK_PATH=/opt/${APP} + +et-log "Installing ${APP} ${VERSION}..." + +et-log "Installing build dependencies..." +apt install \ + libgtk-3-dev \ + libgpg-error-dev \ + libgpgme-dev \ + -y + +if [[ ! -e ${ET_DIST_DIR}/${DOWNLOAD_FILE} ]]; then + et-log "Downloading ${URL}" + download_with_retries ${URL} ${DOWNLOAD_FILE} + mv ${DOWNLOAD_FILE} ${ET_DIST_DIR} +fi + +CWD_DIR=`pwd` + +cd ${ET_SRC_DIR} +tar -xjf ${ET_DIST_DIR}/${DOWNLOAD_FILE} && cd ${APP}-${VERSION} + +[[ ! -e ${INSTALL_DIR} ]] && mkdir -v ${INSTALL_DIR} + +./configure --prefix=${INSTALL_DIR} +make && make install + +[[ -e ${LINK_PATH} ]] && rm ${LINK_PATH} +ln -s ${INSTALL_DIR} ${LINK_PATH} + +stow -v -d /opt ${APP} -t /usr/local + +cd ${CWD_DIR} diff --git a/scripts/install.sh b/scripts/install.sh index 0584e4b..6e92d5b 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 16 March 2024 -# Updated : 15 February 2026 +# Updated : 6 March 2026 # Purpose : Main installer for EmComm Tools Community (ETC) . ./env.sh @@ -98,3 +98,6 @@ exitIfNotRoot # Instal SIGINT tools ./install-artemis.sh ./install-minimodem.sh + +# Install security tools +./install-gpa.sh diff --git a/tests/test-audacity.sh b/tests/test-audacity.sh new file mode 100755 index 0000000..3f4d633 --- /dev/null +++ b/tests/test-audacity.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 6 March 2026 +# Purpose : Test Audacity installation + +OUT=$(which audacity) +exit $? diff --git a/tests/test-gpa.sh b/tests/test-gpa.sh new file mode 100755 index 0000000..3c97978 --- /dev/null +++ b/tests/test-gpa.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 6 March 2026 +# Purpose : Test GNU Privacy Assistance installation + +OUT=$(which gpa) +exit $?