Folks,

The attached patch adds support for a 'make packages' target which
creates Erlang/OTP "release packages" for installation onto embedded
systems.  The attached patch includes the (uncommitted) patch I made
earlier to seperate the stack into it's own application and move the
beam files to a seperate "ebin" directory.  The main reason for that
work was to facilitate this functionality.

Instructions for using the packages in an embedded system are also 
attached.

--
        -Vance
Instructions
------------

To build an embedded system follow the instructions in the "Embedded
Systems User's Guide" [http://www.erlang.org/doc/embedded/part_frame.html].
Then after having logged in to the system as the user "otpuser" build 
an embedded Yxa system.

First run configure in a seperate build directory and pass the options
for the configuration and database directories which the embedded system
will use (tailor to taste):

    $ ../yxa-src/configure --sysconfdir=~/etc \
            --with-mnesiadir=~/db

Then make the project as usual.  You may go straight into a package
build as it will build all the prerequisites first:

    $ make packages

The release packages can then be copied to the Erlang/OTP releases
directory on the embedded system (e.g.):

    $ cp `find . -name "*.tar.gz"` ~/lib/erlang/releases
    $ ls ~/lib/erlang/releases
    R11B                    appserver.tar.gz        pstnproxy.tar.gz
    RELEASES                eventserver.tar.gz      start_erl.data
    RELEASES.src            incomingproxy.tar.gz
    Yaws-1.73               outgoingproxy.tar.gz
    
Start an Erlang shell and the SASL application:

    $ erl    
    Eshell V5.5.2  (abort with ^G)
    1> application:start(sasl).

Use the SASL application release_handler to move the files from the
release packages (gzipped tar files) into the directory structure:

    2> release_handler:unpack_release("incomingproxy").
    {ok,"YXA-REG-1.0-current"}
    3> release_handler:unpack_release("outgoingproxy").
    {ok,"YXA-PROXY-1.0-current"}
    4> release_handler:unpack_release("pstnproxy").
    {ok,"YXA-PSTN-1.0-current"}
    5> release_handler:unpack_release("appserver").                    
    {ok,"YXA-AS-1.0-current"}
    6> release_handler:unpack_release("eventserver").                  
    {ok,"YXA-EPSF-1.0-current"}

Exit back to the shell and you'll see that the packages have been
removed and new directories were created for each release.  These
hold the boot files (*.boot) and Erlang configuration files (sys.config).

    $ ls ~/lib/erlang/releases
    R11B                    YXA-EPSF-1.0-current    Yaws-1.73
    RELEASES                YXA-PROXY-1.0-current   start_erl.data
    RELEASES.src            YXA-PSTN-1.0-current
    YXA-AS-1.0-current      YXA-REG-1.0-current

Each release is listed in the RELEASES file but at this point our 
new releases have the status of "unpacked".  To make them elligible
to run we must change their status to "current".  If we were performing
an upgrade to a running system we would have created a .relup file to
describe how to upgrade from an old release to the current one and would
use release_handler:install_release/1,2 to do an in service upgrade.
Here we will just manually edit the status of each release while the
node is offline:

    $ sed -e 's/unpacked/current/' \
            ~/lib/erlang/releases/RELEASES > RELEASES.current
    $ cp RELEASES.current ~/lib/erlang/releases/RELEASES

The next step is to select one of the releases to be the one to run
when the node is started.  We can change this later, selecting from
the current releases, when we want to run another.

    $ erl -sname incomingproxy \
            -config lib/erlang/releases/YXA-REG-1.0-current/sys 
    1> application:start(sasl).
    ok
    2> release_handler:make_permanent("YXA-REG-1.0-current").
    ok

Above the emulator was started with the node name which will later be
used to run the embedded system as and given the same sys.config file
so now when the Yxa bootstrap code is run it will know where to put
the database:

    3> bootstrap:start().
    Bootstrapping YXA on node '[EMAIL PROTECTED]' :
    
    * Created Mnesia schema on node '[EMAIL PROTECTED]'
    * Creating tables on this Mnesia node ('[EMAIL PROTECTED]')
      + Creating table 'phone'
      + Creating table 'database_regexproute'
      + Creating table 'database_forward'
      + Creating table 'database_call'
      + Creating table 'cpl_db'
      + Creating table 'database_gruu'
      + Creating table 'database_eventdata'
    * Updating any pre-existing table definitions
    * Stopping Mnesia
    
    Bootstrapping complete.
    

The sys.config file contains the application environment variables
for the applications to know where to find the (other) configuration:

    [{mnesia, [{dir, "/export/home/otpuser/db"}]},
     {yaws, [{conf, "/export/home/otpuser/etc/yaws.conf"}]},
     {yxa, [{config_erlang_fn, "/export/home/otpuser/etc/yxa.config"}]}].

The embedded system would be started from the operating system's
scripts when it boots and would call ~/lib/erlang/bin/start.  This
uses run_erl which runs detached from the controlling terminal and
logs to ~/lib/erlang/log/.  You can attach to the console later by
running to_erl.  To test we'll bypass run_erl and run start_erl
directly:

  $ lib/erlang/bin/start_erl `pwd`/lib/erlang lib/erlang/releases \
          lib/erlang/releases/start_erl.data -sname incomingproxy

  2007-12-23 04:33:57.639 normal<0.78.0>:proxy started (YXA version 1.0-current)
  Eshell V5.5.2  (abort with ^G)
  ([EMAIL PROTECTED])1> sipsocket:get_all_listenports().
  [5060]
  ([EMAIL PROTECTED])2> siphost:myip().
  "21X.2X5.X2.1X3"
  ([EMAIL PROTECTED])3> yxa_ctl:status().
  {ok,1198402437}


This system is now ready to run embedded.  When the next release 
of Yxa is ready I'll add support to update a system running a
YXA-*-1.0-current release to the next release in service.

Index: Makefile.in
===================================================================
--- Makefile.in (revision 1655)
+++ Makefile.in (working copy)
@@ -40,12 +40,12 @@
        src \
        yaws/src
 
-RECURSIVE_TARGETS = all-recursive install-recursive clean-recursive 
distclean-recursive doc-recursive
+RECURSIVE_TARGETS = all-recursive install-recursive clean-recursive 
distclean-recursive doc-recursive packages-recursive
 
 erl_FILES = \
        version.erl
 
-beam_FILES = $(erl_FILES:.erl=.beam)
+beam_FILES = $(addprefix ebin/, $(erl_FILES:.erl=.beam))
 
 start_FILES = \
        appserver \
@@ -54,7 +54,7 @@
        pstnproxy \
        yxa-bootstrap
 
-all: $(beam_FILES) all-recursive $(start_FILES)
+all: ebin $(beam_FILES) all-recursive $(start_FILES)
 
 $(RECURSIVE_TARGETS):
        @target=`echo $@ | sed s/-recursive//`; \
