Skip to content

Instantly share code, notes, and snippets.

@andrenarchy
Last active August 14, 2018 09:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrenarchy/cb0cbf4c111e30e22f84 to your computer and use it in GitHub Desktop.
Save andrenarchy/cb0cbf4c111e30e22f84 to your computer and use it in GitHub Desktop.

Compile icinga2 and icingaweb2 on Ubuntu 14.04 trusty

The ppa does not build packages for ARM (e.g. ODROID U3), so let's compile them.

Configure pbuilder

Make sure that /etc/pbuilderrc contains the line

echo 'COMPONENTS="main universe multiverse restricted"' | sudo tee -a /etc/pbuilderrc

Create trusty build env

sudo cowbuilder --create --distribution trusty --debootstrapopts --variant=buildd

Build packages

Get sources

echo "deb-src http://ppa.launchpad.net/formorer/icinga/ubuntu trusty main" | sudo tee /etc/apt/sources.list.d/icinga-sources.list
sudo apt-get update
cd /media/usb/donny/andre/icinga-packaging/sources
sudo apt-get sources icinga2 icingaweb2

Build

sudo cowbuilder --build icinga2_2.3.11-1~ppa1~trusty1.dsc --buildresult ../results/
sudo cowbuilder --build icingaweb2_2.0.0-1~ppa1.dsc --buildresult ../results

Create repo

sudo apt-get install reprepro
cd /media/usb/donny/andre/icinga-packaging/
mkdir -p repository/conf
echo "ask-passphrase" > repository/conf/options
echo "Codename: trusty
Components: main
Architectures: armhf
SignWith: 048E8C18" > repository/conf/distributions
reprepro -b repository/ includedeb trusty results/*.deb

My repository with icinga2 and icingaweb2 packages for Ubuntu 14.04 (ARM) can be used with the following apt line:

deb https://donny.k36.d00d3.net/apt-icinga trusty main

Note: the above repository is only accessible via IPv6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment