changeset 328:90294e7e986c

Moved the debian dir outside the top level directory
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 28 May 2010 17:19:22 +0900
parents 0f43f42669be
children b8f85559ba04
files INSTALL.Ubuntu README contrib/README contrib/debian/changelog contrib/debian/compat contrib/debian/control contrib/debian/copyright contrib/debian/dirs contrib/debian/docs contrib/debian/freediameter-accounting-server.examples contrib/debian/freediameter-accounting-server.install contrib/debian/freediameter-common.install contrib/debian/freediameter-daemon.default contrib/debian/freediameter-daemon.examples contrib/debian/freediameter-daemon.init contrib/debian/freediameter-daemon.install contrib/debian/freediameter-debug-tools.examples contrib/debian/freediameter-debug-tools.install contrib/debian/freediameter-dev.install contrib/debian/freediameter-dictionary-rfc4005.install contrib/debian/freediameter-dictionary-rfc4072.install contrib/debian/freediameter-radius-gateway.examples contrib/debian/freediameter-radius-gateway.install contrib/debian/rules debian/changelog debian/compat debian/control debian/copyright debian/dirs debian/docs debian/freediameter-accounting-server.examples debian/freediameter-accounting-server.install debian/freediameter-common.install debian/freediameter-daemon.default debian/freediameter-daemon.examples debian/freediameter-daemon.init debian/freediameter-daemon.install debian/freediameter-debug-tools.examples debian/freediameter-debug-tools.install debian/freediameter-dev.install debian/freediameter-dictionary-rfc4005.install debian/freediameter-dictionary-rfc4072.install debian/freediameter-radius-gateway.examples debian/freediameter-radius-gateway.install debian/rules
diffstat 45 files changed, 413 insertions(+), 397 deletions(-) [+]
line wrap: on
line diff
--- a/INSTALL.Ubuntu	Fri May 28 14:09:51 2010 +0900
+++ b/INSTALL.Ubuntu	Fri May 28 17:19:22 2010 +0900
@@ -1,8 +1,11 @@
 See INSTALL file for general instructions on building freeDiameter.
 
 
-freeDiameter has native support for Debian packaging. All related files
-are in the directory "debian" of the distribution.
+freeDiameter is shipped with the necessary files to generate the Debian package. 
+All related files are in the directory "contrib/debian" of the distribution.
+As a first step, you have to link this directory from your top-level dir:
+  ln -s contrib/debian
+ 
 
 The following packages are required to compile freeDiameter from source:
  cmake make gcc flex bison libsctp1 libsctp-dev libgnutls-dev libgcrypt-dev
@@ -13,8 +16,8 @@
 In order to build app_acct extension, you will also need the package libpq-dev.
 
 
-If your debhelper environment is recent, the following commands should
-generate the freeDiameter packages for you:
+If your debhelper environment is recent (> 7.3.9 to provide cmake support), 
+the following commands should generate the freeDiameter packages for you:
 
 # Install the dependencies for building the source:
 sudo apt-get -y install mercurial cmake make gcc bison flex libsctp-dev libgnutls-dev libgcrypt-dev libpq-dev ssl-cert debhelper fakeroot
@@ -24,6 +27,9 @@
 hg clone http://aaa.koganei.wide.ad.jp/hg/freeDiameter
 cd freeDiameter
 
+# Prepare for Debian package
+ln -s contrib/debian
+
 # Build the packages
 fakeroot dh binary
 
@@ -41,11 +47,13 @@
 
 ===========================================
 
-freeDiameter has been tested on the following distributions:
+freeDiameter has been tested on the following distributions (compiled from source as described bellow):
 Ubuntu Intrepid, Jaunty, Karmic, Lucid. 
 Debian Lenny.
 
-(Ubuntu Hardy support is broken)
+Ubuntu Hardy support is broken.
+
+The Debian package has been generated with success on Ubuntu Lucid.
 
 
 ===========================================-
