Factorizing GR mods install + keeping sources including examples for each mods

This commit is contained in:
FlUxIuS 2024-07-19 15:37:08 +02:00
parent 8a48ecf467
commit 238f40032b
No known key found for this signature in database
GPG Key ID: E8B96449EE4FA72F
2 changed files with 177 additions and 570 deletions

View File

@ -38,3 +38,26 @@ function installfromnet() {
sleep 15 sleep 15
done done
} }
function install_dependencies() {
local dependencies=$1
goodecho "[+] Installing dependencies: ${dependencies}"
installfromnet "apt-fast install -y ${dependencies}"
}
function grclone_and_build() {
local repo_url=$1
local repo_dir=$2
goodecho "[+] Cloning ${repo_dir}"
[ -d /rftools/sdr/oot ] || mkdir -p /rftools/sdr/oot
cd /rftools/sdr/oot
installfromnet "git clone ${repo_url}"
goodecho "[+] Building and installing ${repo_dir}"
cd ${repo_dir}
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ../
make -j$(nproc); sudo make install
cd ..
rm -R build
}

View File

@ -1,343 +1,110 @@
#!/bin/bash #!/bin/bash
function common_sources_and_sinks() { function common_sources_and_sinks() {
goodecho "[+] Installing osmosdr OOT modules" grclone_and_build "https://github.com/osmocom/gr-osmosdr.git" "gr-osmosdr"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/osmocom/gr-osmosdr.git"
cd gr-osmosdr/ \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grgsm_grmod_install() { function grgsm_grmod_install() {
goodecho "[+] Installing osmocore" install_dependencies "build-essential libtool libtalloc-dev libsctp-dev shtool autoconf automake git-core pkg-config make gcc gnutls-dev libusb-1.0-0-dev libmnl-dev libosmocore libosmocore-dev"
installfromnet "apt-fast install -y build-essential libtool libtalloc-dev libsctp-dev shtool autoconf automake git-core pkg-config make gcc gnutls-dev libusb-1.0-0-dev libmnl-dev" grclone_and_build "https://github.com/bkerler/gr-gsm.git" "gr-gsm"
installfromnet "apt-fast install -y libosmocore libosmocore-dev"
goodecho "[+] Cloning gr-gsm"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/bkerler/gr-gsm.git"
cd gr-gsm \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grlora_grmod_install() { function grlora_grmod_install() {
goodecho "[+] Installing liquid-dsp" install_dependencies "libliquid-dev libliquid2d"
installfromnet "apt-fast install -y libliquid-dev libliquid2d" grclone_and_build "https://github.com/rpp0/gr-lora.git" "gr-lora"
goodecho "[+] Cloning gr-lora"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/rpp0/gr-lora.git"
goodecho "[+] Building and installing gr-lora"
cd gr-lora \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grlorasdr_grmod_install() { function grlorasdr_grmod_install() {
goodecho "[+] Cloning gr-lora_sdr" grclone_and_build "https://github.com/tapparelj/gr-lora_sdr.git" "gr-lora_sdr"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/tapparelj/gr-lora_sdr.git"
goodecho "[+] Building and installing gr-lora_sdr"
cd gr-lora_sdr \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grinspector_grmod_install() { function grinspector_grmod_install() {
installfromnet "apt-fast install -y libqwt-qt5-dev" install_dependencies "libqwt-qt5-dev"
goodecho "[+] Cloning gr-inspector" grclone_and_build "https://github.com/gnuradio/gr-inspector.git" "gr-inspector"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/gnuradio/gr-inspector.git"
goodecho "[+] Building and installing gr-inspector"
cd gr-inspector \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function griridium_grmod_install() { function griridium_grmod_install() {
goodecho "[+] Cloning gr-iridum" grclone_and_build "https://github.com/muccc/gr-iridium.git" "gr-iridium"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/muccc/gr-iridium.git"
cd gr-iridium
goodecho "[+] Building and installing gr-iridum"
cmake -B build
cmake --build build
cmake --install build
ldconfig
} }
function gruaslink_grmod_install () { # TODO: Python2 to Python3 fixes to do function gruaslink_grmod_install() {
goodecho "[+] Cloning gr-uaslink" grclone_and_build "https://github.com/bkerler/gr-uaslink.git" "gr-uaslink"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/bkerler/gr-uaslink.git"
goodecho "[+] Building and installing gr-uaslink"
cd gr-uaslink \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grX10_grmod_install() { function grX10_grmod_install() {
goodecho "[+] Cloning gr-X10" grclone_and_build "https://github.com/cpoore1/gr-X10.git" "gr-X10"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/cpoore1/gr-X10.git"
goodecho "[+] Building and installing gr-X10"
cd gr-X10 \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grgfdm_grmod_install() { function grgfdm_grmod_install() {
goodecho "[+] Cloning gr-gfdm" grclone_and_build "https://github.com/bkerler/gr-gfdm.git" "gr-gfdm"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/bkerler/gr-gfdm.git"
goodecho "[+] Building and installing gr-gfdm"
cd gr-gfdm \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function graaronia_rtsa_grmod_install() { function graaronia_rtsa_grmod_install() {
goodecho "[+] Installing gr-aaronia_rtsa dependencies" install_dependencies "rapidjson-dev"
installfromnet "apt-fast install -y rapidjson-dev"
goodecho "[+] Cloning and installing libspectranstream" goodecho "[+] Cloning and installing libspectranstream"
[ -d /root/thirdparty ] || mkdir /root/thirdparty [ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty cd /root/thirdparty
installfromnet "git clone https://github.com/hb9fxq/libspectranstream.git" installfromnet "git clone https://github.com/hb9fxq/libspectranstream.git"
cd libspectranstream \ cd libspectranstream
&& mkdir build \ mkdir build
&& cd build/ \ cd build
&& cmake ../ \ cmake ../
&& make -j$(nproc); sudo make install make -j$(nproc); sudo make install
goodecho "[+] Cloning gr-aaronia_rtsa" grclone_and_build "https://github.com/hb9fxq/gr-aaronia_rtsa.git" "gr-aaronia_rtsa"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/hb9fxq/gr-aaronia_rtsa.git"
goodecho "[+] Building and installing gr-aaronia_rtsa"
cd gr-aaronia_rtsa \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grccsds_move_rtsa_grmod_install() { function grccsds_move_rtsa_grmod_install() {
goodecho "[+] Installing gr-ccsds_move dependencies" install_dependencies "rapidjson-dev"
installfromnet "apt-fast install -y rapidjson-dev" grclone_and_build "https://github.com/bkerler/gr-ccsds_move.git" "gr-ccsds_move"
goodecho "[+] Cloning gr-ccsds_move"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/bkerler/gr-ccsds_move.git"
goodecho "[+] Building and installing gr-ccsds_move"
cd gr-ccsds_move \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grais_grmod_install() { function grais_grmod_install() {
goodecho "[+] Cloning gr-ais" grclone_and_build "https://github.com/bkerler/gr-ais.git" "gr-ais"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/bkerler/gr-ais.git"
goodecho "[+] Building and installing gr-ais"
cd gr-ais \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function graistx_grmod_install() { function graistx_grmod_install() {
goodecho "[+] Cloning gr-ais-tx" grclone_and_build "https://github.com/bkerler/ais.git" "ais/gr-aistx"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone -b maint-3.10 https://github.com/bkerler/ais.git"
goodecho "[+] Building and installing gr-ais-tx"
cd ais/gr-aistx \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grairmodes_grmod_install() { function grairmodes_grmod_install() {
goodecho "[+] Cloning gr-air-modes" grclone_and_build "https://github.com/bistromath/gr-air-modes.git" "gr-air-modes"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone -b gr3.9 https://github.com/bistromath/gr-air-modes.git"
goodecho "[+] Building and installing gr-air-modes"
cd gr-air-modes \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grj2497_grmod_install() { function grj2497_grmod_install() {
goodecho "[+] Cloning gr-j2497" grclone_and_build "https://github.com/ainfosec/gr-j2497.git" "gr-j2497"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/ainfosec/gr-j2497.git"
goodecho "[+] Building and installing gr-j2497"
cd gr-j2497 \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grzwavepoore_grmod_install() { function grzwavepoore_grmod_install() {
goodecho "[+] Cloning gr-zwave_poore" grclone_and_build "https://github.com/cpoore1/gr-zwave_poore.git" "gr-zwave_poore"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/cpoore1/gr-zwave_poore.git"
goodecho "[+] Building and installing gr-zwave_poore"
cd gr-zwave_poore \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grmixalot_grmod_install() { function grmixalot_grmod_install() {
goodecho "[+] Cloning gr-mixalot" grclone_and_build "https://github.com/unsynchronized/gr-mixalot.git" "gr-mixalot"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/unsynchronized/gr-mixalot.git"
goodecho "[+] Building and installing gr-mixalot"
cd gr-mixalot \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grreveng_grmod_install() { function grreveng_grmod_install() {
goodecho "[+] Cloning gr-reveng" grclone_and_build "https://github.com/paulgclark/gr-reveng.git" "gr-reveng"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/paulgclark/gr-reveng.git"
goodecho "[+] Building and installing gr-reveng"
cd gr-reveng \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grpdu_utils_grmod_install() { function grpdu_utils_grmod_install() {
goodecho "[+] Cloning gr-sandia_utils" grclone_and_build "https://github.com/sandialabs/gr-pdu_utils.git" "gr-pdu_utils"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/sandialabs/gr-pdu_utils.git"
goodecho "[+] Building and installing gr-pdu_utils"
cd gr-pdu_utils \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grsandia_utils_grmod_install() { function grsandia_utils_grmod_install() {
goodecho "[+] Cloning gr-sandia_utils" grclone_and_build "https://github.com/bkerler/gr-sandia_utils.git" "gr-sandia_utils"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/bkerler/gr-sandia_utils.git"
goodecho "[+] Building and installing gr-sandia_utils"
cd gr-sandia_utils \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grdvbs2_grmod_install() { function grdvbs2_grmod_install() {
goodecho "[+] Cloning gr-dvbs2" grclone_and_build "https://github.com/bkerler/gr-dvbs2.git" "gr-dvbs2"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/bkerler/gr-dvbs2.git"
goodecho "[+] Building and installing gr-dvbs2"
cd gr-dvbs2 \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grtempest_grmod_install () { # Original gr-tempest mod function grtempest_grmod_install() {
goodecho "[+] Cloning gr-tempest" grclone_and_build "https://github.com/nash-pillai/gr-tempest.git" "gr-tempest"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/nash-pillai/gr-tempest.git"
goodecho "[+] Building and installing gr-tempest"
cd gr-tempest \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function deeptempest_grmod_install () { # extended gr-tempest with DL function deeptempest_grmod_install() {
goodecho "[+] Cloning deep-tempest" grclone_and_build "https://github.com/PentHertz/deep-tempest.git" "deep-tempest/gr-tempest"
[ -d /rftools/sdr ] || mkdir /rftools/sdr cd deep-tempest/examples
cd /rftools/sdr
installfromnet "git clone https://github.com/PentHertz/deep-tempest.git"
goodecho "[+] Building and installing deep-tempest"
cd deep-tempest/gr-tempest \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../
cd examples
grcc *.grc grcc *.grc
mkdir -p /root/.grc_gnuradio mkdir -p /root/.grc_gnuradio
cp *.block.yml /root/.grc_gnuradio cp *.block.yml /root/.grc_gnuradio
@ -348,124 +115,41 @@ function deeptempest_grmod_install () { # extended gr-tempest with DL
} }
function grfhss_utils_grmod_install() { function grfhss_utils_grmod_install() {
goodecho "[+] Cloning gr-fhss_utils" grclone_and_build "https://github.com/sandialabs/gr-fhss_utils.git" "gr-fhss_utils"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/sandialabs/gr-fhss_utils.git"
goodecho "[+] Building and installing gr-fhss_utils"
cd gr-fhss_utils \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grtiming_utils_grmod_install() { function grtiming_utils_grmod_install() {
goodecho "[+] Cloning gr-timing_utils" grclone_and_build "https://github.com/sandialabs/gr-timing_utils.git" "gr-timing_utils"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/sandialabs/gr-timing_utils.git"
goodecho "[+] Building and installing gr-timing_utils"
cd gr-timing_utils \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grdab_grmod_install() { function grdab_grmod_install() {
goodecho "[+] Installing gr-dab dependencies" install_dependencies "libfaad-dev"
installfromnet "apt-fast install -y libfaad-dev" grclone_and_build "https://github.com/bkerler/gr-dab.git" "gr-dab"
goodecho "[+] Cloning gr-dab"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/bkerler/gr-dab.git"
goodecho "[+] Building and installing gr-dab"
cd gr-dab \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grdect2_grmod_install() { function grdect2_grmod_install() {
goodecho "[+] Cloning gr-dect2" grclone_and_build "https://github.com/pavelyazev/gr-dect2.git" "gr-dect2"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/pavelyazev/gr-dect2.git"
goodecho "[+] Building and installing gr-dect2"
cd gr-dect2 \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grfoo_grmod_install() { function grfoo_grmod_install() {
goodecho "[+] Cloning gr-foo" grclone_and_build "https://github.com/bastibl/gr-foo.git" "gr-foo"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/bastibl/gr-foo.git"
goodecho "[+] Building and installing gr-foo"
cd gr-foo \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grieee802-11_grmod_install() { function grieee802-11_grmod_install() {
goodecho "[+] Cloning gr-ieee802-11" grclone_and_build "https://github.com/bastibl/gr-ieee802-11.git" "gr-ieee802-11"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/bastibl/gr-ieee802-11.git"
goodecho "[+] Building and installing gr-ieee802-11"
cd gr-ieee802-11 \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grieee802154_grmod_install() { function grieee802154_grmod_install() {
goodecho "[+] Cloning gr-foo" grclone_and_build "https://github.com/bastibl/gr-ieee802-15-4.git" "gr-ieee802-15-4"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/bastibl/gr-ieee802-15-4.git"
goodecho "[+] Building and installing gr-ieee802-15-4"
cd gr-ieee802-15-4 \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grrds_grmod_install() { function grrds_grmod_install() {
goodecho "[+] Installing gr-rds dependencies" install_dependencies "libboost-all-dev"
installfromnet "apt-fast install -y libboost-all-dev" grclone_and_build "https://github.com/bastibl/gr-rds.git" "gr-rds"
goodecho "[+] Cloning gr-rds"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/bastibl/gr-rds.git"
goodecho "[+] Building and installing gr-rds"
cd gr-rds \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grfosphor_grmod_install() { function grfosphor_grmod_install() {
goodecho "[+] Installing dependencies" install_dependencies "cmake xorg-dev libglu1-mesa-dev opencl-headers libwayland-dev libxkbcommon-dev"
installfromnet "apt-fast install -y cmake xorg-dev libglu1-mesa-dev opencl-headers libwayland-dev libxkbcommon-dev"
goodecho "[+] Cloning and building GLFW3" goodecho "[+] Cloning and building GLFW3"
[ -d /root/thirdparty ] || mkdir /root/thirdparty [ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty cd /root/thirdparty
@ -478,17 +162,7 @@ function grfosphor_grmod_install () {
make install make install
ldconfig ldconfig
cd .. cd ..
goodecho "[+] Cloning gr-fosphor" grclone_and_build "https://github.com/osmocom/gr-fosphor.git" "gr-fosphor"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/osmocom/gr-fosphor.git"
goodecho "[+] Building and installing gr-fosphor"
cd gr-fosphor \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grdroineid_grmod_install() { function grdroineid_grmod_install() {
@ -502,129 +176,47 @@ function grdroineid_grmod_install () {
make -j$(nproc); sudo make install make -j$(nproc); sudo make install
cd /root/thirdparty cd /root/thirdparty
installfromnet "git clone https://github.com/d-bahr/CRCpp.git" installfromnet "git clone https://github.com/d-bahr/CRCpp.git"
cd CRCpp \ cd CRCpp
&& mkdir build \ mkdir build
&& cd build/ \ cd build
&& cmake ../ \ cmake ../
&& make -j$(nproc); sudo make install make -j$(nproc); sudo make install
goodecho "[+] Cloning dji_droneid" grclone_and_build "https://github.com/proto17/dji_droneid.git" "dji_droneid/gnuradio/gr-droneid"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone -b gr-droneid-update-3.10 https://github.com/proto17/dji_droneid.git"
goodecho "[+] Building and installing dji_droneid"
cd dji_droneid/gnuradio/gr-droneid \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
} }
function grsatellites_grmod_install() { function grsatellites_grmod_install() {
goodecho "[+] Installing gr-satellites dependencies" install_dependencies "liborc-0.4-dev"
installfromnet "apt-fast install -y liborc-0.4-dev"
installfromnet "pip3 install --user --upgrade construct requests" installfromnet "pip3 install --user --upgrade construct requests"
goodecho "[+] Cloning gr-satellites" grclone_and_build "https://github.com/daniestevez/gr-satellites.git" "gr-satellites"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/daniestevez/gr-satellites.git"
goodecho "[+] Building and installing gr-satellites"
cd gr-satellites \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function gradsb_grmod_install() { function gradsb_grmod_install() {
goodecho "[+] Installing gr-adsb dependencies (especially for webserver)"
installfromnet "pip3 install zmq flask flask-socketio gevent gevent-websocket" installfromnet "pip3 install zmq flask flask-socketio gevent gevent-websocket"
goodecho "[+] Installing gr-adsb" grclone_and_build "https://github.com/mhostetter/gr-adsb" "gr-adsb"
[ -d /rftools ] || mkdir /rftools
cd /rftools
installfromnet "git clone -b maint-3.10 https://github.com/mhostetter/gr-adsb"
goodecho "[+] Building and installing gr-adsb"
cd gr-adsb \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grkeyfob_grmod_install() { function grkeyfob_grmod_install() {
goodecho "[+] Cloning gr-keyfob" grclone_and_build "https://github.com/bastibl/gr-keyfob.git" "gr-keyfob"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/bastibl/gr-keyfob.git"
goodecho "[+] Building and installing gr-keyfob"
cd gr-keyfob \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grradar_grmod_install() { function grradar_grmod_install() {
goodecho "[+] Cloning gr-radar" grclone_and_build "https://github.com/radioconda/gr-radar.git" "gr-radar"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/radioconda/gr-radar.git"
goodecho "[+] Building and installing gr-radar"
cd gr-radar \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grnordic_grmod_install() { function grnordic_grmod_install() {
goodecho "[+] Cloning gr-nordic" grclone_and_build "https://github.com/bkerler/gr-nordic.git" "gr-nordic"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/bkerler/gr-nordic.git"
goodecho "[+] Building and installing gr-radar"
cd gr-nordic \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grpaint_grmod_install() { function grpaint_grmod_install() {
goodecho "[+] Cloning gr-paint" grclone_and_build "https://github.com/drmpeg/gr-paint.git" "gr-paint"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/drmpeg/gr-paint.git"
goodecho "[+] Building and installing gr-paint"
cd gr-paint \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function gr_DCF77_Receiver_grmod_install() { function gr_DCF77_Receiver_grmod_install() {
goodecho "[+] Cloning gr_DCF77_Receiver" grclone_and_build "https://github.com/henningM1r/gr_DCF77_Receiver.git" "gr_DCF77_Receiver"
[ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty
installfromnet "git clone https://github.com/henningM1r/gr_DCF77_Receiver.git"
goodecho "[+] Building and installing gr_DCF77_Receiver"
cd gr_DCF77_Receiver \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }
function grbb60_Receiver_grmod_install () { # TODO: ask SH for ARM64 support function grbb60_Receiver_grmod_install() {
goodecho "[+] Installing gr-bb60 dependencies" install_dependencies "libusb-1.0-0"
installfromnet "apt install -y libusb-1.0-0"
[ -d /root/thirdparty ] || mkdir /root/thirdparty [ -d /root/thirdparty ] || mkdir /root/thirdparty
cd /root/thirdparty cd /root/thirdparty
installfromnet "wget https://ftdichip.com/wp-content/uploads/2022/07/libftd2xx-x86_64-1.4.27.tgz" installfromnet "wget https://ftdichip.com/wp-content/uploads/2022/07/libftd2xx-x86_64-1.4.27.tgz"
@ -643,13 +235,5 @@ function grbb60_Receiver_grmod_install () { # TODO: ask SH for ARM64 support
cp libbb_api.* /usr/local/lib cp libbb_api.* /usr/local/lib
ldconfig -v -n /usr/local/lib ldconfig -v -n /usr/local/lib
ln -sf /usr/local/lib/libbb_api.so.5 /usr/local/lib/libbb_api.so ln -sf /usr/local/lib/libbb_api.so.5 /usr/local/lib/libbb_api.so
goodecho "[+] Cloning gr-bb60" grclone_and_build "https://github.com/SignalHound/gr-bb60.git" "gr-bb60"
installfromnet "git clone https://github.com/SignalHound/gr-bb60.git"
goodecho "[+] Building and installing gr-bb60"
cd gr-bb60 \
&& mkdir build \
&& cd build/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr ../ \
&& make -j$(nproc); sudo make install
cd ../..
} }