@@ -63,6 +63,9 @@
        (cd $$subdir && $(MAKE) $$target) || exit 1; \
        done
 
+ebin:
+       $(mkinstalldirs) ebin
+
 install: $(beam_FILES) $(start_FILES) install-recursive
        $(mkinstalldirs) $(DESTDIR)$(confdir)
        $(mkinstalldirs) $(DESTDIR)$(sslcertdir)
@@ -76,6 +79,8 @@
          $(install_PROGRAM) $$p $(DESTDIR)$(sbindir)/$$f ; \
        done
 
+packages:      all packages-recursive
+
 distclean: clean distclean-recursive
        rm -f Makefile
        rm -f config.status
@@ -87,6 +92,7 @@
        rm -f core *.core *~
        rm -f *.beam newversion.erl.new version.erl.in
        rm -f *.o ktrace.out erl_crash.dump
+       rm -f $(beam_FILES)
        rm -f $(start_FILES)
 
 sslkey:
@@ -110,8 +116,8 @@
 .SUFFIXES:
 .SUFFIXES: .c .o .hrl .beam .erl .boot .rel .app .app-in
 
-.erl.beam:
-       $(ERLC) -I$(srcdir) -I$(srcdir)/include/ -W +debug_info $<
+ebin/%.beam:   %.erl
+       $(ERLC) -o ./ebin -I$(srcdir) -I$(srcdir)/include/ -W +debug_info $<
 
 $(start_FILES): $(top_srcdir)/scripts/init.sh.in $(builddir)/config.status
 

Index: src/Makefile.in
===================================================================
--- src/Makefile.in     (revision 1655)
+++ src/Makefile.in     (working copy)
@@ -28,7 +28,7 @@
 mkinstalldirs = $(SHELL) $(top_srcdir)/scripts/mkinstalldirs
 
 systools_make_script = \
-       $(ERLC) -I$(srcdir) $(srcdir)/$*.rel
+       $(ERLC) +no_module_tests -pa ../ebin $*.rel
 
 
 erl_FILES = \
@@ -107,30 +107,32 @@
        appserver.boot \
        outgoingproxy.boot
 
-app_FILES = $(boot_FILES:.boot=.app)
+rel_FILES = $(boot_FILES:.boot=.rel)
 
+app_FILES = $(addprefix ../ebin/, yxa.app $(boot_FILES:.boot=.app))
+
 CC = gcc
 CFLAGS = -Wall
 
-beam_FILES = $(erl_FILES:.erl=.beam)
+beam_FILES = $(addprefix ../ebin/, $(erl_FILES:.erl=.beam))
 
 SUBDIRS = \
        config \
        cpl \
        database \
        eldap \
-       event \
        event_handler \
+       mysql \
        include \
        local \
-       mysql \
        sipuserdb \
        transactionlayer \
-       transportlayer
+       transportlayer \
+       event 
 
-RECURSIVE_TARGETS = all-recursive install-recursive clean-recursive 
distclean-recursive doc-recursive
+RECURSIVE_TARGETS = all-recursive install-recursive clean-recursive 
distclean-recursive doc-recursive packages-recursive
 
-all: $(beam_FILES) all-recursive $(boot_FILES) start_ssl.boot
+all: $(beam_FILES) $(app_FILES) $(rel_FILES) all-recursive $(boot_FILES) 
start_ssl.boot
 
 $(RECURSIVE_TARGETS):
        @target=`echo $@ | sed s/-recursive//`; \
@@ -142,13 +144,23 @@
 install: $(boot_FILES) $(beam_FILES) $(hrl_FILES) start_ssl.boot 
install-recursive
        $(mkinstalldirs) $(DESTDIR)$(beamdir)
        $(mkinstalldirs) $(DESTDIR)$(includedir)
-       for p in $(beam_FILES) $(boot_FILES) $(app_FILES) start_ssl.boot; do \
+       for p in $(beam_FILES) $(app_FILES); do \
          $(install_DATA) $$p $(DESTDIR)$(beamdir)/$$f ; \
        done
+       for p in $(boot_FILES) start_ssl.boot; do \
+         $(install_DATA) $$p $(DESTDIR)$(beamdir)/$$f ; \
+       done
        for p in $(hrl_FILES); do \
          $(install_DATA) $(srcdir)/$$p $(DESTDIR)$(includedir)/$$f ; \
        done
 
+packages:      all $(boot_FILES) $(rel_FILES) sys.config
+       for p in $(basename $(rel_FILES)) ; do \
+         $(ERL) -noinput -pa ../ebin \
+           -run systools make_tar  $$p -s erlang halt ; \
+       done
+       $(MAKE) packages-recursive
+
 distclean: clean distclean-recursive
        rm -f Makefile
 
@@ -156,6 +168,10 @@
        rm -f core *.core *~
        rm -f *.beam *.script *.start *.boot *.app
        rm -f *.o ktrace.out erl_crash.dump
+       rm -f $(addsuffix .tar.gz, $(basename $(rel_FILES)))
+       rm -f $(rel_FILES) start_ssl.rel sys.config
+       rm -f $(app_FILES)
+       rm -f $(beam_FILES)
 
 $(beam_FILES): $(yxa_hrl_FILES)
 $(boot_FILES): $(beam_FILES)
@@ -164,34 +180,32 @@
 .SUFFIXES:
 .SUFFIXES: .c .o .hrl .beam .erl .boot .rel .app .app-in
 
-.erl.beam:
-       $(ERLC) -I$(srcdir) -I$(srcdir)/include/ -W +debug_info $<
+../ebin/%.beam:        $(srcdir)/%.erl
+       $(ERLC) -o ../ebin -I$(srcdir) -I$(srcdir)/include/ -W +debug_info $<
 
-local.beam: $(srcdir)/local.erl ../config.status
-       $(ERLC) -I$(srcdir) -I$(srcdir)/include/ -W +debug_info 
-DLOCAL_MODULE=$(local_module) $(srcdir)/local.erl
+../ebin/local.beam: $(srcdir)/local.erl ../config.status
+       $(ERLC) -o ../ebin -I$(srcdir) -I$(srcdir)/include/ -W +debug_info 
-DLOCAL_MODULE=$(local_module) $(srcdir)/local.erl
 
-directory.beam: $(srcdir)/directory.erl ../config.status 
$(srcdir)/eldap/eldap.hrl
-       $(ERLC) -I$(srcdir) -I$(srcdir)/include/ -I$(srcdir)/eldap -W 
+debug_info $(srcdir)/directory.erl
+../ebin/directory.beam: $(srcdir)/directory.erl ../config.status 
$(srcdir)/eldap/eldap.hrl
+       $(ERLC) -o ../ebin -I$(srcdir) -I$(srcdir)/include/ -I$(srcdir)/eldap 
-W +debug_info $(srcdir)/directory.erl
 
