blob: e772daf6b11dfefec19bb10ce246c8127b4f1f86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
include_recipe 'gnuradio::packages'
directory node[:workingdir] do
owner 'vagrant'
group 'vagrant'
mode '0755'
action :create
end
git 'Checkout gnuradio' do
repository node[:repos][:gnuradio]
reference 'master'
action :checkout
destination node[:workingdir] + '/gnuradio'
user 'vagrant'
group 'vagrant'
end
git 'Checkout rtl-sdr' do
repository node[:repos][:rtlsdr]
reference 'master'
action :checkout
destination node[:workingdir] + '/rtl-sdr'
user 'vagrant'
group 'vagrant'
end
git 'Checkout gr-osmosdr' do
repository node[:repos][:gr_osmosdr]
reference 'master'
action :checkout
destination node[:workingdir] + '/gr-osmosdr'
user 'vagrant'
group 'vagrant'
end
bash 'Compile rtl-sdr' do
user 'vagrant'
group 'vagrant'
cwd node[:workingdir] + '/rtl-sdr'
code <<-EOH
cmake . -DINSTALL_UDEV_RULES=ON
make clean
make
EOH
end
bash 'Install rtl-sdr' do
cwd node[:workingdir] + '/rtl-sdr'
code <<-EOH
make install
ldconfig
EOH
end
|