Buildbot Setup for BSD
Outlines the necessary steps to install and configure Buildbot on various BSD distributions.
Here are the steps I did when installing and configuring a buildbot slave on a PC-BSD 9 box.
Add buildbot user:
sudo adduser
buildbot
/bin/shPython was already installed.
Bazaar was already installed.
NTP was already installed.
Install Zope3:
cd /usr/ports/www/zope3
sudo make install clean
# accepted default options
cd /usr/ports/devel/py-zope.interface
sudo make install cleanInstall Twisted:
cd /usr/ports/devel/py-twisted
sudo make install clean
# accepted default optionsInstall ccache:
cd /usr/ports/devel/ccache
sudo make install clean
# accepted default optionsRun a test compile of MariaDB:
cd
cd src/maria/build
BUILD/compile-pentium64-max
# test compile appeared to workInstall buildbot:
cd /usr/ports/devel/buildbot
sudo make install clean
# accepted default optionsCreate the buildbot slave. On the build master, add new entry to /etc/buildbot/maria-master-private.cfg :
slave-name=bsd9Remember the ${slave-name} and ${password} configured above, they're used in
the next step.
Back on bsd9, do this:
sudo su - buildbot
buildslave create-slave --usepty=0 /home/buildbot/maria-slave \
hasky.askmonty.org:9989 ${slave-name} ${password}
echo '${contact-email-address}' > /home/buildbot/maria-slave/info/admin
echo 'A host running PC-BSD 9.' > /home/buildbot/maria-slave/info/host
bzr init-repo maria-slave/bsd9
exitStart the build slave:
sudo su - buildbot
buildslave start maria-slaveCreate the archive directory:
sudo su - buildbot
mkdir archive
exit
sudo ln -s /home/buildbot/archive /archiveInstall Apache:
cd /usr/ports/www/apache22
sudo make install clean
# accepted default optionsConfigure Apache:
sudo su -s
echo 'apache22_enable="YES"' >> /etc/rc.conf
echo 'alias /archive "/archive"\
<Directory "/archive">\
Options All Multiviews\
AllowOverride All\
Order allow,deny\
Allow from all\
</Directory>' >> /usr/local/etc/apache22/httpd.conf
sudo /usr/local/etc/rc.d/apache22 startInstall md5sum:
md5sum already installed at /compat/linux/usr/bin/md5sum
edited /home/buildbot/.profile and added that dir to the path
# That didn't work, so did the following:
cd /usr/local/bin/
sudo ln -s /compat/linux/usr/bin/md5sum md5sumThis page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?

