Hacking:Script de déploiement radio

De HackBBS
Aller à la navigation Aller à la recherche
#!/bin/bash
#Auteur: @Korigan, 17/08/13
#Ressources: Http://wiki.hackbbs.org
#Contact: irc.hackint.eu,#HackBBS
#Testé sur: Debian7
echo "[+] Creation du repertoire de travail"
mkdir radio
cd radio
echo "[+] ********BOOST"
echo " [-] Téléchargement de boost"
apt-get install libboost-thread1.49-dev
wget http://netcologne.dl.sourceforge.net/project/boost/boost/1.54.0/boost_1_54_0.tar.bz2
echo " [-] Installation de boost"
tar -xvzf boost_1_54_0.tar.bz2; cd boost_1_54_0; BOOST_PREFIX=/opt/boost_1_54_0; ./bootstrap.sh; ./b2 --prefix=$BOOST_PREFIX --with-thread --with-date_time --with-program_options --with-filesystem --with-system --layout=versioned threading=multi variant=release install
echo "[+] ********GNURADIO"
echo " [-] Téléchargement de gnuradio"
TODO /!\
echo " [-] Compiler gnuradio
cmake -DBOOST_ROOT=$BOOST_PREFIX -DBoost_INCLUDE_DIR=$BOOST_PREFIX/include/boost-1_54/ -DBoost_LIBRARY_DIRS=$BOOST_PREFIX/lib ../