# Kamailio Packaging #
The `pkg/kamailio/` directory contains packaging specs for several operation systems.
Currently the DEB and RPM specs are actively maintained, the rest are still kept
in case someone wants to pick up and update.
## DEBS ##
DEB packages can be generated for several flavours of Debian and Ubuntu
To generate deb packages, run:
This is using a generic Debian spec. To select a specific Debian or Ubuntu, go
to root folder of Kamailio source tree, create a `debian` symlink to the
desired distro from `pkg/kamailio/deb/` and run `make deb`. For example,
on a Debian Stretch (9.x), do:
ln -s pkg/kamailio/deb/stretch debian
The DEB files are generated in the parent folder.
## RPMS ##
There are couple of variants of RPM specs. The most actual one is stored in `obs/`
subfolder and has conditional options to build for many operating systems that
use RPM for packages (e.g., CenOS, RedHat, Fedora, OpenSuse). The folders with
the name reflecting an operating system might be older, some not really
To build RPM packages for CentOS, RHEL, Fedora, OpenSUSE and Oracle linux execute
When utility is finished, you can see tge directory where compiled RPM files
Finish: rpmbuild kamailio-5.2.0-dev1.0.fc25.src.rpm
Finish: build phase for kamailio-5.2.0-dev1.0.fc25.src.rpm
INFO: Done(../../kamailio-5.2.0-dev1.0.fc25.src.rpm) Config(default) 8 minutes 30 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-25-x86_64/result
The `obs` folder aims at using it also in OpenSuse Build Service.
Kamailio build project on OBS is at:
## Gentoo ##
Not actively mentained, still fairly recent updated.
## BSD ##
There are specs for FreeBSD, NetBST and OpenBSD. They are not actively
maintained, being quite old.
## Solaris ##
Not actively maintained, being quite old.