Building Rackspace Cloud Monitoring Agent on FreeBSD 10

Below is how we managed to build Rackspace Cloud Monitoring Agent on FreeBSD 10:

1
2
3
4
5
6
7
8
9
10
11
12
13
pkg install git
pkg install gcc46
git clone https://github.com/racker/virgo
cd virgo
git submodule update --init --recursive
./configure
setenv CC gcc46
setenv CXX g++46
setenv CPP cpp46
gmake -C out
gmake install
cp base/pkg/freebsd/rackspace-monitoring-agent.init /etc/rc.d/rackspace-monitoring-agent
chmod 755 /etc/rc.d/rackspace-monitoring-agent