From b447f96367f9a844ca104ff32498f3e05e0bb09d Mon Sep 17 00:00:00 2001 From: Bill <49030026+w4rfc@users.noreply.github.com> Date: Sat, 17 Dec 2022 14:30:09 -0500 Subject: [PATCH 1/3] DIREWOLF_DEV.bapp # Install current dev branch (1.7) to enable DNS-SD / Zeroconf for KISS TNC service to work with MobileMail for iOS # Install libavahi-client-dev, as required for DNS-SD registration of service --- app/community/x86_64/DIREWOLF_DEV.bapp | 63 ++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 app/community/x86_64/DIREWOLF_DEV.bapp diff --git a/app/community/x86_64/DIREWOLF_DEV.bapp b/app/community/x86_64/DIREWOLF_DEV.bapp new file mode 100644 index 0000000..39ebb1e --- /dev/null +++ b/app/community/x86_64/DIREWOLF_DEV.bapp @@ -0,0 +1,63 @@ +BAPP=4.0 +ID=DIREWOLF +Name=direwolf +Comment='Software TNC' +Ver=1.7 +localVer=1.7 + +# Install current dev version (1.7) to enable DNS-SD / Zeroconf for KISS TNC service to work with MobileMail for iOS + +INSTALL(){ + + CLEANSOURCE(){ + #this function removes any old source files before + #new files are downloaded for installation. This + #function is called by install functions below. + PACKAGE=$(ls $BUILDDIR | grep $PACKAGE) + + if [ -d $BUILDDIR/$PACKAGE ]; then + sudo rm -rf $BUILDDIR/$PACKAGE* + fi + + } + + PACKAGE=direwolf + CLEANSOURCE + cd ${BUILDDIR} || return + # changed to included --branch dev + git clone --branch dev https://www.github.com/wb2osz/direwolf + cd ${BUILDDIR}/direwolf || return + mkdir build + cd build + sudo apt-get install -y libasound2-dev cmake libudev-dev + # Install libavahi-client-dev, as required for DNS-SD registration of service + sudo apt-get install libavahi-client-dev + cmake .. + make -j 4 + sudo make install + make install-conf + sudo make clean + sed -i "s/N0CALL/${CALL}/" "${HOME}/direwolf.conf" + sed -i 's/# ADEVICE plughw:1,0/ADEVICE plughw:3,0/' ${HOME}/direwolf.conf + sed -i '/#PTT\ \/dev\/ttyUSB0\ RTS/a #Uncomment line below for PTT with CAT through FLRIG\n#PTT RIG 2 localhost:4532' ${HOME}/direwolf.conf + +} + +VERSION(){ +if ! hash direwolf 2>/dev/null; then + CURRENT=0 + wget -P /tmp/ https://raw.githubusercontent.com/wb2osz/direwolf/master/CHANGES.md >/dev/null 2>&1 + NEWVER=$(cat /tmp/CHANGES.md | head -5 | tail -1 | awk '{ print $3 }') +else + CURRENT=$(direwolf -S -t 0 | head -1 | sed 's/Dire\ Wolf\ version\ //') + wget -P /tmp/ https://raw.githubusercontent.com/wb2osz/direwolf/master/CHANGES.md >/dev/null 2>&1 + NEWVER=$(cat /tmp/CHANGES.md | head -5 | tail -1 | awk '{ print $3 }') +fi +} + +REMOVE(){ + DIR=$(ls ${BUILDDIR} | grep direwolf) + cd ${BUILDDIR}/${DIR}/build + sudo make uninstall + rm ${HOME}/direwolf.conf ${HOME}/telem-balloon.conf ${HOME}/telem-m0xer-3.txt ${HOME}/telem-volts.conf ${HOME}/sdr.conf +} From 56cc8a107aa7798c3ed12f975da786aec59ee07e Mon Sep 17 00:00:00 2001 From: Bill <49030026+w4rfc@users.noreply.github.com> Date: Sat, 17 Dec 2022 15:05:41 -0500 Subject: [PATCH 2/3] Update DIREWOLF_DEV.bapp --- app/community/x86_64/DIREWOLF_DEV.bapp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/community/x86_64/DIREWOLF_DEV.bapp b/app/community/x86_64/DIREWOLF_DEV.bapp index 39ebb1e..c905f94 100644 --- a/app/community/x86_64/DIREWOLF_DEV.bapp +++ b/app/community/x86_64/DIREWOLF_DEV.bapp @@ -31,7 +31,7 @@ INSTALL(){ cd build sudo apt-get install -y libasound2-dev cmake libudev-dev # Install libavahi-client-dev, as required for DNS-SD registration of service - sudo apt-get install libavahi-client-dev + sudo apt-get install -y libavahi-client-dev cmake .. make -j 4 sudo make install From fb2a7dfbe6ce4160121612afcd27b35c68c1ba1e Mon Sep 17 00:00:00 2001 From: w4rfc Date: Sat, 17 Dec 2022 20:18:40 -0500 Subject: [PATCH 3/3] debug --- app/community/x86_64/DIREWOLF_DEV.bapp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/community/x86_64/DIREWOLF_DEV.bapp b/app/community/x86_64/DIREWOLF_DEV.bapp index c905f94..ce60017 100644 --- a/app/community/x86_64/DIREWOLF_DEV.bapp +++ b/app/community/x86_64/DIREWOLF_DEV.bapp @@ -1,6 +1,6 @@ BAPP=4.0 -ID=DIREWOLF -Name=direwolf +ID=DIREWOLF_DEV +Name=direwolf_dev Comment='Software TNC' Ver=1.7 localVer=1.7 @@ -21,7 +21,7 @@ INSTALL(){ } - PACKAGE=direwolf + PACKAGE=direwolf_dev CLEANSOURCE cd ${BUILDDIR} || return # changed to included --branch dev