--- a/README	Fri May 28 14:09:51 2010 +0900
+++ b/README	Fri May 28 17:19:22 2010 +0900
@@ -1,4 +1,4 @@
-freeDiameter is an implementation of Diameter.
+freeDiameter is an implementation of the Diameter protocol.
 
 Diameter is a protocol designed to carry Authentication, Authorization and
 Accounting (AAA) payload. It is an evolution of the RADIUS protocol (as the 
--- a/contrib/README	Fri May 28 14:09:51 2010 +0900
+++ b/contrib/README	Fri May 28 17:19:22 2010 +0900
@@ -7,6 +7,13 @@
 	on the last modification time. Thought I might share it if other people find
 	it useful for their own project...
 
+
+- debian : This directory contains the packaging information to create native Debian / Ubuntu 
+	packages. It requires debhelper >= 7.3.9 (support for cmake). To use, simply link the
+	debian folder from the main freeDiameter folder, then use your building script as
+	usual ('dh binary' or 'pdebuild' or ...).
+
+
 - PKI : This directory contains useful material related to establishing a 
         Public Key Infrastructure (PKI) for deploying x509 certificates 
 	and use these for TLS authentication of the freeDiameter nodes.
@@ -28,6 +35,7 @@
                 PHPki (http://sourceforge.net/projects/phpki/) is a PHP-based web interface
 		that provides more or less the same services as ca_script.
 
+
 - OpenWRT : This directory contains the scripts and documentation related to 
 	the integration of freeDiameter RADIUS/Diameter gateway component in the openWRT
 	distribution (http://openwrt.org) -- the goal is to give the access point the 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/changelog	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,5 @@
+freediameter (1.0.0-1) experimental; urgency=low
+
+  * Initial Release.
+  
+ -- Sebastien Decugis <sdecugis@nict.go.jp>  Wed, 19 May 2010 15:36:54 +0900
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/compat	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,1 @@
+7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/control	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,122 @@
+Source: freediameter
+Section: unknown
+Priority: optional
+Maintainer: Sebastien Decugis <sdecugis@nict.go.jp>
+Build-Depends: debhelper ( >= 7.3.9),
+ cmake, make, gcc, bison, flex,
+ libsctp-dev, libgnutls-dev, libgcrypt-dev, libpq-dev
+Standards-Version: 3.8.3
+Homepage: http://aaa.koganei.wide.ad.jp
+
+Package: freediameter-common
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: The libfreeDiameter library.
+ This library is required by all freeDiameter components.
+ It may also be useful for other projects which need to 
+ perform operations on Diameter messages. 
+ .
+ See 'freeDiameter-dev' package to retrieve the API for the library.
+
+Package: freediameter-dev
+Architecture: any
+Depends: freediameter-daemon (= ${binary:Version}), libsctp-dev, libgnutls-dev, libgcrypt-dev
+Description: This package provides the development files for freeDiameter.
+
+Package: freediameter-daemon
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, freediameter-common (= ${binary:Version})
+Suggests: ssl-cert, freediameter-dictionary-rfc4005, freediameter-dictionary-rfc4072
+Description: The freeDiameter daemon. 
+ The freeDiameter daemon provides support for the Diameter
+ Base Protocol. Without any extension, the daemon can only
+ be used as a Diameter routing agent. You probably want to 
+ install some freeDiameter extension(s) to extend its 
+ features.
+ .
+ The daemon is shipped with a small set of extensions, for
+ example to configure the routing behavior. See the 
+ examples for more details.
+
+Package: freediameter-debug-tools
+Architecture: any
+Depends: ${misc:Depends}, freediameter-daemon (= ${binary:Version})
+Description: freeDiameter debug tools.
+ This package provides useful tools to help tracking 
+ problems in freeDiameter installation.
+
+Package: freediameter-dictionary-rfc4005
+Architecture: any
+Depends: ${misc:Depends}, freediameter-daemon (= ${binary:Version})
+Description: RFC4005 (NASREQ) dictionary support.
+ This freeDiameter extension provides the dictionary support
+ for commands and AVP defined in RFC4005 (NASREQ).
+ .
+ In order to use this extension, your main freeDiameter 
+ configuration file must contain a LoadExtension directive. 
+ See freeDiameter documentation for more details. 
+ .
+ This extension does not require a configuration file.
+
+Package: freediameter-dictionary-rfc4072
+Architecture: any
+Depends: ${misc:Depends}, freediameter-dictionary-rfc4005 (= ${binary:Version})
+Description: RFC4072 (Diameter EAP) dictionary support.
+ This freeDiameter extension provides the dictionary support
+ for commands and AVP defined in RFC4072 (Diameter EAP).
+ .
+ In order to use this extension, your main freeDiameter 
+ configuration file must contain a LoadExtension directive. 
+ See freeDiameter documentation for more details. 
+ .
+ This extension does not require a configuration file.
+
+Package: freediameter-radius-gateway
+Architecture: any
+Depends: ${misc:Depends}, freediameter-dictionary-rfc4072 (= ${binary:Version})
+Description: RADIUS/Diameter extensible gateway.
+ This freeDiameter extension implements a RADIUS to Diameter
+ gateway. It allows a RADIUS client to connect to a Diameter
+ server.
+ .
+ The support for specific Diameter applications and/or RADIUS 
+ extensions is provided in the gateway by the use of plugins.
+ Currently, the following plugins are available:
+  - echodrop.rgwx : drop or echo a RADIUS attribute. 
+                    The attribute is not converted to Diameter.
+		    See echodrop.rgwx.conf.sample for details.
+  - auth.rgwx : Convert Access-Request to Diameter AAR or DER.
+                Requests For Comments: RADIUS: 2865, 3162, 2868,
+		2869, 3579; Diameter: 4005, 4072.
+  - acct.rgwx : Converts Accounting-Request (2866) to Diameter 
+                ACR (3588).
+ .
+ In order to use this extension, your main freeDiameter 
+ configuration file must contain a LoadExtension directive. 
+ See freeDiameter documentation for more details. 
+ .
+ This extension requires a configuration file.
+ See app_radgw.conf.sample for more details.
+
+Package: freediameter-accounting-server
+Architecture: any
+Depends: ${misc:Depends}, freediameter-daemon (= ${binary:Version}), libpq5
+Description: freeDiameter simple Accounting server.
+ This freeDiameter extension implements the Diameter Base 
+ Accounting application. It saves the accounting records
+ in a PostgreSQL database backend in a highly configurable
+ maneer.
+ .
+ In order to use this extension, your main freeDiameter 
+ configuration file must contain a LoadExtension directive. 
+ See freeDiameter documentation for more details. 
+ .
+ This extension requires a configuration file.
+ See app_acct.conf.sample for more details.
+
+
+
+
+
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/copyright	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,35 @@
+Format-Specification: http://dep.debian.net/deps/dep5/
+Name: freeDiameter
+Maintainer: Sebastien Decugis <sdecugis@nict.go.jp>
+Source: http://aaa.koganei.wide.ad.jp
+
+Files: *
+Copyright: 2008-2010, WIDE Project and NICT.
+License: BSD
+ Redistribution and use of this software in source and binary forms, with or without modification, are
+ permitted provided that the following conditions are met:
+ .
+ * Redistributions of source code must retain the above
+   copyright notice, this list of conditions and the
+   following disclaimer.
+ . 
+ * Redistributions in binary form must reproduce the above
+   copyright notice, this list of conditions and the
+   following disclaimer in the documentation and/or other
+   materials provided with the distribution.
+ .
+ * Neither the name of the WIDE Project or NICT nor the
+   names of its contributors may be used to endorse or
+   promote products derived from this software without
+   specific prior written permission of WIDE Project and
+   NICT.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
+ TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/dirs	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,1 @@
+etc/freeDiameter/
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/docs	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,3 @@
+INSTALL*
+LICENSE
+README
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/freediameter-accounting-server.examples	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,1 @@
+doc/app_acct.conf.sample
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/freediameter-accounting-server.install	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,1 @@
+usr/lib/freeDiameter/app_acct.fdx
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/freediameter-common.install	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,1 @@
+usr/lib/libfreeDiameter.so*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/freediameter-daemon.default	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,7 @@
+# Defaults for freediameter initscript
+# sourced by /etc/init.d/freediameter
+# installed at /etc/default/freediameter by the maintainer scripts
+
+# Additional options that are passed to the Daemon.
+# See "freeDiameterd --help" for supported flags.
+DAEMON_OPTS=""
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/freediameter-daemon.examples	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,3 @@
+doc/freediameter.conf.sample
+doc/acl_wl.conf.sample
+doc/rt_default.conf.sample
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/freediameter-daemon.init	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,160 @@
+#! /bin/sh
+
+### BEGIN INIT INFO
+# Provides:          freediameter
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Required-Start:    $remote_fs $syslog
+# Required-Stop:     $remote_fs $syslog
+# Short-Description: Start freeDiameter daemon at boot time
+# Description:       Start the freeDiameter daemon at boot time.
+#	freeDiameter is an extensible implementation of the Diameter protocol,
+#	designed for Authentication, Authorization and Accounting. Diameter is
+#	an evolution of the RADIUS protocol.
+### END INIT INFO#
+
+DAEMON=/usr/bin/freeDiameterd
+CONF=/etc/freeDiameter/freeDiameter.conf
+NAME=freediameter
+DESC=freeDiameter daemon
+
+test -x $DAEMON || exit 0
+
+LOGDIR=/var/log/freediameter
+PIDFILE=/var/run/$NAME.pid
+DODTIME=30                  # Time to wait for the server to die, in seconds
+                            # The value is high because we wait for STA answers
+			    # before disconnecting the peers.
+
+# Include freediameter defaults if available
+if [ -f /etc/default/freediameter ] ; then
+    . /etc/default/freediameter
+fi
+
+test x"" != x$DAEMON_OPTS || test -f $CONF || exit 0
+
+set -e
+
+running_pid()
+{
+    # Check if a given process pid's cmdline matches a given name
+    pid=$1
+    name=$2
+    [ -z "$pid" ] && return 1
+    [ ! -d /proc/$pid ] &&  return 1
+    cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
+    # Is this the expected child?
+    [ "$cmd" != "$name" ] &&  return 1
+    return 0
+}
+
+running()
+{
+# Check if the process is running looking at /proc
+# (works for all users)
+
+    # No pidfile, probably no daemon present
+    [ ! -f "$PIDFILE" ] && return 1
+    # Obtain the pid and check it against the binary name
+    pid=`cat $PIDFILE`
+    running_pid $pid $DAEMON || return 1
+    return 0
+}
+
+force_stop() {
+# Forcefully kill the process
+    [ ! -f "$PIDFILE" ] && return
+    if running ; then
+        kill -15 $pid
+        # Is it really dead?
+        [ -n "$DODTIME" ] && sleep "$DODTIME"s
+        if running ; then
+            kill -9 $pid
+            [ -n "$DODTIME" ] && sleep "$DODTIME"s
+            if running ; then
+                echo "Cannot kill $LABEL (pid=$pid)!"
+                exit 1
+            fi
+        fi
+    fi
+    rm -f $PIDFILE
+    return 0
+}
+
+case "$1" in
+  start)
+        echo -n "Starting $DESC: "
+        start-stop-daemon --start --quiet --pidfile $PIDFILE \
+            --exec $DAEMON -- $DAEMON_OPTS
+        if running ; then
+            echo "$NAME."
+        else
+            echo " ERROR."
+        fi
+        ;;
+  stop)
+        echo -n "Stopping $DESC: "
+        start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+            --exec $DAEMON
+        echo "$NAME."
+        ;;
+  force-stop)
+        echo -n "Forcefully stopping $DESC: "
+        force_stop
+        if ! running ; then
+            echo "$NAME."
+        else
+            echo " ERROR."
+        fi
+        ;;
+  #reload)
+        #
+        # If the daemon can reload its config files on the fly
+        # for example by sending it SIGHUP, do it here.
+        #
+        # If the daemon responds to changes in its config file
+        # directly anyway, make this a do-nothing entry.
+        #
+        # echo "Reloading $DESC configuration files."
+        # start-stop-daemon --stop --signal 1 --quiet --pidfile \
+        #       /var/run/$NAME.pid --exec $DAEMON
+  #;;
+  force-reload)
+        #
+        # If the "reload" option is implemented, move the "force-reload"
+        # option to the "reload" entry above. If not, "force-reload" is
+        # just the same as "restart" except that it does nothing if the
+        # daemon isn't already running.
+        # check wether $DAEMON is running. If so, restart
+        start-stop-daemon --stop --test --quiet --pidfile \
+            /var/run/$NAME.pid --exec $DAEMON \
+            && $0 restart \
+            || exit 0
+        ;;
+  restart)
+    echo -n "Restarting $DESC: "
+        start-stop-daemon --stop --quiet --pidfile \
+            /var/run/$NAME.pid --exec $DAEMON
+        [ -n "$DODTIME" ] && sleep $DODTIME
+        start-stop-daemon --start --quiet --pidfile \
+            /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
+        echo "$NAME."
+        ;;
+  status)
+    echo -n "$LABEL is "
+    if running ;  then
+        echo "running"
+    else
+        echo " not running."
+        exit 1
+    fi
+    ;;
+  *)
+    N=/etc/init.d/$NAME
+    # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+    echo "Usage: $N {start|stop|restart|force-reload|status|force-stop}" >&2
+    exit 1
+    ;;
+esac
+
+exit 0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/freediameter-daemon.install	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,3 @@
+usr/bin/freeDiameterd*
+usr/lib/freeDiameter/acl_wl.fdx
+usr/lib/freeDiameter/rt_default.fdx
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/freediameter-debug-tools.examples	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,1 @@
+doc/test_app.conf.sample
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/freediameter-debug-tools.install	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,3 @@
+usr/lib/freeDiameter/dbg_rt.fdx
+usr/lib/freeDiameter/dbg_monitor.fdx
+usr/lib/freeDiameter/test_app.fdx
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/freediameter-dev.install	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,1 @@
+usr/include/freeDiameter/*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/freediameter-dictionary-rfc4005.install	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,1 @@
+usr/lib/freeDiameter/dict_nasreq.fdx
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/freediameter-dictionary-rfc4072.install	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,1 @@
+usr/lib/freeDiameter/dict_eap.fdx
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/freediameter-radius-gateway.examples	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,2 @@
+doc/app_radgw.conf.sample
+doc/echodrop.rgwx.conf.sample
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/freediameter-radius-gateway.install	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,2 @@
+usr/lib/freeDiameter/app_radgw.fdx
+usr/lib/freeDiameter/*.rgwx
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/debian/rules	Fri May 28 17:19:22 2010 +0900
@@ -0,0 +1,36 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+#
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets  by Bill Allombert 2001
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+# Uncomment this to run the tests when the package is built
+# compile_the_tests=-DSKIP_TESTS:BOOL=OFF
+
+%:
+	dh  $@
+
+override_dh_auto_configure:
+	dh_auto_configure -- $(compile_the_tests) \
+		-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
+		-DDEFAULT_CONF_PATH:PATH=/etc/freeDiameter \
+		-DBUILD_APP_ACCT:BOOL=ON \
+		-DBUILD_APP_RADGW:BOOL=ON \
+		-DBUILD_DBG_MONITOR:BOOL=ON \
+		-DBUILD_DBG_RT:BOOL=ON \
+		-DBUILD_TEST_APP:BOOL=ON \
+		-DBUILD_APP_ACCT:BOOL=ON
+		
+
--- a/debian/changelog	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-freediameter (1.0.0-1) experimental; urgency=low
-
-  * Initial Release.
-  
- -- Sebastien Decugis <sdecugis@nict.go.jp>  Wed, 19 May 2010 15:36:54 +0900
--- a/debian/compat	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-7
--- a/debian/control	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,122 +0,0 @@
-Source: freediameter
-Section: unknown
-Priority: optional
-Maintainer: Sebastien Decugis <sdecugis@nict.go.jp>
-Build-Depends: debhelper ( >= 7),
- cmake, make, gcc, bison, flex,
- libsctp-dev, libgnutls-dev, libgcrypt-dev, libpq-dev
-Standards-Version: 3.8.3
-Homepage: http://aaa.koganei.wide.ad.jp
-
-Package: freediameter-common
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: The libfreeDiameter library.
- This library is required by all freeDiameter components.
- It may also be useful for other projects which need to 
- perform operations on Diameter messages. 
- .
- See 'freeDiameter-dev' package to retrieve the API for the library.
-
-Package: freediameter-dev
-Architecture: any
-Depends: freediameter-daemon (= ${binary:Version}), libsctp-dev, libgnutls-dev, libgcrypt-dev
-Description: This package provides the development files for freeDiameter.
-
-Package: freediameter-daemon
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, freediameter-common (= ${binary:Version})
-Suggests: ssl-cert, freediameter-dictionary-rfc4005, freediameter-dictionary-rfc4072
-Description: The freeDiameter daemon. 
- The freeDiameter daemon provides support for the Diameter
- Base Protocol. Without any extension, the daemon can only
- be used as a Diameter routing agent. You probably want to 
- install some freeDiameter extension(s) to extend its 
- features.
- .
- The daemon is shipped with a small set of extensions, for
- example to configure the routing behavior. See the 
- examples for more details.
-
-Package: freediameter-debug-tools
-Architecture: any
-Depends: ${misc:Depends}, freediameter-daemon (= ${binary:Version})
-Description: freeDiameter debug tools.
- This package provides useful tools to help tracking 
- problems in freeDiameter installation.
-
-Package: freediameter-dictionary-rfc4005
-Architecture: any
-Depends: ${misc:Depends}, freediameter-daemon (= ${binary:Version})
-Description: RFC4005 (NASREQ) dictionary support.
- This freeDiameter extension provides the dictionary support
- for commands and AVP defined in RFC4005 (NASREQ).
- .
- In order to use this extension, your main freeDiameter 
- configuration file must contain a LoadExtension directive. 
- See freeDiameter documentation for more details. 
- .
- This extension does not require a configuration file.
-
-Package: freediameter-dictionary-rfc4072
-Architecture: any
-Depends: ${misc:Depends}, freediameter-dictionary-rfc4005 (= ${binary:Version})
-Description: RFC4072 (Diameter EAP) dictionary support.
- This freeDiameter extension provides the dictionary support
- for commands and AVP defined in RFC4072 (Diameter EAP).
- .
- In order to use this extension, your main freeDiameter 
- configuration file must contain a LoadExtension directive. 
- See freeDiameter documentation for more details. 
- .
- This extension does not require a configuration file.
-
-Package: freediameter-radius-gateway
-Architecture: any
-Depends: ${misc:Depends}, freediameter-dictionary-rfc4072 (= ${binary:Version})
-Description: RADIUS/Diameter extensible gateway.
- This freeDiameter extension implements a RADIUS to Diameter
- gateway. It allows a RADIUS client to connect to a Diameter
- server.
- .
- The support for specific Diameter applications and/or RADIUS 
- extensions is provided in the gateway by the use of plugins.
- Currently, the following plugins are available:
-  - echodrop.rgwx : drop or echo a RADIUS attribute. 
-                    The attribute is not converted to Diameter.
-		    See echodrop.rgwx.conf.sample for details.
-  - auth.rgwx : Convert Access-Request to Diameter AAR or DER.
-                Requests For Comments: RADIUS: 2865, 3162, 2868,
-		2869, 3579; Diameter: 4005, 4072.
-  - acct.rgwx : Converts Accounting-Request (2866) to Diameter 
-                ACR (3588).
- .
- In order to use this extension, your main freeDiameter 
- configuration file must contain a LoadExtension directive. 
- See freeDiameter documentation for more details. 
- .
- This extension requires a configuration file.
- See app_radgw.conf.sample for more details.
-
-Package: freediameter-accounting-server
-Architecture: any
-Depends: ${misc:Depends}, freediameter-daemon (= ${binary:Version}), libpq5
-Description: freeDiameter simple Accounting server.
- This freeDiameter extension implements the Diameter Base 
- Accounting application. It saves the accounting records
- in a PostgreSQL database backend in a highly configurable
- maneer.
- .
- In order to use this extension, your main freeDiameter 
- configuration file must contain a LoadExtension directive. 
- See freeDiameter documentation for more details. 
- .
- This extension requires a configuration file.
- See app_acct.conf.sample for more details.
-
-
-
-
-
-
-
--- a/debian/copyright	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-Format-Specification: http://dep.debian.net/deps/dep5/
-Name: freeDiameter
-Maintainer: Sebastien Decugis <sdecugis@nict.go.jp>
-Source: http://aaa.koganei.wide.ad.jp
-
-Files: *
-Copyright: 2008-2010, WIDE Project and NICT.
-License: BSD
- Redistribution and use of this software in source and binary forms, with or without modification, are
- permitted provided that the following conditions are met:
- .
- * Redistributions of source code must retain the above
-   copyright notice, this list of conditions and the
-   following disclaimer.
- . 
- * Redistributions in binary form must reproduce the above
-   copyright notice, this list of conditions and the
-   following disclaimer in the documentation and/or other
-   materials provided with the distribution.
- .
- * Neither the name of the WIDE Project or NICT nor the
-   names of its contributors may be used to endorse or
-   promote products derived from this software without
-   specific prior written permission of WIDE Project and
-   NICT.
- .
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
- PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
- TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
--- a/debian/dirs	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-etc/freeDiameter/
--- a/debian/docs	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-INSTALL*
-LICENSE
-README
--- a/debian/freediameter-accounting-server.examples	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-doc/app_acct.conf.sample
--- a/debian/freediameter-accounting-server.install	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-usr/lib/freeDiameter/app_acct.fdx
--- a/debian/freediameter-common.install	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-usr/lib/libfreeDiameter.so*
--- a/debian/freediameter-daemon.default	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-# Defaults for freediameter initscript
-# sourced by /etc/init.d/freediameter
-# installed at /etc/default/freediameter by the maintainer scripts
-
-# Additional options that are passed to the Daemon.
-# See "freeDiameterd --help" for supported flags.
-DAEMON_OPTS=""
--- a/debian/freediameter-daemon.examples	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-doc/freediameter.conf.sample
-doc/acl_wl.conf.sample
-doc/rt_default.conf.sample
--- a/debian/freediameter-daemon.init	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,160 +0,0 @@
-#! /bin/sh
-
-### BEGIN INIT INFO
-# Provides:          freediameter
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
-# Required-Start:    $remote_fs $syslog
-# Required-Stop:     $remote_fs $syslog
-# Short-Description: Start freeDiameter daemon at boot time
-# Description:       Start the freeDiameter daemon at boot time.
-#	freeDiameter is an extensible implementation of the Diameter protocol,
-#	designed for Authentication, Authorization and Accounting. Diameter is
-#	an evolution of the RADIUS protocol.
-### END INIT INFO#
-
-DAEMON=/usr/bin/freeDiameterd
-CONF=/etc/freeDiameter/freeDiameter.conf
-NAME=freediameter
-DESC=freeDiameter daemon
-
-test -x $DAEMON || exit 0
-
-LOGDIR=/var/log/freediameter
-PIDFILE=/var/run/$NAME.pid
-DODTIME=30                  # Time to wait for the server to die, in seconds
-                            # The value is high because we wait for STA answers
-			    # before disconnecting the peers.
-
-# Include freediameter defaults if available
-if [ -f /etc/default/freediameter ] ; then
-    . /etc/default/freediameter
-fi
-
-test x"" != x$DAEMON_OPTS || test -f $CONF || exit 0
-
-set -e
-
-running_pid()
-{
-    # Check if a given process pid's cmdline matches a given name
-    pid=$1
-    name=$2
-    [ -z "$pid" ] && return 1
-    [ ! -d /proc/$pid ] &&  return 1
-    cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
-    # Is this the expected child?
-    [ "$cmd" != "$name" ] &&  return 1
-    return 0
-}
-
-running()
-{
-# Check if the process is running looking at /proc
-# (works for all users)
-
-    # No pidfile, probably no daemon present
-    [ ! -f "$PIDFILE" ] && return 1
-    # Obtain the pid and check it against the binary name
-    pid=`cat $PIDFILE`
-    running_pid $pid $DAEMON || return 1
-    return 0
-}
-
-force_stop() {
-# Forcefully kill the process
-    [ ! -f "$PIDFILE" ] && return
-    if running ; then
-        kill -15 $pid
-        # Is it really dead?
-        [ -n "$DODTIME" ] && sleep "$DODTIME"s
-        if running ; then
-            kill -9 $pid
-            [ -n "$DODTIME" ] && sleep "$DODTIME"s
-            if running ; then
-                echo "Cannot kill $LABEL (pid=$pid)!"
-                exit 1
-            fi
-        fi
-    fi
-    rm -f $PIDFILE
-    return 0
-}
-
-case "$1" in
-  start)
-        echo -n "Starting $DESC: "
-        start-stop-daemon --start --quiet --pidfile $PIDFILE \
-            --exec $DAEMON -- $DAEMON_OPTS
-        if running ; then
-            echo "$NAME."
-        else
-            echo " ERROR."
-        fi
-        ;;
-  stop)
-        echo -n "Stopping $DESC: "
-        start-stop-daemon --stop --quiet --pidfile $PIDFILE \
-            --exec $DAEMON
-        echo "$NAME."
-        ;;
-  force-stop)
-        echo -n "Forcefully stopping $DESC: "
-        force_stop
-        if ! running ; then
-            echo "$NAME."
-        else
-            echo " ERROR."
-        fi
-        ;;
-  #reload)
-        #
-        # If the daemon can reload its config files on the fly
-        # for example by sending it SIGHUP, do it here.
-        #
-        # If the daemon responds to changes in its config file
-        # directly anyway, make this a do-nothing entry.
-        #
-        # echo "Reloading $DESC configuration files."
-        # start-stop-daemon --stop --signal 1 --quiet --pidfile \
-        #       /var/run/$NAME.pid --exec $DAEMON
-  #;;
-  force-reload)
-        #
-        # If the "reload" option is implemented, move the "force-reload"
-        # option to the "reload" entry above. If not, "force-reload" is
-        # just the same as "restart" except that it does nothing if the
-        # daemon isn't already running.
-        # check wether $DAEMON is running. If so, restart
-        start-stop-daemon --stop --test --quiet --pidfile \
-            /var/run/$NAME.pid --exec $DAEMON \
-            && $0 restart \
-            || exit 0
-        ;;
-  restart)
-    echo -n "Restarting $DESC: "
-        start-stop-daemon --stop --quiet --pidfile \
-            /var/run/$NAME.pid --exec $DAEMON
-        [ -n "$DODTIME" ] && sleep $DODTIME
-        start-stop-daemon --start --quiet --pidfile \
-            /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
-        echo "$NAME."
-        ;;
-  status)
-    echo -n "$LABEL is "
-    if running ;  then
-        echo "running"
-    else
-        echo " not running."
-        exit 1
-    fi
-    ;;
-  *)
-    N=/etc/init.d/$NAME
-    # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
-    echo "Usage: $N {start|stop|restart|force-reload|status|force-stop}" >&2
-    exit 1
-    ;;
-esac
-
-exit 0
--- a/debian/freediameter-daemon.install	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-usr/bin/freeDiameterd*
-usr/lib/freeDiameter/acl_wl.fdx
-usr/lib/freeDiameter/rt_default.fdx
--- a/debian/freediameter-debug-tools.examples	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-doc/test_app.conf.sample
--- a/debian/freediameter-debug-tools.install	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-usr/lib/freeDiameter/dbg_rt.fdx
-usr/lib/freeDiameter/dbg_monitor.fdx
-usr/lib/freeDiameter/test_app.fdx
--- a/debian/freediameter-dev.install	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-usr/include/freeDiameter/*
--- a/debian/freediameter-dictionary-rfc4005.install	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-usr/lib/freeDiameter/dict_nasreq.fdx
--- a/debian/freediameter-dictionary-rfc4072.install	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-usr/lib/freeDiameter/dict_eap.fdx
--- a/debian/freediameter-radius-gateway.examples	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-doc/app_radgw.conf.sample
-doc/echodrop.rgwx.conf.sample
--- a/debian/freediameter-radius-gateway.install	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-usr/lib/freeDiameter/app_radgw.fdx
-usr/lib/freeDiameter/*.rgwx
--- a/debian/rules	Fri May 28 14:09:51 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-#!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-#
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
-#
-# Modified to make a template file for a multi-binary package with separated
-# build-arch and build-indep targets  by Bill Allombert 2001
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-# This has to be exported to make some magic below work.
-export DH_OPTIONS
-
-# Uncomment this to run the tests when the package is built
-# compile_the_tests=-DSKIP_TESTS:BOOL=OFF
-
-%:
-	dh  $@
-
-override_dh_auto_configure:
-	dh_auto_configure -- $(compile_the_tests) \
-		-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
-		-DDEFAULT_CONF_PATH:PATH=/etc/freeDiameter \
-		-DBUILD_APP_ACCT:BOOL=ON \
-		-DBUILD_APP_RADGW:BOOL=ON \
-		-DBUILD_DBG_MONITOR:BOOL=ON \
-		-DBUILD_DBG_RT:BOOL=ON \
-		-DBUILD_TEST_APP:BOOL=ON \
-		-DBUILD_APP_ACCT:BOOL=ON
-		
-
"Welcome to our mercurial repository"