Building cfengine3 on Slackware

Getting cfengine running on slackware (and slackwarearm) is relatively straight-forward.

These instructions are obviously assuming your system is configured to build from source, and that you keep non-base slackware packages in /usr/local

First, you’ll need to install tokyocabinet.

$
cd /usr/local/src
wget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.48.tar.gz
tar xfvz tokyocabinet-1.4.48.tar.gz
cd tokyocabinet-1.4.48
./configure --prefix=/usr/local
make
make install
ldconfig

Then, build cfengine3.

$
cd /usr/local/src
wget http://cfengine.com/source-code/download?file=cfengine-3.5.3.tar.gz -O cfengine-3.5.3.tar.gz
cd cfengine-3.5.3
./configure --prefix=/usr/local
make
make install

Next, create symlinks to the cfengine binaries.

$
cd /usr/local/var/cfengine/bin
for $fnord in /usr/local/bin/cf-*
do
ln -sf $fnord .
done

Lastly, start the cfengine services:

$
cf-monitord
cf-execd
cf-serverd

From there, you’ll probably want create an init script and add it to your /etc/rc.d/rc.local

Leave a Reply

Your email address will not be published.