mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Get back description and simplify processing (#3507)
This commit is contained in:
parent
b139eb2fb3
commit
bf1600891b
@ -1,22 +1,16 @@
|
||||
%% $Id$
|
||||
Vars = case file:consult(filename:join([filename:dirname(SCRIPT), "..", "vars.config"])) of
|
||||
{ok, Terms} ->
|
||||
Terms;
|
||||
[lists:keyfind(description, 1, Terms),
|
||||
lists:keyfind(vsn, 1, Terms),
|
||||
{env, [lists:keyfind(enabled_backends, 1, Terms)]}
|
||||
];
|
||||
_Err ->
|
||||
[]
|
||||
end,
|
||||
|
||||
Env = case lists:keyfind(enabled_backends, 1, Vars) of
|
||||
false ->
|
||||
{env, []};
|
||||
Backends ->
|
||||
{env, [Backends]}
|
||||
end,
|
||||
|
||||
{application, ejabberd,
|
||||
[{description, "ejabberd"},
|
||||
lists:keyfind(vsn, 1, Vars),
|
||||
{modules, []},
|
||||
Vars ++
|
||||
[{modules, []},
|
||||
{registered, []},
|
||||
{applications, [kernel, stdlib, sasl, ssl]},
|
||||
{included_applications,
|
||||
@ -31,10 +25,8 @@ Env = case lists:keyfind(enabled_backends, 1, Vars) of
|
||||
xmpp,
|
||||
cache_tab,
|
||||
eimp]},
|
||||
Env,
|
||||
{mod, {ejabberd_app, []}}]}.
|
||||
|
||||
|
||||
%% Local Variables:
|
||||
%% mode: erlang
|
||||
%% End:
|
||||
|
@ -45,7 +45,7 @@
|
||||
{vsn, "@PACKAGE_VERSION@"}.
|
||||
|
||||
%% Variables for overlay template files
|
||||
{package_name, "@PACKAGE_NAME@"}.
|
||||
{description, "@PACKAGE_NAME@"}.
|
||||
{enabled_backends, [@enabled_backends@]}.
|
||||
|
||||
%% Platform-specific installation paths
|
||||
|
Loading…
Reference in New Issue
Block a user