Skip to end of metadata
Go to start of metadata

CFengine3 is the latest generation of the grand-daddy of configuration management tools. Here are some tips on getting it going on SmartOS.

Compiling CFengine3 on SmartOS

Before you can compile CFengine3, you will need to have setup PKG-SRC as detailed here: Installing pkgin

To setup your build environment you'll need to install the gcc47 and gmake packages. Additionally, you'll need the CFengine3 dependencies tokyocabinet, openssl, and pcre installed as well. Then build as usual.

The flow looks like this:

# pkgin in gcc47 gmake
# pkgin in tokyocabinet openssl pcre# pkgin in gcc47 gmake
# pkgin in tokyocabinet openssl pcre
# export PATH=/opt/local/bin:/opt/local/sbin:/opt/local/gcc47/bin:/opt/local/gnu/bin:$PATH

# cd /tmp
# curl -k -o cfengine-3.4.2.tar.gz  ''
# gtar xfvz cfengine-3.4.2.tar.gz

# cd cfengine-3.4.2
# CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib -R/opt/local/lib" ./configure --prefix=/opt/cfengine3 --enable-static
# gmake
# gmake install
# export PATH=/opt/local/bin:/opt/local/sbin:/opt/local/gcc47/bin:/opt/local/gnu/bin:$PATH
# gmake install

For a more polished installation when using CFengine3 in a SmartOS global zone, I suggest using the installation prefix of /opt/custom instead of /opt/cfengine3.

Additional Resources

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.