Modification of or tampering with the product, including but not limited to any Open Source Software, is solely at Your own risk. Western Digital is not responsible for any such modification or tampering. Western Digital will not support any product in which You have or have attempted to modify the software or hardware supplied by Western Digital.

---------------------------------------------------------------------------
forked-daapd is built using the native (debootstrap) method on the device.

1) ssh into device

2) Create native build environment
	# sudo apt-get update
	# apt-get install debootstrap
	# cd /shares/Public/
	# mkdir build
	# debootstrap --no-check-gpg wheezy ./build http://ftp.us.debian.org/debian
	# cp /etc/resolv.conf build/etc/resolv.conf

3) Copy new forked-daapd source provided into bootstrap directory
	# cd /shares/Public/
	# cp -a <path to GPL package>/sources/forked-daapd-0.19/ build/root/

4) chroot into bootstrap env and mount dev and proc:
	# sudo chroot build
	# mount -t proc none /proc
	# mount -t devpts none /dev/pts

5) modify the /etc/apt/sources.list
	# echo "deb http://ftp.debian.org/debian wheezy main" > /etc/apt/sources.list
	# echo "deb-src http://ftp.debian.org/debian squeeze main" >> /etc/apt/sources.list

6) Get build dependencies.  Note thate some packages are from different versions of Debian.
	# apt-get update
	# apt-get install -t wheezy debhelper libflac-dev libtagc0-dev libavahi-client-dev libsqlite3-dev  libconfuse-dev libavl-dev libmxml-dev libplist-dev  libgcrypt11-dev libgpg-error-dev libasound2-dev zlib1g-dev libunistring-dev  libantlr3c-dev  antlr3  gperf autotools-dev libavcodec-dev libavformat-dev libswscale-dev libavutil-dev

7) Build and install libevent-dev (uses OLDER 1.4.13 version from squeeze)
	# cd /root
	# apt-get source libevent
	# cd libevent-1.4.13-stable/
	# debian/rules binary
	# cd ..
	# dpkg -i *.deb
	
8) Build forked-daapd
	# cd forked-daapd-0.19/
	# debian/rules binary

9) Exit bootstrap env and unmount mount points
	# exit
	# sudo umount -f build/proc
	# sudo umount -f build/dev/pts

10) Binaries will be created, which you may copy to your target device.
	- See "build/root/forked-ddapd-0.19/debian/forked-daapd/usr/sbin/forked-daapd and "build/root/forked-ddapd-0.19/debian/forked-daapd/usr/lib/forked-daapd/forked-daapd-sqlext.so" 
	-Location on the device:
		/usr/sbin/
		/usr/lib/forked-daapd/

