Creating packages for Debian (Ubuntu), RedHat (CentOS, Fedora) & FreeBSD can easily be done by CMake’s CPacks feature. This provides great possibilities to create packages from sources but also to ship just configuration files with a single config for one or more distributions. In general, it also supports creating packages from different distributions.
My tech talk provides a short examples how to use it by packaging the changelog fragments creator tool (see also my blog post regarding this here). Please note, that this is not a HowTo rather than an interactive talk where things are described in detail.
Sources: gyptazy/tech-talks (Github)