-.app-in.app:
-       cp $(srcdir)/$*.app-in $*.app
+../ebin/%.app: $(srcdir)/%.app-in
+       sed -e 's!%LOCAL_MODULE%!$(local_module)!' \
+                       -e '[EMAIL PROTECTED]@!' < $< > $@
 
+%.rel: $(srcdir)/%.rel-in
+       sed -e '[EMAIL PROTECTED]@!' < $< > $@
 
-incomingproxy.boot: incomingproxy.app $(srcdir)/incomingproxy.rel
+%.boot: ../ebin/%.app ../ebin/yxa.app %.rel
        $(systools_make_script)
 
-pstnproxy.boot: pstnproxy.app $(srcdir)/pstnproxy.rel
-       $(systools_make_script)
+sys.config:    $(srcdir)/sys.config-in
+       sed -e 's!%DB_DIR%!$(mnesiadir)!' \
+             -e 's!%CONF_DIR%!$(confdir)!' < $< > $@
 
-appserver.boot: appserver.app $(srcdir)/appserver.rel
+start_ssl.boot: start_ssl.rel
        $(systools_make_script)
 
-outgoingproxy.boot: outgoingproxy.app $(srcdir)/outgoingproxy.rel
-       $(systools_make_script)
-
-start_ssl.boot: $(srcdir)/start_ssl.rel
-       $(systools_make_script)
-
 test: autotest.beam
        $(ERL) -noshell -s autotest run shell -pz $(SUBDIRS)
 

Index: yaws/src/Makefile.in
===================================================================
--- yaws/src/Makefile.in        (revision 1655)
+++ yaws/src/Makefile.in        (working copy)
@@ -44,7 +44,7 @@
 CC = gcc
 CFLAGS = -Wall
 
-beam_FILES = $(erl_FILES:.erl=.beam)
+beam_FILES = $(addprefix ../../ebin/, $(erl_FILES:.erl=.beam))
 
 all: $(beam_FILES)
 
@@ -58,6 +58,8 @@
          $(install_DATA) $(srcdir)/$$p $(DESTDIR)$(includedir)/$$f ; \
        done
 
+packages:
+
 distclean: clean
        rm -f Makefile
 
@@ -65,6 +67,7 @@
        rm -f core *.core *~
        rm -f *.beam *.script *.start *.boot *.rel *.app *.script
        rm -f *.o ktrace.out erl_crash.dump
+       rm -f $(beam_FILES)
 
 doc:
        mkdir -p ../../doc/html/yaws/src
@@ -81,5 +84,6 @@
 .SUFFIXES:
 .SUFFIXES: .c .o .hrl .beam .erl .boot .rel .rel-in .app .app-in
 
-.erl.beam:
-       $(ERLC) -I$(srcdir) -I$(top_srcdir)/src/include/ -W +debug_info $<
+../../ebin/%.beam:     $(srcdir)/%.erl
+       $(ERLC) -o ../../ebin -I$(srcdir) -I$(top_srcdir)/src/include/ -W 
+debug_info $<
+


Index: src/local/Makefile.in
===================================================================
--- src/local/Makefile.in       (revision 1655)
+++ src/local/Makefile.in       (working copy)
@@ -38,12 +38,14 @@
 CC = gcc
 CFLAGS = -Wall
 
-beam_FILES = $(erl_FILES:.erl=.beam)
+beam_FILES = $(addprefix ../../ebin/, $(erl_FILES:.erl=.beam))
 
 all: $(beam_FILES)
 
 install: $(beam_FILES) $(hrl_FILES)
 
+packages:
+
 distclean: clean
        rm -f Makefile
 
@@ -51,6 +53,7 @@
        rm -f core *.core *~
        rm -f *.beam *.script *.start *.boot *.rel *.app *.script
        rm -f *.o ktrace.out erl_crash.dump
+       # rm -f $(beam_FILES)
 
 doc:
        mkdir -p ../../doc/html/src/local
@@ -67,5 +70,6 @@
 .SUFFIXES:
 .SUFFIXES: .c .o .hrl .beam .erl .boot .rel .rel-in .app .app-in
 
-.erl.beam:
-       $(ERLC) -I$(srcdir) -I$(srcdir)/../include/ -W +debug_info $<
+../../ebin/%.beam:     $(srcdir)/%.erl
+       $(ERLC) -o ../../ebin -I$(srcdir) -I$(srcdir)/../include/ -W 
+debug_info $<
+


Index: src/include/Makefile.in
===================================================================
--- src/include/Makefile.in     (revision 1655)
+++ src/include/Makefile.in     (working copy)
@@ -53,6 +53,8 @@
          $(install_DATA) $(srcdir)/$$p $(DESTDIR)$(includedir)/$$f ; \
        done
 
+packages:
+
 distclean: clean
        rm -f Makefile
 

Index: src/eldap/Makefile.in
===================================================================
--- src/eldap/Makefile.in       (revision 1655)
+++ src/eldap/Makefile.in       (working copy)
@@ -40,7 +40,7 @@
 
 yxa_hrl_FILES = $(imported_hrl_FILES) $(hrl_FILES)
 
-beam_FILES = $(erl_FILES:.erl=.beam)
+beam_FILES = $(addprefix ../../ebin/, $(erl_FILES:.erl=.beam))
 
 all: $(beam_FILES)
 
@@ -54,6 +54,8 @@
          $(install_DATA) $(srcdir)/$$p $(DESTDIR)$(includedir)/$$f ; \
        done
 
+packages:
+
 distclean: clean
        rm -f Makefile
 
@@ -61,6 +63,8 @@
        rm -f core *.core *~
        rm -f *.beam *.script *.start *.boot *.rel *.app *.script
        rm -f *.o ktrace.out erl_crash.dump
+       rm -rf ELDAPv3.asn1db ELDAPv3.hrl ELDAPv3.erl ELDAPv3.beam
+       rm -f $(beam_FILES)
 
 doc:
        mkdir -p ../../doc/html/src/eldap
@@ -71,6 +75,9 @@
                -run yxa_edoc run "eldap.erl" \
                -run init stop
 
+ELDAPv3.hrl: ELDAPv3.asn
+       $(ERLC) $(srcdir)/ELDAPv3.asn
+
 ELDAPv3.erl: ELDAPv3.asn
        $(ERLC) $(srcdir)/ELDAPv3.asn
 
@@ -80,5 +87,5 @@
 .SUFFIXES:
 .SUFFIXES: .c .o .hrl .beam .erl .boot .rel .rel-in .app .app-in
 
