Navigation



Version 15 (modified by Administrator, 11 years ago) (diff)

--

Debian package

Debian packaging support is included in the freeDiameter source repository. The necessary files are included in the [source:freeDiameter/contrib/debian contrib/debian] directory. Check the [source:freeDiameter/INSTALL.Ubuntu INSTALL.Ubuntu] file for details on how to re-create a Debian package.

In addition, we distribute pre-compiled packages on the freeDiameter website. In order to use these packages, follow the instructions bellow.

Repository's GPG key

Modern Debian-based distributions use secure APT signed repositories for packages distribution. The following shows how you can import the public key of the freeDiameter repository.

$ # First, retrieve the key from the website
$ wget http://www.freediameter.net/packages/repository.key

$ # Optionally, check the key was not tempered with
$ md5sum repository.key
3483b09a2b6a1e882ac55d5d33354358  repository.key
$ # (correct value is in repository.md5sum file)

$ # Finally import this key into APT
$ sudo apt-key add repository.key 
OK

Package repository URL

Next step is to add the repository to your sources.list apt configuration file.

If your system has a /etc/apt/sources.list.d folder, it is advised to create a new file inside this folder, for example called freediameter.list. Otherwise, simply add the following content to you /etc/apt/sources.list file.

Debian

  • Debian Squeeze (stable):
    ## freeDiameter APT repository
    deb http://www.freediameter.net/packages/debian squeeze contrib
    deb-src http://www.freediameter.net/packages/debian squeeze contrib
    
  • Debian Wheezy (testing):
    ## freeDiameter APT repository
    deb http://www.freediameter.net/packages/debian wheezy contrib
    deb-src http://www.freediameter.net/packages/debian wheezy contrib
    
  • Debian Sid (unstable):
    ## freeDiameter APT repository
    deb http://www.freediameter.net/packages/debian sid contrib
    deb-src http://www.freediameter.net/packages/debian sid contrib
    

Ubuntu

  • Ubuntu Lucid (10.04):
    ## freeDiameter APT repository
    deb http://www.freediameter.net/packages/ubuntu lucid universe
    deb-src http://www.freediameter.net/packages/ubuntu lucid universe
    
  • Ubuntu Precise (12.04):
    ## freeDiameter APT repository
    deb http://www.freediameter.net/packages/ubuntu precise universe
    deb-src http://www.freediameter.net/packages/ubuntu precise universe
    
  • Ubuntu Quantal (12.10):
    ## freeDiameter APT repository
    deb http://www.freediameter.net/packages/ubuntu quantal universe
    deb-src http://www.freediameter.net/packages/ubuntu quantal universe
    

Using the repository

Once you have configured apt properly, the following commands should work.

$ sudo aptitude update
$ aptitude search freediameter
p   freediameter-accounting-server    - freeDiameter simple Accounting server.
p   freediameter-common               - The libfreeDiameter library.
p   freediameter-daemon               - The freeDiameter daemon.
[...]

You can for example install a Diameter EAP server with:

$ sudo aptitude install freediameter-eap-server

Note that the documentation and sample configuration files get installed in /usr/share/doc/freediameter/*.


Administration of the repositories

The scripts and configuration files used to generate these repositories can be found at: http://www.freediameter.net/packages/scripts. Please feel free to propose improvements.