summaryrefslogtreecommitdiff
path: root/cookbooks
diff options
context:
space:
mode:
authorYuval Adam <yuv.adm@gmail.com>2013-05-14 01:17:21 +0300
committerYuval Adam <yuv.adm@gmail.com>2013-05-14 01:17:21 +0300
commit6a16b697143133985e1741c229ba20a15be707ae (patch)
treea3c3dbdf1b6ef9b0bc68bbcd34207496aed7a230 /cookbooks
parent2b1a314321842a45ed0945b3663bd564dda8594d (diff)
Compile gnuradio
Diffstat (limited to 'cookbooks')
-rw-r--r--cookbooks/gnuradio/recipes/default.rb42
1 files changed, 42 insertions, 0 deletions
diff --git a/cookbooks/gnuradio/recipes/default.rb b/cookbooks/gnuradio/recipes/default.rb
index e772daf..758e00c 100644
--- a/cookbooks/gnuradio/recipes/default.rb
+++ b/cookbooks/gnuradio/recipes/default.rb
@@ -52,3 +52,45 @@ bash 'Install rtl-sdr' do
ldconfig
EOH
end
+
+bash 'Compile GNU Radio' do
+ user 'vagrant'
+ group 'vagrant'
+ cwd node[:workingdir] + '/gnuradio'
+ code <<-EOH
+ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
+ mkdir build && cd build
+ make clean
+ cmake -DENABLE_BAD_BOOST=ON ../
+ make clean
+ make
+ EOH
+end
+
+bash 'Install GNU Radio' do
+ cwd node[:workingdir] + '/gnuradio'
+ code <<-EOH
+ cd build
+ make install
+ ldconfig
+ EOH
+end
+
+bash 'Compile gr-osmosdr' do
+ user 'vagrant'
+ group 'vagrant'
+ cwd node[:workingdir] + '/gr-osmosdr'
+ code <<-EOH
+ cmake .
+ make clean
+ make
+ EOH
+end
+
+bash 'Install gr-osmosdr' do
+ cwd node[:workingdir] + '/gr-osmosdr'
+ code <<-EOH
+ make install
+ ldconfig
+ EOH
+end