-.erl.beam:
-       $(ERLC) -I$(srcdir) -I$(srcdir)/../include/ -W +debug_info $<
+../../ebin/%.beam:     %.erl
+       $(ERLC) -o ../../ebin -I$(srcdir) -I$(srcdir)/../include/ -W 
+debug_info $<


Index: src/transportlayer/Makefile.in
===================================================================
--- src/transportlayer/Makefile.in      (revision 1655)
+++ src/transportlayer/Makefile.in      (working copy)
@@ -59,7 +59,7 @@
 CC = gcc
 CFLAGS = -Wall
 
-beam_FILES = $(erl_FILES:.erl=.beam)
+beam_FILES = $(addprefix ../../ebin/, $(erl_FILES:.erl=.beam))
 
 all: $(beam_FILES)
 
@@ -67,12 +67,14 @@
        $(mkinstalldirs) $(DESTDIR)$(beamdir)
        $(mkinstalldirs) $(DESTDIR)$(includedir)
        for p in $(beam_FILES); do \
-         $(install_DATA) $$p $(DESTDIR)$(beamdir)/$$f ; \
+         $(install_DATA) ../../ebin/$$p $(DESTDIR)$(beamdir)/$$f ; \
        done
        for p in $(hrl_FILES); do \
          $(install_DATA) $(srcdir)/$$p $(DESTDIR)$(includedir)/$$f ; \
        done
 
+packages:
+
 distclean: clean
        rm -f Makefile
 
@@ -80,6 +82,7 @@
        rm -f core *.core *~
        rm -f *.beam *.script *.start *.boot *.rel *.app *.script
        rm -f *.o ktrace.out erl_crash.dump
+       rm -f $(beam_FILES)
 
 doc:
        mkdir -p ../../doc/html/src/transportlayer
@@ -96,5 +99,5 @@
 .SUFFIXES:
 .SUFFIXES: .c .o .hrl .beam .erl .boot .rel .rel-in .app .app-in
 
-.erl.beam:
-       $(ERLC) -I$(srcdir) -I$(srcdir)/../include/ -W +debug_info $<
+../../ebin/%.beam:     $(srcdir)/%.erl
+       $(ERLC) -o ../../ebin -I$(srcdir) -I$(srcdir)/../include/ -W 
+debug_info $<


Index: src/sipuserdb/Makefile.in
===================================================================
--- src/sipuserdb/Makefile.in   (revision 1655)
+++ src/sipuserdb/Makefile.in   (working copy)
@@ -48,7 +48,7 @@
 CC = gcc
 CFLAGS = -Wall
 
-beam_FILES = $(erl_FILES:.erl=.beam)
+beam_FILES = $(addprefix ../../ebin/, $(erl_FILES:.erl=.beam))
 
 all: $(beam_FILES)
 
@@ -56,12 +56,14 @@
        $(mkinstalldirs) $(DESTDIR)$(beamdir)
        $(mkinstalldirs) $(DESTDIR)$(includedir)
        for p in $(beam_FILES); do \
-         $(install_DATA) $$p $(DESTDIR)$(beamdir)/$$f ; \
+         $(install_DATA) ../../ebin/$$p $(DESTDIR)$(beamdir)/$$f ; \
        done
        for p in $(hrl_FILES); do \
          $(install_DATA) $(srcdir)/$$p $(DESTDIR)$(includedir)/$$f ; \
        done
 
+packages:
+
 distclean: clean
        rm -f Makefile
 
@@ -69,6 +71,7 @@
        rm -f core *.core *~
        rm -f *.beam *.script *.start *.boot *.rel *.app *.script
        rm -f *.o ktrace.out erl_crash.dump
+       rm -f $(beam_FILES)
 
 doc:
        mkdir -p ../../doc/html/src/sipuserdb
@@ -85,5 +88,6 @@
 .SUFFIXES:
 .SUFFIXES: .c .o .hrl .beam .erl .boot .rel .rel-in .app .app-in
 
-.erl.beam:
-       $(ERLC) -I$(srcdir) -I$(srcdir)/../include/ -W +debug_info $<
+../../ebin/%.beam:     $(srcdir)/%.erl
+       $(ERLC) -o ../../ebin -I$(srcdir) -I$(srcdir)/../include/ -W 
+debug_info $<
+


Index: src/config/Makefile.in
===================================================================
--- src/config/Makefile.in      (revision 1655)
+++ src/config/Makefile.in      (working copy)
@@ -46,7 +46,7 @@
 CC = gcc
 CFLAGS = -Wall
 
-beam_FILES = $(erl_FILES:.erl=.beam)
+beam_FILES = $(addprefix ../../ebin/, $(erl_FILES:.erl=.beam))
 
 all: $(beam_FILES)
 
@@ -54,12 +54,14 @@
        $(mkinstalldirs) $(DESTDIR)$(beamdir)
        $(mkinstalldirs) $(DESTDIR)$(includedir)
        for p in $(beam_FILES); do \
-         $(install_DATA) $$p $(DESTDIR)$(beamdir)/$$f ; \
+         $(install_DATA) ../../ebin/$$p $(DESTDIR)$(beamdir)/$$f ; \
        done
        for p in $(hrl_FILES); do \
          $(install_DATA) $(srcdir)/$$p $(DESTDIR)$(includedir)/$$f ; \
        done
 
+packages:
+
 distclean: clean
        rm -f Makefile
 
@@ -67,6 +69,7 @@
        rm -f core *.core *~
        rm -f *.beam *.script *.start *.boot *.rel *.app *.script
        rm -f *.o ktrace.out erl_crash.dump
+       rm -f $(beam_FILES)
 
 $(beam_FILES): $(yxa_hrl_FILES)
 
@@ -74,8 +77,8 @@
 .SUFFIXES:
 .SUFFIXES: .c .o .hrl .beam .erl .boot .rel .rel-in .app .app-in
 
-.erl.beam:
-       $(ERLC) -I$(srcdir) -I$(srcdir)/../include/ -W +debug_info $<
+../../ebin/%.beam:     $(srcdir)/%.erl
+       $(ERLC) -o ../../ebin -I$(srcdir) -I$(srcdir)/../include/ -W 
+debug_info $<
 
 doc:
        mkdir -p ../../doc/html/src/config


Index: src/transactionlayer/Makefile.in
===================================================================
--- src/transactionlayer/Makefile.in    (revision 1655)
+++ src/transactionlayer/Makefile.in    (working copy)
@@ -48,7 +48,7 @@
 CC = gcc
 CFLAGS = -Wall
 
-beam_FILES = $(erl_FILES:.erl=.beam)
+beam_FILES = $(addprefix ../../ebin/, $(erl_FILES:.erl=.beam))
 
 all: $(beam_FILES)
 
