– Kamailio SIP Server –

OpenSER - Howto make Debian packages

This Howto was tested with Openser 1.0.0 and radiusclient 0.5.1. Nevertheless it should work also with newer versions.

The build process for Debian packages generates all Openser packages (also mysql, postgres, radius …). Thus, the on PC used for compiling the Debian packages, all required libraries must be installed, even if you do not install all packages afterwards.

Thus, you need the client and development libraries for the database backends (mysql and postgres), openssl and the radiusclient-ng libraries. The database libraries are included in Debian and can be easily installed using apt-get, e.g.:

apt-get install libmysqlclient14-dev, libexpat1-dev, libxml2-dev, postgresql-dev, libssl-dev, openssl


The radiusclient-ng must be compiled manually, as it is not included in the Debian distribution. Here I used the version 0.5.1

1. checkout from berlios CVS (hit ENTER when asked for the password):

cvs -d:pserver:anonymous@cvs.radiusclient-ng.berlios.de:/cvsroot/radiusclient-ng login
cvs -z3 -d:pserver:anonymous@cvs.radiusclient-ng.berlios.de:/cvsroot/radiusclient-ng co -r RELENG_0_5_1 radiusclient-ng
cd radiusclient-ng

2. correct version labeling

We edit the debian/changelog file to have debian packages with the correct version number: change “radiusclient-ng (0.5.0) unstable; urgency=low” to “radiusclient-ng (0.5.1) unstable; urgency=low”

3. build the Debian packages

dpkg-buildpackage -rfakeroot -tc

4. install the packages

cd ..
dpkg -i libradius-ng-dev_0.5.1_i386.deb libradius-ng_0.5.1_i386.deb radiusclient-ng_0.5.1_i386.deb

Note: I think, radiusclient-ng_0.5.1_i386.deb is not necessary, but it includes a default /etc/radiusclient-ng/server file.


1. checkout from sourceforge CVS (hit ENTER when asked for the password):

cvs -d:pserver:anonymous@openser.cvs.sourceforge.net:/cvsroot/openser login 
cvs -z3 -d:pserver:anonymous@openser.cvs.sourceforge.net:/cvsroot/openser co -r rel_1_0_0 -P sip-server
cd sip-server

2. optional: if you need Radius/Diameter accounting edit modules/acc/Makefile and uncomment the Radius configuration

3. optional: if you like to have TLS enabled openser, set the environment TLS=1 (this is only necessary for openser 1.0.x. since openser 1.1.x TLS is enabled by default):

export TLS=1

4. build the Debian packages

chmod +x packaging/debian/rules
make deb

5. Done. The packages are located in ..