configure project
=================

$ cd build && cmake -DACS:STRING=multi -DDEBUG=ON -DDEVEL=ON -DDUMMY_MODE=ON ..

clean it all up
===============

$ make clean

or 

$ git clean -df

development environment
=======================

Make sure you have all the packages installed from packages-arch-tr069 git
repository.

$ ln -sf `pwd`/ext/openwrt/scripts/defaults /usr/share/freecwmp/defaults
$ ln -sf `pwd`/ext/openwrt/scripts/functions/common /usr/share/freecwmp/functions/common
$ ln -sf `pwd`/ext/openwrt/scripts/functions/device_info /usr/share/freecwmp/functions/device_info
$ ln -sf `pwd`/ext/openwrt/scripts/functions/lan_device /usr/share/freecwmp/functions/lan_device
$ ln -sf `pwd`/ext/openwrt/scripts/functions/management_server /usr/share/freecwmp/functions/management_server
$ ln -sf `pwd`/ext/openwrt/scripts/functions/voice_service /usr/share/freecwmp/functions/voice_service
$ ln -sf `pwd`/ext/openwrt/scripts/functions/wan_device /usr/share/freecwmp/functions/wan_device
$ ln -sf `pwd`/ext/openwrt/scripts/functions/x_freecwmp_org /usr/share/freecwmp/functions/x_freecwmp_org
$ ln -sf `pwd`/ext/openwrt/scripts/functions/device_users /usr/share/freecwmp/functions/device_users 
$ ln -sf `pwd`/ext/openwrt/scripts/functions/device_hosts /usr/share/freecwmp/functions/device_hosts
$ ln -sf `pwd`/ext/openwrt/scripts/functions/device_routing /usr/share/freecwmp/functions/device_routing
$ ln -sf `pwd`/ext/openwrt/scripts/functions/device_ip /usr/share/freecwmp/functions/device_ip

run freecwmpd
=============

$ export UCI_CONFIG_DIR="`pwd`/ext/openwrt/config/" 
$ export UBUS_SOCKET="/tmp/ubus.sock"
$ ./bin/freecwmpd -f