@@ -56,12 +56,14 @@
        $(mkinstalldirs) $(DESTDIR)$(beamdir)
        $(mkinstalldirs) $(DESTDIR)$(includedir)
        for p in $(beam_FILES); do \
-         $(install_DATA) $$p $(DESTDIR)$(beamdir)/$$f ; \
+         $(install_DATA) ../../ebin/$$p $(DESTDIR)$(beamdir)/$$f ; \
        done
        for p in $(hrl_FILES); do \
          $(install_DATA) $(srcdir)/$$p $(DESTDIR)$(includedir)/$$f ; \
        done
 
+packages:
+
 distclean: clean
        rm -f Makefile
 
@@ -69,6 +71,7 @@
        rm -f core *.core *~
        rm -f *.beam *.script *.start *.boot *.rel *.app *.script
        rm -f *.o ktrace.out erl_crash.dump
+       rm -f $(beam_FILES)
 
 doc:
        mkdir -p ../../doc/html/src/transactionlayer
@@ -85,5 +88,6 @@
 .SUFFIXES:
 .SUFFIXES: .c .o .hrl .beam .erl .boot .rel .rel-in .app .app-in
 
-.erl.beam:
-       $(ERLC) -I$(srcdir) -I$(srcdir)/../include/ -W +debug_info $<
+../../ebin/%.beam:     $(srcdir)/%.erl
+       $(ERLC) -o ../../ebin -I$(srcdir) -I$(srcdir)/../include/ -W 
+debug_info $<
+


Index: src/database/Makefile.in
===================================================================
--- src/database/Makefile.in    (revision 1655)
+++ src/database/Makefile.in    (working copy)
@@ -49,7 +49,7 @@
 
 yxa_hrl_FILES = $(imported_hrl_FILES) $(hrl_FILES)
 
-beam_FILES = $(erl_FILES:.erl=.beam)
+beam_FILES = $(addprefix ../../ebin/, $(erl_FILES:.erl=.beam))
 
 all: $(beam_FILES)
 
@@ -57,12 +57,14 @@
        $(mkinstalldirs) $(DESTDIR)$(beamdir)
        $(mkinstalldirs) $(DESTDIR)$(includedir)
        for p in $(beam_FILES); do \
-         $(install_DATA) $$p $(DESTDIR)$(beamdir)/$$f ; \
+         $(install_DATA) ../../ebin/$$p $(DESTDIR)$(beamdir)/$$f ; \
        done
        for p in $(hrl_FILES); do \
          $(install_DATA) $(srcdir)/$$p $(DESTDIR)$(includedir)/$$f ; \
        done
 
+packages:
+
 distclean: clean
        rm -f Makefile
 
@@ -70,6 +72,7 @@
        rm -f core *.core *~
        rm -f *.beam *.script *.start *.boot *.rel *.app *.script
        rm -f *.o ktrace.out erl_crash.dump
+       rm -f $(beam_FILES)
 
 doc:
        mkdir -p ../../doc/html/src/database
@@ -86,5 +89,5 @@
 .SUFFIXES:
 .SUFFIXES: .c .o .hrl .beam .erl .boot .rel .rel-in .app .app-in
 
-.erl.beam:
-       $(ERLC) -I$(srcdir) -I$(srcdir)/../include/ -W +debug_info $<
+../../ebin/%.beam:     $(srcdir)/%.erl
+       $(ERLC) -o ../../ebin -I$(srcdir) -I$(srcdir)/../include/ -W 
+debug_info $<


Index: src/event/Makefile.in
===================================================================
--- src/event/Makefile.in       (revision 1655)
+++ src/event/Makefile.in       (working copy)
@@ -28,7 +28,7 @@
 mkinstalldirs = $(SHELL) $(top_srcdir)/scripts/mkinstalldirs
 
 systools_make_script = \
-       $(ERLC) -I$(srcdir) $(srcdir)/$*.rel
+       $(ERLC) +no_module_tests -pa ../../ebin $*.rel
 
 
 erl_FILES = \
@@ -60,22 +60,27 @@
 start_FILES = \
        eventserver
 
-app_FILES = $(boot_FILES:.boot=.app)
+app_FILES = $(addprefix ../../ebin/, $(boot_FILES:.boot=.app))
 
+rel_FILES = $(boot_FILES:.boot=.rel)
+
 CC = gcc
 CFLAGS = -Wall
 
-beam_FILES = $(erl_FILES:.erl=.beam)
+beam_FILES = $(addprefix ../../ebin/, $(erl_FILES:.erl=.beam))
 
-all: $(beam_FILES) $(boot_FILES) $(start_FILES)
+all: $(beam_FILES) $(app_FILES) $(rel_FILES) $(boot_FILES) $(start_FILES)
 
-install: $(boot_FILES) $(beam_FILES) $(hrl_FILES) $(start_FILES)
+install: $(beam_FILES) $(boot_FILES) $(hrl_FILES) $(start_FILES)
        $(mkinstalldirs) $(DESTDIR)$(beamdir)
        $(mkinstalldirs) $(DESTDIR)$(includedir)
        $(mkinstalldirs) $(DESTDIR)$(sbindir)
-       for p in $(beam_FILES) $(boot_FILES) $(app_FILES); do \
+       for p in $(beam_FILES) $(app_FILES); do \
          $(install_DATA) $$p $(DESTDIR)$(beamdir)/$$f ; \
        done
+       for p in $(boot_FILES); do \
+         $(install_DATA) $$p $(DESTDIR)$(beamdir)/$$f ; \
+       done
        for p in $(hrl_FILES); do \
          $(install_DATA) $(srcdir)/$$p $(DESTDIR)$(includedir)/$$f ; \
        done
@@ -83,14 +88,25 @@
          $(install_PROGRAM) $$p $(DESTDIR)$(sbindir)/$$f ; \
        done
 
+packages: $(boot_FILES) $(rel_FILES) sys.config
+       for p in $(basename $(rel_FILES)) ; do \
+         $(ERL) -noinput -pa ../../ebin \
+           -run systools make_tar  $$p -s erlang halt ; \
+       done
+
 distclean: clean
        rm -f Makefile
 
 clean:
        rm -f core *.core *~
-       rm -f *.beam *.script *.start *.boot *.app
+       rm -f *.beam *.script *.start
        rm -f *.o ktrace.out erl_crash.dump
+       rm -f eventserver.tar.gz
        rm -f $(start_FILES)
+       rm -f $(boot_FILES)
+       rm -f $(rel_FILES) sys.config
+       rm -f $(app_FILES)
+       rm -f $(beam_FILES)
 
 doc:
        mkdir -p ../../doc/html/src/event
@@ -108,16 +124,22 @@
 .SUFFIXES:
 .SUFFIXES: .c .o .hrl .beam .erl .boot .rel .app .app-in
 
