Differences
This shows you the differences between two versions of the page.
old-content:howto_make_debian_packages [2006/09/19 02:00] |
old-content:howto_make_debian_packages [2006/09/19 02:00] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== 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.: | ||
+ | |||
+ | '' | ||
+ | |||
+ | ==== Radiusclient-ng ==== | ||
+ | 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: | ||
+ | cvs -z3 -d: | ||
+ | cd radiusclient-ng | ||
+ | |||
+ | 2. correct version labeling | ||
+ | |||
+ | We edit the debian/ | ||
+ | |||
+ | 3. build the Debian packages | ||
+ | |||
+ | dpkg-buildpackage -rfakeroot -tc | ||
+ | |||
+ | 4. install the packages | ||
+ | |||
+ | cd .. | ||
+ | su | ||
+ | dpkg -i libradius-ng-dev_0.5.1_i386.deb libradius-ng_0.5.1_i386.deb radiusclient-ng_0.5.1_i386.deb | ||
+ | exit | ||
+ | |||
+ | Note: I think, radiusclient-ng_0.5.1_i386.deb is not necessary, but it includes a default / | ||
+ | |||
+ | ==== Openser ==== | ||
+ | |||
+ | 1. checkout from sourceforge CVS (hit ENTER when asked for the password): | ||
+ | |||
+ | cvs -d: | ||
+ | cvs -z3 -d: | ||
+ | cd sip-server | ||
+ | |||
+ | 2. optional: if you need Radius/ | ||
+ | |||
+ | 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/ | ||
+ | make deb | ||
+ | |||
+ | 5. Done. The packages are located in '' |