mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-28 17:32:35 +00:00
Scripts to help download all requirements for gnuradio, mostly working, not all dependencies solved
Signed-off-by: Jed Reynolds <jed@candelatech.com>
This commit is contained in:
96
gnuradio-dependencies.bash
Executable file
96
gnuradio-dependencies.bash
Executable file
@@ -0,0 +1,96 @@
|
||||
#!/bin/bash
|
||||
files=(
|
||||
gr-osmosdr
|
||||
hackrf
|
||||
PyQt4
|
||||
PyQwt
|
||||
SDL
|
||||
SoapySDR
|
||||
airspyone_host
|
||||
boost-program-options
|
||||
boost-serialization
|
||||
codec2
|
||||
comedilib
|
||||
dbusmenu-qt
|
||||
fftw-libs-single
|
||||
flex
|
||||
freeglut
|
||||
gnuradio
|
||||
gr-fcdproplus
|
||||
gr-iqbal
|
||||
gsl
|
||||
hidapi
|
||||
jack-audio-connection-kit
|
||||
kde-filesystem
|
||||
libffado
|
||||
libgfortran
|
||||
libmng
|
||||
libosmo-dsp
|
||||
libquadmath
|
||||
libsodium
|
||||
libxml++
|
||||
log4cpp
|
||||
log4cpp-devel
|
||||
openblas
|
||||
openblas-serial
|
||||
openblas-threads
|
||||
openpgm
|
||||
phonon
|
||||
portaudio
|
||||
python-rpm-macros
|
||||
python2-cheetah
|
||||
python2-devel
|
||||
python2-nose
|
||||
python2-numpy
|
||||
python2-numpy-f2py
|
||||
python2-pyopengl
|
||||
python2-pyqt4-sip
|
||||
python2-rpm-macros
|
||||
python2-scipy
|
||||
python2-sip
|
||||
python2-tkinter
|
||||
python2-wxpython
|
||||
python3-rpm-generators
|
||||
qt
|
||||
qt-common
|
||||
qt-x11
|
||||
qwt
|
||||
qwt5-qt4
|
||||
rtl-sdr
|
||||
tix
|
||||
tk
|
||||
uhd
|
||||
wxGTK3-gl
|
||||
wxGTK3-media
|
||||
zeromq
|
||||
phonon-backend-gstreamer
|
||||
sni-qt
|
||||
)
|
||||
|
||||
#G=/var/tmp/deps_list.txt
|
||||
#echo "" > $G
|
||||
urls_file="urls_file.txt"
|
||||
echo "" > $urls_file
|
||||
|
||||
while read L; do
|
||||
[[ x$L = x ]] && continue
|
||||
o=${L:0:1}
|
||||
o=${o,,}
|
||||
|
||||
# where would be a logical place to see if the package has already been installed , use rpm -qa "$L"
|
||||
echo "https://archives.fedoraproject.org/pub/archive/fedora/linux/updates/30/Everything/x86_64/Packages/${o}/${L}.rpm"
|
||||
done < deps_list.uniq.txt > $urls_file
|
||||
exit
|
||||
|
||||
# ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
|
||||
function f() {
|
||||
for f in "${files[@]}"; do
|
||||
dnf repoquery --deplist --queryformat '%{name}.%{%arch}' "$f" \
|
||||
| grep 'provider:' \
|
||||
| sort | uniq \
|
||||
| grep -v '\.i686' \
|
||||
>> $G
|
||||
echo -n "."
|
||||
done
|
||||
}
|
||||
|
||||
62
gnuradio-offline-install.bash
Executable file
62
gnuradio-offline-install.bash
Executable file
@@ -0,0 +1,62 @@
|
||||
#!/bin/bash
|
||||
|
||||
[ ! -f urls_file.txt ] && echo "Where is urls_list.txt?" && exit 1
|
||||
DLD=/home/lanforge/Downloads
|
||||
installed_list=()
|
||||
already_downloaded_list=()
|
||||
not_found_list=()
|
||||
candidate_list=()
|
||||
|
||||
while read L; do
|
||||
# echo "$L"
|
||||
bzname=`basename $L`
|
||||
short=${bzname%.fc30*}
|
||||
if [[ x$short = x ]]; then
|
||||
echo "bad substitution on $L"
|
||||
continue
|
||||
fi
|
||||
echo -n "Looking for $short"
|
||||
|
||||
rez=`rpm -qa ${short}*`
|
||||
# echo "result $?"
|
||||
if [[ x$rez = x ]]; then
|
||||
echo -n "$bzname is not installed"
|
||||
if compgen -G "${DLD}/${bzname}"; then
|
||||
echo " already downloaded"
|
||||
already_downloaded_list+=($bzname);
|
||||
else
|
||||
wget -q -O "${DLD}/${bzname}" "$L"
|
||||
if (( $? != 0 )); then
|
||||
letterurl="${L%/*}/"
|
||||
needle="${short:0:13}"
|
||||
echo -n " need to look for ${letterurl}${needle} ..."
|
||||
some_match=`curl -sq "${letterurl}" | grep -- "$needle"`
|
||||
if (( $? != 0 )) || [[ x$some_match = x ]]; then
|
||||
echo "Unable to find $short"
|
||||
not_found_list+=("$L")
|
||||
else
|
||||
echo "possible candidate"
|
||||
candidate_list+=("$some_match")
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
done < urls_file.txt
|
||||
echo ""
|
||||
echo "Installed list: "
|
||||
printf "%s, " "${installed_list[@]}"
|
||||
|
||||
echo ""
|
||||
echo "Already downloaded list: "
|
||||
printf " %s\\n" "${already_downloaded_list[@]}"
|
||||
|
||||
echo ""
|
||||
echo "Not found list: "
|
||||
printf " %s\\n" "${not_found_list[@]}"
|
||||
|
||||
echo ""
|
||||
echo "Candidate list: "
|
||||
printf " %s\\n" "${candidate_list[@]}"
|
||||
|
||||
|
||||
echo "done."
|
||||
Reference in New Issue
Block a user