-.erl.beam:
-       $(ERLC) -I$(srcdir) -I$(srcdir)/../include/ -pz ../ -W +debug_info $<
+../../ebin/%.beam:     $(srcdir)/%.erl
+       $(ERLC) -o ../../ebin -I$(srcdir) -I$(srcdir)/../include/ -pz ../ -W 
+debug_info $<
 
-.app-in.app:
-       cp $(srcdir)/$*.app-in $*.app
+%.rel: $(srcdir)/%.rel-in
+       sed -e '[EMAIL PROTECTED]@!' < $< > $@
 
+../../ebin/%.app:      $(srcdir)/%.app-in
+       sed -e '[EMAIL PROTECTED]@!' < $< > $@
 
-eventserver.boot: eventserver.app $(srcdir)/eventserver.rel
+%.boot: ../../ebin/%.app ../../ebin/yxa.app %.rel
        $(systools_make_script)
 
+sys.config:    $(srcdir)/../sys.config-in
+       sed -e 's!%DB_DIR%!$(mnesiadir)!' \
+             -e 's!%CONF_DIR%!$(confdir)!' < $< > $@
+
 $(start_FILES): $(top_srcdir)/scripts/init.sh.in ../../config.status
 
 eventserver:


Index: src/mysql/Makefile.in
===================================================================
--- src/mysql/Makefile.in       (revision 1655)
+++ src/mysql/Makefile.in       (working copy)
@@ -45,7 +45,7 @@
 CC = gcc
 CFLAGS = -Wall
 
-beam_FILES = $(erl_FILES:.erl=.beam)
+beam_FILES = $(addprefix ../../ebin/, $(erl_FILES:.erl=.beam))
 
 all: $(beam_FILES)
 
@@ -53,12 +53,14 @@
        $(mkinstalldirs) $(DESTDIR)$(beamdir)
        $(mkinstalldirs) $(DESTDIR)$(includedir)
        for p in $(beam_FILES); do \
-         $(install_DATA) $$p $(DESTDIR)$(beamdir)/$$f ; \
+         $(install_DATA) ../../ebin/$$p $(DESTDIR)$(beamdir)/$$f ; \
        done
        for p in $(hrl_FILES); do \
          $(install_DATA) $(srcdir)/$$p $(DESTDIR)$(includedir)/$$f ; \
        done
 
+packages:
+
 distclean: clean
        rm -f Makefile
 
@@ -66,6 +68,7 @@
        rm -f core *.core *~
        rm -f *.beam *.script *.start *.boot *.rel *.app *.script
        rm -f *.o ktrace.out erl_crash.dump
+       rm -f $(beam_FILES)
 
 doc:
        mkdir -p ../../doc/html/src/mysql
@@ -83,5 +86,5 @@
 .SUFFIXES:
 .SUFFIXES: .c .o .hrl .beam .erl .boot .rel .rel-in .app .app-in
 
-.erl.beam:
-       $(ERLC) -I$(srcdir) -I$(srcdir)/../include/ -W +debug_info $<
+../../ebin/%.beam:     $(srcdir)/%.erl
+       $(ERLC) -o ../../ebin -I$(srcdir) -I$(srcdir)/../include/ -W 
+debug_info $<


Index: src/event_handler/Makefile.in
===================================================================
--- src/event_handler/Makefile.in       (revision 1655)
+++ src/event_handler/Makefile.in       (working copy)
@@ -45,7 +45,7 @@
 CC = gcc
 CFLAGS = -Wall
 
-beam_FILES = $(erl_FILES:.erl=.beam)
+beam_FILES = $(addprefix ../../ebin/, $(erl_FILES:.erl=.beam))
 
 all: $(beam_FILES) syslog_c-port
 
@@ -53,12 +53,14 @@
        $(mkinstalldirs) $(DESTDIR)$(beamdir)
        $(mkinstalldirs) $(DESTDIR)$(privdir)
        for p in $(beam_FILES); do \
-         $(install_DATA) $$p $(DESTDIR)$(beamdir)/$$f ; \
+         $(install_DATA) ../../ebin/$$p $(DESTDIR)$(beamdir)/$$f ; \
        done
        for p in syslog_c-port; do \
          $(install_PROGRAM) $$p $(DESTDIR)$(privdir)/$$f ; \
        done
 
+packages:
+
 distclean: clean
        rm -f Makefile
 
@@ -66,6 +68,7 @@
        rm -f core *.core *~
        rm -f syslog_c-port *.beam *.script *.start *.boot *.rel *.app *.script
        rm -f *.o ktrace.out erl_crash.dump
+       rm -f $(beam_FILES)
 
 doc:
        mkdir -p ../../doc/html/src/event_handler
@@ -82,8 +85,8 @@
 .SUFFIXES:
 .SUFFIXES: .c .o .hrl .beam .erl .boot .rel .rel-in .app .app-in
 
-.erl.beam:
-       $(ERLC) -I$(srcdir) -I$(srcdir)/../include/ -W +debug_info $<
+../../ebin/%.beam:     $(srcdir)/%.erl
+       $(ERLC) -o ../../ebin -I$(srcdir) -I$(srcdir)/../include/ -W 
+debug_info $<
 
 syslog_c-port: syslog_c-port.o
        $(CC) $(LDFLAGS) $(CFLAGS) -o syslog_c-port syslog_c-port.o


Index: src/cpl/Makefile.in
===================================================================
--- src/cpl/Makefile.in (revision 1655)
+++ src/cpl/Makefile.in (working copy)
@@ -62,7 +62,7 @@
 CC = gcc
 CFLAGS = -Wall
 
-beam_FILES = $(erl_FILES:.erl=.beam)
+beam_FILES = $(addprefix ../../ebin/, $(erl_FILES:.erl=.beam))
 
 all: $(beam_FILES)
 
@@ -70,12 +70,14 @@
        $(mkinstalldirs) $(DESTDIR)$(beamdir)
        $(mkinstalldirs) $(DESTDIR)$(includedir)
        for p in $(beam_FILES); do \
-         $(install_DATA) $$p $(DESTDIR)$(beamdir)/$$f ; \
+         $(install_DATA) ../../ebin/$$p $(DESTDIR)$(beamdir)/$$f ; \
        done
        for p in $(hrl_FILES); do \
          $(install_DATA) $(srcdir)/$$p $(DESTDIR)$(includedir)/$$f ; \
        done
 
+packages:
+
 distclean: clean
        rm -f Makefile
 
@@ -83,6 +85,7 @@
        rm -f core *.core *~
        rm -f *.beam *.script *.start *.boot *.rel *.app *.script
        rm -f *.o ktrace.out erl_crash.dump
+       rm -f $(beam_FILES)
 
 doc:
        mkdir -p ../../doc/html/src/cpl
