Navigation


Changeset 315:2725e68bc78d in freeDiameter


Ignore:
Timestamp:
May 19, 2010, 11:36:03 AM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Tweak init.d scripts

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • INSTALL.Ubuntu

    r313 r315  
    1111Tested not working: Ubuntu Hardy (too old).
    1212Tested working: Ubuntu Intrepid, Jaunty, Karmic, Lucid. Debian Lenny.
    13 
    1413
    1514
     
    5554
    5655===========================================
    57 apt-get -y install mercurial cmake make gcc bison flex libsctp-dev libgnutls-dev libgcrypt-dev libpq-dev ssl-cert
     56
     57You can alternatively do:
     58apt-get -y install mercurial cmake make gcc bison flex libsctp-dev libgnutls-dev libgcrypt-dev libpq-dev ssl-cert debhelper
    5859cd /usr/src
    5960hg clone http://aaa.koganei.wide.ad.jp/hg/freeDiameter
    60 mkdir fDbuild && cd fDbuild
    61 cmake -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
    62       -DDEFAULT_CONF_PATH:PATH=/etc/freeDiameter \
    63       -DCMAKE_INSTALL_PREFIX:PATH=/usr \
    64       -DINSTALL_DOCUMENTATION_SUFFIX:PATH=share/doc/freeDiameter \
    65       -DBUILD_APP_ACCT:BOOL=ON \
    66       -DBUILD_APP_RADGW:BOOL=ON \
    67       -DBUILD_DBG_MONITOR:BOOL=ON \
    68       -DBUILD_DBG_RT:BOOL=ON \
    69       -DBUILD_TEST_APP:BOOL=ON \
    70       -DBUILD_APP_ACCT:BOOL=ON \
    71       ../freeDiameter
    72 make
    73 make install
     61cd freeDiameter
     62dh binary
     63
     64
     65
    7466ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/ssl/certs/freeDiameter.pem
    7567ln -s /etc/ssl/private/ssl-cert-snakeoil.key /etc/ssl/private/freeDiameter.key
  • debian/freediameter-daemon.init

    r314 r315  
    11#! /bin/sh
    2 #
    3 # skeleton      example file to build /etc/init.d/ scripts.
    4 #               This file should be used to construct scripts for /etc/init.d.
    5 #
    6 #               Written by Miquel van Smoorenburg <miquels@cistron.nl>.
    7 #               Modified for Debian
    8 #               by Ian Murdock <imurdock@gnu.ai.mit.edu>.
    9 #               Further changes by Javier Fernandez-Sanguino <jfs@debian.org>
    10 #
    11 # Version:      @(#)skeleton  1.9  26-Feb-2001  miquels@cistron.nl
    12 #
    132
    14 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
     3### BEGIN INIT INFO
     4# Provides:          freediameter
     5# Default-Start:     3 4 5
     6# Default-Stop:      0 1 2 6
     7# Short-Description: Start freeDiameter daemon at boot time
     8# Description:       Start the freeDiameter daemon at boot time.
     9#       freeDiameter is an extensible implementation of the Diameter protocol,
     10#       designed for Authentication, Authorization and Accounting. Diameter is
     11#       an evolution of the RADIUS protocol.
     12### END INIT INFO#
     13
    1514DAEMON=/usr/bin/freeDiameterd
     15CONF=/etc/freeDiameter/freeDiameter.conf
    1616NAME=freediameter
    1717DESC=freeDiameter daemon
     
    2929    . /etc/default/freediameter
    3030fi
     31
     32test x"" != x$DAEMON_OPTS || test -f $CONF || exit 0
    3133
    3234set -e
Note: See TracChangeset for help on using the changeset viewer.