# ru/buildout.cfg provides common software code for handling Radio Units.

[buildout]
extends =
  sdr/buildout.cfg
  lopcomm/buildout.cfg
  sunwave/buildout.cfg

parts +=
  netcapdo
  setcap-netcapdo


[ru_libinstance.jinja2.cfg]
<= download-base

[ru_dnsmasq.jinja2.cfg]
<= download-base

[ru_tapsplit]
<= download-base

[ru_capdo.c]
<= download-base

[netcapdo]
recipe = plone.recipe.command
exe = ${buildout:directory}/netcapdo
command = gcc ${:ccflags} -o ${:exe} ${ru_capdo.c:target} -lcap
ccflags = -I${libcap:location}/include -L${libcap:location}/lib -Wl,-rpath=${libcap:location}/lib
stop-on-error = true

[setcap-netcapdo]
<= setcap
exe = ${netcapdo:exe}

[ru_amarisoft-stats.jinja2.py]
<= download-base

[ru_amarisoft-rf-info.jinja2.py]
<= download-base

[ru_xbuildout.py]
<= download-base