@@ -99,5 +102,5 @@
 .SUFFIXES:
 .SUFFIXES: .c .o .hrl .beam .erl .boot .rel .rel-in .app .app-in
 
-.erl.beam:
-       $(ERLC) -I$(srcdir) -I$(srcdir)/../include/ -W +debug_info $<
+../../ebin/%.beam:     $(srcdir)/%.erl
+       $(ERLC) -o ../../ebin -I$(srcdir) -I$(srcdir)/../include/ -W 
+debug_info $<


Index: src/appserver.app-in
===================================================================
--- src/appserver.app-in        (revision 1655)
+++ src/appserver.app-in        (working copy)
@@ -1,18 +1,29 @@
 {application, appserver,
- [{description, "SIP application server"},
-  {vsn,"0.0"},
+ [{description, "Yxa SIP Application Server"},
+  {vsn,"%VERSION%"},
   {modules, [
-            appserver
-           ]},
-  {registered, [
-               sipserver_sup,
-               yxa_config,
-               logger,
-               ldap_client,
-               tcp_dispatcher,
-               sipsocket_udp,
-               transactionlayer
-              ]},
+     appserver,
+     appserver_glue,
+     appserver_test,
+     cpl_db,
+     cpl_test_util,
+     interpret_backend,
+     interpret_cpl,
+     interpret_cpl_test,
+     interpret_time,
+     interpret_time_test,
+     test_backend,
+     time_switch,
+     ts_date,
+     ts_datetime,
+     ts_duration,
+     xml_parse,
+     xml_parse_graph,
+     xml_parse_test,
+     xml_parse_util
+     ]},
+  {registered, []},
+  {included_applications, [yxa]},
   {mod, {sipserver, [appserver]}},
   {env, []},
   {applications,


Index: src/outgoingproxy.app-in
===================================================================
--- src/outgoingproxy.app-in    (revision 1655)
+++ src/outgoingproxy.app-in    (working copy)
@@ -1,18 +1,12 @@
 {application, outgoingproxy,
- [{description, "Outgoing SIP proxy"},
-  {vsn,"0.0"},
+ [{description, "Yxa SIP Outgoing Proxy"},
+  {vsn,"%VERSION%"},
   {modules, [
-            outgoingproxy
-           ]},
-  {registered, [
-               sipserver_sup,
-               yxa_config,
-               logger,
-               ldap_client,
-               tcp_dispatcher,
-               sipsocket_udp,
-               transactionlayer
-              ]},
+    outgoingproxy,
+    outgoingproxy_test
+    ]},
+  {registered, []},
+  {included_applications, [yxa]},
   {mod, {sipserver, [outgoingproxy]}},
   {env, []},
   {applications,


Index: src/event/eventserver.app-in
===================================================================
--- src/event/eventserver.app-in        (revision 1655)
+++ src/event/eventserver.app-in        (working copy)
@@ -1,18 +1,24 @@
 {application, eventserver,
- [{description, "Event package framework server"},
-  {vsn,"0.0"},
+ [{description, "Yxa SIP Event Package Framework Server"},
+  {vsn,"%VERSION%"},
   {modules, [
-            eventserver
-           ]},
-  {registered, [
-               sipserver_sup,
-               yxa_config,
-               logger,
-               ldap_client,
-               tcp_dispatcher,
-               sipsocket_udp,
-               transactionlayer
-              ]},
+    active_subscriber,
+    active_subscription,
+    dialog_package,
+    event_mnesia_monitor,
+    event_package,
+    eventserver,
+    eventserver_test,
+    notifylist,
+    presence_package,
+    presence_pidf,
+    presence_xmerl_xml,
+    subscription,
+    event_handler,
+    event_handler_csyslog
+    ]},
+  {registered, []},
+  {included_applications, [yxa]},
   {mod, {sipserver, [eventserver]}},
   {env, []},
   {applications,


Index: src/incomingproxy.app-in
===================================================================
--- src/incomingproxy.app-in    (revision 1655)
+++ src/incomingproxy.app-in    (working copy)
@@ -1,18 +1,13 @@
 {application, incomingproxy,
- [{description, "Incoming SIP proxy"},
-  {vsn,"0.0"},
+ [{description, "Yxa SIP Incoming Proxy"},
+  {vsn,"%VERSION%"},
   {modules, [
-            incomingproxy
-           ]},
-  {registered, [
-               sipserver_sup,
-               yxa_config,
-               logger,
-               ldap_client,
-               tcp_dispatcher,
-               sipsocket_udp,
-               transactionlayer
-              ]},
+    incomingproxy,
+    incomingproxy_test,
+    registrar
+    ]},
+  {registered, []},
+  {included_applications, [yxa]},
   {mod, {sipserver, [incomingproxy]}},
   {env, []},
   {applications,


Index: src/pstnproxy.app-in
===================================================================
--- src/pstnproxy.app-in        (revision 1655)
+++ src/pstnproxy.app-in        (working copy)
@@ -1,18 +1,12 @@
 {application, pstnproxy,
- [{description, "PSTN SIP proxy"},
-  {vsn,"0.0"},
+ [{description, "Yxa SIP PSTN Proxy"},
+  {vsn,"%VERSION%"},
   {modules, [
-            pstnproxy
-           ]},
-  {registered, [
-               sipserver_sup,
-               yxa_config,
-               logger,
-               ldap_client,
-               tcp_dispatcher,
-               sipsocket_udp,
-               transactionlayer
-              ]},
+    pstnproxy,
+    pstnproxy_test
+    ]},
+  {registered, []},
+  {included_applications, [yxa]},
   {mod, {sipserver, [pstnproxy]}},
   {env, []},
   {applications,


Index: src/outgoingproxy.rel
===================================================================
--- src/outgoingproxy.rel       (revision 1655)
+++ src/outgoingproxy.rel       (working copy)
@@ -1,7 +0,0 @@
-%% Erlang OTP R11B-2 library versions
-{release, {"YXA outgoingproxy","0.0"}, {erts, "5.2"},
- [{kernel,"2.11.2"},
-  {stdlib,"1.14.2"},
-  {ssl, "3.0.12"},
-  {mnesia, "4.3.3"},
-  {outgoingproxy, "0.0"}]}.
Index: src/outgoingproxy.rel-in
===================================================================
--- src/outgoingproxy.rel-in    (revision 0)
+++ src/outgoingproxy.rel-in    (revision 0)
@@ -0,0 +1,8 @@
+%% Erlang OTP R11B-2 library versions
+{release, {"Yxa SIP Outgoing Proxy","YXA-PROXY-%VERSION%"}, {erts, "5.5.2"},
+ [{kernel,"2.11.2"},
+  {stdlib,"1.14.2"},
+  {ssl, "3.0.12"},
+  {mnesia, "4.3.3"},
+  {yxa, "%VERSION%"},
+  {outgoingproxy, "%VERSION%"}]}.


Index: src/incomingproxy.rel
===================================================================
--- src/incomingproxy.rel       (revision 1655)
+++ src/incomingproxy.rel       (working copy)
@@ -1,8 +0,0 @@
-%% Erlang OTP R11B-2 library versions
-{release, {"YXA incomingproxy","0.0"}, {erts, "5.2"},
- [{kernel,"2.11.2"},
-  {stdlib,"1.14.2"},
-  {ssl, "3.0.12"},
-  {asn1, "1.4.4.11"},
-  {mnesia, "4.3.3"},
-  {incomingproxy, "0.0"}]}.
Index: src/incomingproxy.rel-in
===================================================================
--- src/incomingproxy.rel-in    (revision 0)
+++ src/incomingproxy.rel-in    (revision 0)
@@ -0,0 +1,9 @@
+%% Erlang OTP R11B-2 library versions
+{release, {"Yxa SIP Registrar","YXA-REG-%VERSION%"}, {erts, "5.5.2"},
+ [{kernel,"2.11.2"},
+  {stdlib,"1.14.2"},
+  {ssl, "3.0.12"},
+  {asn1, "1.4.4.11"},
+  {mnesia, "4.3.3"},
+  {yxa, "%VERSION%", load},
+  {incomingproxy, "%VERSION%", permanent}]}.


Index: src/pstnproxy.rel
===================================================================
--- src/pstnproxy.rel   (revision 1655)
+++ src/pstnproxy.rel   (working copy)
@@ -1,8 +0,0 @@
-%% Erlang OTP R11B-2 library versions
-{release, {"YXA pstnproxy","0.0"}, {erts, "5.2"},
- [{kernel,"2.11.2"},
-  {stdlib,"1.14.2"},
-  {ssl, "3.0.12"},
-  {asn1, "1.4.4.11"},
-  {mnesia, "4.3.3"},
-  {pstnproxy, "0.0"}]}.
Index: src/pstnproxy.rel-in
===================================================================
--- src/pstnproxy.rel-in        (revision 0)
+++ src/pstnproxy.rel-in        (revision 0)
@@ -0,0 +1,9 @@
+%% Erlang OTP R11B-2 library versions
+{release, {"Yxa SIP PSTN Proxy","YXA-PSTN-%VERSION%"}, {erts, "5.5.2"},
+ [{kernel,"2.11.2"},
+  {stdlib,"1.14.2"},
+  {ssl, "3.0.12"},
+  {asn1, "1.4.4.11"},
+  {mnesia, "4.3.3"},
+  {yxa, "%VERSION%"},
+  {pstnproxy, "%VERSION%"}]}.


Index: src/appserver.rel
===================================================================
--- src/appserver.rel   (revision 1655)
+++ src/appserver.rel   (working copy)
@@ -1,7 +0,0 @@
-%% Erlang OTP R11B-2 library versions
-{release, {"YXA application server","0.0"}, {erts, "5.2"},
- [{kernel,"2.11.2"},
-  {stdlib,"1.14.2"},
-  {ssl, "3.0.12"},
-  {mnesia, "4.3.3"},
-  {appserver, "0.0"}]}.
Index: src/appserver.rel-in
===================================================================
--- src/appserver.rel-in        (revision 0)
+++ src/appserver.rel-in        (revision 0)
@@ -0,0 +1,8 @@
+%% Erlang OTP R11B-2 library versions
+{release, {"Yxa SIP Application Server","YXA-AS-%VERSION%"}, {erts, "5.5.2"},
+ [{kernel,"2.11.2"},
+  {stdlib,"1.14.2"},
+  {ssl, "3.0.12"},
+  {mnesia, "4.3.3"},
+  {yxa, "%VERSION%"},
+  {appserver, "%VERSION%"}]}.


Index: src/event/eventserver.rel
===================================================================
--- src/event/eventserver.rel   (revision 1655)
+++ src/event/eventserver.rel   (working copy)
@@ -1,8 +0,0 @@
-%% Erlang OTP R11B-2 library versions
-{release, {"YXA Event package server framework", "0.0"}, {erts, "5.2"},
- [{kernel,"2.11.2"},
-  {stdlib,"1.14.2"},
-  {ssl, "3.0.12"},
-  {asn1, "1.4.4.11"},
-  {mnesia, "4.3.3"},
-  {eventserver, "0.0"}]}.
Index: src/event/eventserver.rel-in
===================================================================
--- src/event/eventserver.rel-in        (revision 0)
+++ src/event/eventserver.rel-in        (revision 0)
@@ -0,0 +1,9 @@
+%% Erlang OTP R11B-2 library versions
+{release, {"Yxa SIP Event Package Server Framework", "YXA-EPSF-%VERSION%"}, 
{erts, "5.5.2"},
+ [{kernel,"2.11.2"},
+  {stdlib,"1.14.2"},
+  {ssl, "3.0.12"},
+  {asn1, "1.4.4.11"},
+  {mnesia, "4.3.3"},
+  {yxa, "%VERSION%"},
+  {eventserver, "%VERSION%", [yxa]}]}.


Index: src/start_ssl.rel
===================================================================
--- src/start_ssl.rel   (revision 1655)
+++ src/start_ssl.rel   (working copy)
@@ -1,8 +0,0 @@
-%% Erlang OTP R11B-2 library versions
-%% File to get Erlang distribution using SSL started
-{release, {"YXA foo","0.0"}, {erts, "5.2"},
- [{kernel,"2.11.2"},
-  {stdlib,"1.14.2"},
-  {ssl, "3.0.12"}
- ]
-}.
Index: src/start_ssl.rel-in
===================================================================
--- src/start_ssl.rel-in        (revision 0)
+++ src/start_ssl.rel-in        (revision 0)
@@ -0,0 +1,8 @@
+%% Erlang OTP R11B-2 library versions
+%% File to get Erlang distribution using SSL started
+{release, {"Yxa SSL","YXA-SSL-%VERSION%"}, {erts, "5.5.2"},
+ [{kernel,"2.11.2"},
+  {stdlib,"1.14.2"},
+  {ssl, "3.0.12"}
+ ]
+}.


Index: src/sys.config-in
===================================================================
--- src/sys.config-in   (revision 0)
+++ src/sys.config-in   (revision 0)
@@ -0,0 +1,3 @@
+[{mnesia, [{dir, "%DB_DIR%"}]},
+       {yaws, [{conf, "%CONF_DIR%/yaws.conf"}]},
+       {yxa, [{config_erlang_fn, "%CONF_DIR%/yxa.config"}]}].


_______________________________________________
Yxa-devel mailing list
Yxa-devel@lists.su.se
https://lists.su.se/mailman/listinfo/yxa-devel

Reply via email to