Bump buildroot to 2019.02
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
From 277103e886c9b3ddfede8b3f5b92d3e94736f404 Mon Sep 17 00:00:00 2001
|
||||
From: Johan Oudinet <johan.oudinet@gmail.com>
|
||||
Date: Fri, 23 Nov 2018 16:13:21 +0100
|
||||
Subject: [PATCH] Makefile.in: do not download or compile dependencies
|
||||
|
||||
Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
|
||||
---
|
||||
Makefile.in | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index 48dca7d8..d2324dae 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -94,7 +94,7 @@ ifneq ($(INSTALLGROUP),)
|
||||
G_USER=-g $(INSTALLGROUP)
|
||||
endif
|
||||
|
||||
-all: deps src
|
||||
+all: src
|
||||
|
||||
deps: deps/.got
|
||||
|
||||
@@ -108,7 +108,7 @@ deps/.built: deps/.got
|
||||
$(REBAR) configure-deps
|
||||
$(REBAR) compile && :> deps/.built
|
||||
|
||||
-src: deps/.built
|
||||
+src:
|
||||
$(REBAR) skip_deps=true compile
|
||||
|
||||
update:
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
From 21d1f05a8882657c151397d0e4723535402f1757 Mon Sep 17 00:00:00 2001
|
||||
From: Philipp Huebner <debalance@debian.org>
|
||||
Date: Wed, 20 Jan 2016 10:22:57 -0500
|
||||
Subject: [PATCH] remove make targets for deps
|
||||
|
||||
Without this patch, dependencies would be downloaded and compiled
|
||||
using rebar at build time.
|
||||
|
||||
Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
|
||||
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index df2abfdc..8c8fd714 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -86,27 +86,11 @@ else
|
||||
INIT_USER=$(INSTALLUSER)
|
||||
endif
|
||||
|
||||
-all: deps src
|
||||
+all: src
|
||||
|
||||
-deps: deps/.got
|
||||
-
|
||||
-deps/.got:
|
||||
- rm -rf deps/.got
|
||||
- rm -rf deps/.built
|
||||
- mkdir -p deps
|
||||
- $(REBAR) get-deps && :> deps/.got
|
||||
-
|
||||
-deps/.built: deps/.got
|
||||
- $(REBAR) compile && :> deps/.built
|
||||
-
|
||||
-src: deps/.built
|
||||
+src:
|
||||
$(REBAR) skip_deps=true compile
|
||||
|
||||
-update:
|
||||
- rm -rf deps/.got
|
||||
- rm -rf deps/.built
|
||||
- $(REBAR) update-deps && :> deps/.got
|
||||
-
|
||||
xref: all
|
||||
$(REBAR) skip_deps=true xref
|
||||
@@ -1,106 +0,0 @@
|
||||
From 8674f61701da41cc53c532b5fa3a516838a2c5d4 Mon Sep 17 00:00:00 2001
|
||||
From: Johan Oudinet <johan.oudinet@gmail.com>
|
||||
Date: Wed, 10 Jan 2018 15:14:56 +0100
|
||||
Subject: [PATCH] remove dependencies from rebar config
|
||||
|
||||
Without this patch, dependencies would be downloaded and compiled by
|
||||
rebar at build time.
|
||||
|
||||
Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
|
||||
---
|
||||
rebar.config | 72 ------------------------------------------------------------
|
||||
1 file changed, 72 deletions(-)
|
||||
|
||||
diff --git a/rebar.config b/rebar.config
|
||||
index d6ad5e7b..0b246b92 100644
|
||||
--- a/rebar.config
|
||||
+++ b/rebar.config
|
||||
@@ -18,68 +18,6 @@
|
||||
%%%
|
||||
%%%----------------------------------------------------------------------
|
||||
|
||||
-{deps, [{lager, ".*", {git, "https://github.com/erlang-lager/lager",
|
||||
- {tag, {if_version_above, "17", "3.4.2", "3.2.1"}}}},
|
||||
- {p1_utils, ".*", {git, "https://github.com/processone/p1_utils", {tag, "1.0.10"}}},
|
||||
- {cache_tab, ".*", {git, "https://github.com/processone/cache_tab", {tag, "1.0.12"}}},
|
||||
- {fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.0.17"}}},
|
||||
- {stringprep, ".*", {git, "https://github.com/processone/stringprep", {tag, "1.0.10"}}},
|
||||
- {fast_xml, ".*", {git, "https://github.com/processone/fast_xml", {tag, "1.1.25"}}},
|
||||
- {xmpp, ".*", {git, "https://github.com/processone/xmpp", {tag, "1.1.16"}}},
|
||||
- {fast_yaml, ".*", {git, "https://github.com/processone/fast_yaml", {tag, "1.0.12"}}},
|
||||
- {jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "0.14.8"}}},
|
||||
- {p1_oauth2, ".*", {git, "https://github.com/processone/p1_oauth2", {tag, "0.6.2"}}},
|
||||
- {luerl, ".*", {git, "https://github.com/rvirding/luerl", {tag, "v0.2"}}},
|
||||
- {jose, ".*", {git, "git://github.com/potatosalad/erlang-jose.git", {tag, "1.8.4"}}},
|
||||
- {fs, ".*", {git, "https://github.com/synrc/fs.git", {tag, "2.12.0"}}},
|
||||
- {if_var_true, stun, {stun, ".*", {git, "https://github.com/processone/stun", {tag, "1.0.16"}}}},
|
||||
- {if_var_true, sip, {esip, ".*", {git, "https://github.com/processone/esip", {tag, "1.0.17"}}}},
|
||||
- {if_var_true, mysql, {p1_mysql, ".*", {git, "https://github.com/processone/p1_mysql",
|
||||
- {tag, "1.0.4"}}}},
|
||||
- {if_var_true, pgsql, {p1_pgsql, ".*", {git, "https://github.com/processone/p1_pgsql",
|
||||
- {tag, "1.1.4"}}}},
|
||||
- {if_var_true, sqlite, {sqlite3, ".*", {git, "https://github.com/processone/erlang-sqlite3",
|
||||
- {tag, "1.1.5"}}}},
|
||||
- {if_var_true, pam, {epam, ".*", {git, "https://github.com/processone/epam",
|
||||
- {tag, "1.0.3"}}}},
|
||||
- {if_var_true, zlib, {ezlib, ".*", {git, "https://github.com/processone/ezlib",
|
||||
- {tag, "1.0.3"}}}},
|
||||
- {if_var_true, riak, {riakc, ".*", {git, "https://github.com/processone/riak-erlang-client.git",
|
||||
- {tag, {if_version_above, "19", "develop", "2.5.3"}}}}},
|
||||
- {if_var_true, graphics, {eimp, ".*", {git, "https://github.com/processone/eimp.git", {tag, "1.0.2"}}}},
|
||||
- %% Elixir support, needed to run tests
|
||||
- {if_var_true, elixir, {elixir, ".*", {git, "https://github.com/elixir-lang/elixir",
|
||||
- {tag, {if_version_above, "17", "v1.4.4", "v1.1.1"}}}}},
|
||||
- %% TODO: When modules are fully migrated to new structure and mix, we will not need anymore rebar_elixir_plugin
|
||||
- {if_not_rebar3, {if_var_true, elixir, {rebar_elixir_plugin, ".*",
|
||||
- {git, "https://github.com/processone/rebar_elixir_plugin", "0.1.0"}}}},
|
||||
- {if_var_true, iconv, {iconv, ".*", {git, "https://github.com/processone/iconv",
|
||||
- {tag, "1.0.6"}}}},
|
||||
- {if_var_true, tools, {meck, "0.8.*", {git, "https://github.com/eproxus/meck",
|
||||
- {tag, "0.8.4"}}}},
|
||||
- {if_var_true, tools, {moka, ".*", {git, "https://github.com/processone/moka.git",
|
||||
- {tag, "1.0.5c"}}}},
|
||||
- {if_var_true, redis, {eredis, ".*", {git, "https://github.com/wooga/eredis",
|
||||
- {tag, "v1.0.8"}}}}]}.
|
||||
-
|
||||
-{if_var_true, latest_deps,
|
||||
- {floating_deps, [cache_tab,
|
||||
- fast_tls,
|
||||
- stringprep,
|
||||
- fast_xml,
|
||||
- esip,
|
||||
- stun,
|
||||
- fast_yaml,
|
||||
- xmpp,
|
||||
- p1_utils,
|
||||
- p1_mysql,
|
||||
- p1_pgsql,
|
||||
- p1_oauth2,
|
||||
- epam,
|
||||
- ezlib,
|
||||
- eimp,
|
||||
- iconv]}}.
|
||||
-
|
||||
{erl_first_files, ["src/ejabberd_config.erl", "src/gen_mod.erl", "src/mod_muc_room.erl", "src/mod_push.erl"]}.
|
||||
|
||||
{erl_opts, [nowarn_deprecated_function,
|
||||
@@ -153,16 +91,6 @@
|
||||
{if_version_above, "17", {cover_enabled, true}}.
|
||||
{cover_export_enabled, true}.
|
||||
|
||||
-{post_hook_configure, [{"fast_tls", []},
|
||||
- {"stringprep", []},
|
||||
- {"fast_yaml", []},
|
||||
- {if_var_true, sip, {"esip", []}},
|
||||
- {"fast_xml", [{if_var_true, full_xml, "--enable-full-xml"}]},
|
||||
- {if_var_true, pam, {"epam", []}},
|
||||
- {if_var_true, zlib, {"ezlib", []}},
|
||||
- {if_var_true, graphics, {"eimp", []}},
|
||||
- {if_var_true, iconv, {"iconv", []}}]}.
|
||||
-
|
||||
{port_env, [{"CFLAGS", "-g -O2 -Wall"}]}.
|
||||
|
||||
{port_specs, [{"priv/lib/jid.so", ["c_src/jid.c"]}]}.
|
||||
--
|
||||
2.14.1
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
From f384518dedec4ad657ad69d55754076c13c22d96 Mon Sep 17 00:00:00 2001
|
||||
From: Johan Oudinet <johan.oudinet@gmail.com>
|
||||
Date: Wed, 20 Jan 2016 08:11:32 -0500
|
||||
Subject: [PATCH] remove checking erlang version
|
||||
|
||||
Without this patch, the configure will try to run erlang to simply check
|
||||
if the version is supported by ejabberd. Instead, we do this test
|
||||
statically.
|
||||
|
||||
Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
|
||||
---
|
||||
configure.ac | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 97e89a2..cd1ab08 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -39,10 +39,8 @@ AC_ARG_ENABLE(erlang-version-check,
|
||||
[Check Erlang/OTP version @<:@default=yes@:>@])])
|
||||
case "$enable_erlang_version_check" in
|
||||
yes|'')
|
||||
- ERLANG_VERSION_CHECK([$REQUIRE_ERLANG_MIN],[$REQUIRE_ERLANG_MAX])
|
||||
;;
|
||||
no)
|
||||
- ERLANG_VERSION_CHECK([$REQUIRE_ERLANG_MIN],[$REQUIRE_ERLANG_MAX],[warn])
|
||||
;;
|
||||
esac
|
||||
|
||||
--
|
||||
2.5.0
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,29 +0,0 @@
|
||||
From d43a65b112ec995a5ee52aca2a16e5cf9699d7c1 Mon Sep 17 00:00:00 2001
|
||||
From: Johan Oudinet <johan.oudinet@gmail.com>
|
||||
Date: Wed, 20 Jan 2016 08:16:26 -0500
|
||||
Subject: [PATCH] disable ERLANG_DEPRECATED_CHECK
|
||||
|
||||
Without this patch, the configure will try to execute erlang to check
|
||||
if it uses deprecated types. Assume the answer is false.
|
||||
|
||||
Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index cd1ab08..a4f1533 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -235,7 +235,7 @@ if test "$ENABLEUSER" != ""; then
|
||||
AC_SUBST([INSTALLUSER], [$ENABLEUSER])
|
||||
fi
|
||||
|
||||
-ERLANG_DEPRECATED_TYPES_CHECK
|
||||
+AC_SUBST(erlang_deprecated_types, false)
|
||||
|
||||
if test "$sqlite" = "true"; then
|
||||
AX_LIB_SQLITE3([3.6.19])
|
||||
--
|
||||
2.5.0
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
From ef847479778cc58818e066b87aa1789ba1c4148b Mon Sep 17 00:00:00 2001
|
||||
From: Johan Oudinet <johan.oudinet@gmail.com>
|
||||
Date: Wed, 20 Jan 2016 09:34:07 -0500
|
||||
Subject: [PATCH] fix install permissions
|
||||
|
||||
Without this patch, the makefile will try to install directories and
|
||||
files with incompatible permissions for ejabberd, which run as an
|
||||
ejabberd user.
|
||||
|
||||
Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
|
||||
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index a0b4553d..2cae2db4 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -169,10 +169,8 @@ copy-files-sub: copy-files-sub2
|
||||
install: all copy-files
|
||||
#
|
||||
# Configuration files
|
||||
- $(INSTALL) -d -m 750 $(G_USER) $(ETCDIR)
|
||||
- [ -f $(ETCDIR)/ejabberd.yml ] \
|
||||
- && $(INSTALL) -b -m 640 $(G_USER) ejabberd.yml.example $(ETCDIR)/ejabberd.yml-new \
|
||||
- || $(INSTALL) -b -m 640 $(G_USER) ejabberd.yml.example $(ETCDIR)/ejabberd.yml
|
||||
+ $(INSTALL) -d $(ETCDIR)
|
||||
+ $(INSTALL) -b -m 644 ejabberd.yml.example $(ETCDIR)/ejabberd.yml
|
||||
$(SED) -e "s*{{rootdir}}*@prefix@*g" \
|
||||
-e "s*{{installuser}}*@INSTALLUSER@*g" \
|
||||
-e "s*{{bindir}}*@bindir@*g" \
|
||||
@@ -183,53 +181,16 @@ install: all copy-files
|
||||
-e "s*{{erl}}*@ERL@*g" \
|
||||
-e "s*{{epmd}}*@EPMD@*g" ejabberdctl.template \
|
||||
> ejabberdctl.example
|
||||
- [ -f $(ETCDIR)/ejabberdctl.cfg ] \
|
||||
- && $(INSTALL) -b -m 640 $(G_USER) ejabberdctl.cfg.example $(ETCDIR)/ejabberdctl.cfg-new \
|
||||
- || $(INSTALL) -b -m 640 $(G_USER) ejabberdctl.cfg.example $(ETCDIR)/ejabberdctl.cfg
|
||||
- $(INSTALL) -b -m 644 $(G_USER) inetrc $(ETCDIR)/inetrc
|
||||
+ $(INSTALL) -b -m 644 ejabberdctl.cfg.example $(ETCDIR)/ejabberdctl.cfg
|
||||
+ $(INSTALL) -b -m 644 inetrc $(ETCDIR)/inetrc
|
||||
#
|
||||
# Administration script
|
||||
- [ -d $(SBINDIR) ] || $(INSTALL) -d -m 755 $(SBINDIR)
|
||||
- $(INSTALL) -m 550 $(G_USER) ejabberdctl.example $(SBINDIR)/ejabberdctl
|
||||
+ $(INSTALL) -D ejabberdctl.example $(SBINDIR)/ejabberdctl
|
||||
# Elixir binaries
|
||||
[ -d $(BINDIR) ] || $(INSTALL) -d -m 755 $(BINDIR)
|
||||
[ -f deps/elixir/bin/iex ] && $(INSTALL) -m 550 $(G_USER) deps/elixir/bin/iex $(BINDIR)/iex || true
|
||||
[ -f deps/elixir/bin/elixir ] && $(INSTALL) -m 550 $(G_USER) deps/elixir/bin/elixir $(BINDIR)/elixir || true
|
||||
[ -f deps/elixir/bin/mix ] && $(INSTALL) -m 550 $(G_USER) deps/elixir/bin/mix $(BINDIR)/mix || true
|
||||
- #
|
||||
- # Init script
|
||||
- $(SED) -e "s*@ctlscriptpath@*$(SBINDIR)*g" \
|
||||
- -e "s*@installuser@*$(INIT_USER)*g" ejabberd.init.template \
|
||||
- > ejabberd.init
|
||||
- chmod 755 ejabberd.init
|
||||
- #
|
||||
- # Service script
|
||||
- $(SED) -e "s*@ctlscriptpath@*$(SBINDIR)*g" ejabberd.service.template \
|
||||
- > ejabberd.service
|
||||
- chmod 644 ejabberd.service
|
||||
- #
|
||||
- # Spool directory
|
||||
- $(INSTALL) -d -m 750 $(O_USER) $(SPOOLDIR)
|
||||
- $(CHOWN_COMMAND) -R @INSTALLUSER@ $(SPOOLDIR) >$(CHOWN_OUTPUT)
|
||||
- chmod -R 750 $(SPOOLDIR)
|
||||
- [ ! -f $(COOKIEFILE) ] || { $(CHOWN_COMMAND) @INSTALLUSER@ $(COOKIEFILE) >$(CHOWN_OUTPUT) ; chmod 400 $(COOKIEFILE) ; }
|
||||
- #
|
||||
- # ejabberdctl lock directory
|
||||
- $(INSTALL) -d -m 750 $(O_USER) $(CTLLOCKDIR)
|
||||
- $(CHOWN_COMMAND) -R @INSTALLUSER@ $(CTLLOCKDIR) >$(CHOWN_OUTPUT)
|
||||
- chmod -R 750 $(CTLLOCKDIR)
|
||||
- #
|
||||
- # Log directory
|
||||
- $(INSTALL) -d -m 750 $(O_USER) $(LOGDIR)
|
||||
- $(CHOWN_COMMAND) -R @INSTALLUSER@ $(LOGDIR) >$(CHOWN_OUTPUT)
|
||||
- chmod -R 750 $(LOGDIR)
|
||||
- #
|
||||
- # Documentation
|
||||
- $(INSTALL) -d $(DOCDIR)
|
||||
- [ -f doc/guide.html ] \
|
||||
- && $(INSTALL) -m 644 doc/guide.html $(DOCDIR) \
|
||||
- || echo "Documentation not included in sources"
|
||||
- $(INSTALL) -m 644 COPYING $(DOCDIR)
|
||||
|
||||
uninstall: uninstall-binary
|
||||
@@ -1,32 +0,0 @@
|
||||
From d0bfcbbfd8a6e7ee6213112e4078b020e4e1d15d Mon Sep 17 00:00:00 2001
|
||||
From: Paweł Chmielowski <pchmielowski@process-one.net>
|
||||
Date: Wed, 10 Jan 2018 16:34:01 +0100
|
||||
Subject: [PATCH] Handle error case from code:lib_dir in ResolveDepPath in
|
||||
rebar.config.script
|
||||
|
||||
This patch have already been applied in upstream/master.
|
||||
|
||||
Signed-off-by: Paweł Chmielowski <pchmielowski@process-one.net>
|
||||
|
||||
---
|
||||
rebar.config.script | 7 ++++---
|
||||
1 file changed, 4 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/rebar.config.script b/rebar.config.script
|
||||
index 85f918fffd..ba374e5c5f 100644
|
||||
--- a/rebar.config.script
|
||||
+++ b/rebar.config.script
|
||||
@@ -233,9 +233,10 @@ ResolveDepPath = case {SystemDeps, IsRebar3} of
|
||||
{true, _} ->
|
||||
fun("deps/" ++ Rest) ->
|
||||
Slash = string:str(Rest, "/"),
|
||||
- code:lib_dir(
|
||||
- string:sub_string(Rest, 1, Slash -1)) ++
|
||||
- string:sub_string(Rest, Slash);
|
||||
+ case code:lib_dir(string:sub_string(Rest, 1, Slash -1)) of
|
||||
+ {error, _} -> Rest;
|
||||
+ V -> V ++ string:sub_string(Rest, Slash)
|
||||
+ end;
|
||||
(Path) ->
|
||||
Path
|
||||
end;
|
||||
@@ -1,32 +0,0 @@
|
||||
From e6eac74e82975e7d87b1f59c50eb007ab04c1392 Mon Sep 17 00:00:00 2001
|
||||
From: Johan Oudinet <johan.oudinet@gmail.com>
|
||||
Date: Tue, 16 Jan 2018 14:29:56 +0100
|
||||
Subject: [PATCH] disable mod_avatar
|
||||
|
||||
This module requires to compile with graphics enabled.
|
||||
|
||||
Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
|
||||
---
|
||||
ejabberd.yml.example | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/ejabberd.yml.example b/ejabberd.yml.example
|
||||
index e178e956..7c12b76c 100644
|
||||
--- a/ejabberd.yml.example
|
||||
+++ b/ejabberd.yml.example
|
||||
@@ -796,9 +796,9 @@ modules:
|
||||
search: false
|
||||
mod_vcard_xupdate: {}
|
||||
## Convert all avatars posted by Android clients from WebP to JPEG
|
||||
- mod_avatar:
|
||||
- convert:
|
||||
- webp: jpeg
|
||||
+ ## mod_avatar:
|
||||
+ ## convert:
|
||||
+ ## webp: jpeg
|
||||
mod_version: {}
|
||||
mod_stream_mgmt: {}
|
||||
## Non-SASL Authentication (XEP-0078) is now disabled by default
|
||||
--
|
||||
2.14.1
|
||||
|
||||
@@ -2,11 +2,12 @@ config BR2_PACKAGE_EJABBERD
|
||||
bool "ejabberd"
|
||||
depends on BR2_PACKAGE_ERLANG
|
||||
depends on BR2_INSTALL_LIBSTDCPP # jiffy, stringprep
|
||||
select BR2_PACKAGE_ERLANG_JIFFY
|
||||
select BR2_PACKAGE_ERLANG_EIMP
|
||||
select BR2_PACKAGE_ERLANG_JIFFY # runtime
|
||||
select BR2_PACKAGE_ERLANG_LAGER
|
||||
select BR2_PACKAGE_ERLANG_P1_CACHE_TAB
|
||||
select BR2_PACKAGE_ERLANG_P1_ICONV
|
||||
select BR2_PACKAGE_ERLANG_P1_OAUTH2
|
||||
select BR2_PACKAGE_ERLANG_P1_OAUTH2 # runtime
|
||||
select BR2_PACKAGE_ERLANG_P1_SIP
|
||||
select BR2_PACKAGE_ERLANG_P1_STRINGPREP
|
||||
select BR2_PACKAGE_ERLANG_P1_STUN
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# Locally computed
|
||||
sha256 bd16b33a2f1345e5847fd05b70a5fa992181bac756cd6d5d621de9c18cb76801 ejabberd-17.11.tgz
|
||||
sha256 781a68d2deefb4afae563c29a8955063c759c244d308251167d46185f145d4ff ejabberd-18.09.tgz
|
||||
|
||||
@@ -4,12 +4,13 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
EJABBERD_VERSION = 17.11
|
||||
EJABBERD_VERSION = 18.09
|
||||
EJABBERD_SOURCE = ejabberd-$(EJABBERD_VERSION).tgz
|
||||
EJABBERD_SITE = https://www.process-one.net/downloads/ejabberd/$(EJABBERD_VERSION)
|
||||
EJABBERD_LICENSE = GPL-2.0+ with OpenSSL exception
|
||||
EJABBERD_LICENSE_FILES = COPYING
|
||||
EJABBERD_DEPENDENCIES = getent openssl host-erlang-lager erlang-lager \
|
||||
EJABBERD_DEPENDENCIES = getent openssl erlang-eimp \
|
||||
host-erlang-lager erlang-lager \
|
||||
erlang-p1-cache-tab erlang-p1-iconv erlang-p1-sip \
|
||||
erlang-p1-stringprep erlang-p1-stun erlang-p1-tls \
|
||||
erlang-p1-utils erlang-p1-xml erlang-p1-xmpp erlang-p1-yaml \
|
||||
@@ -23,29 +24,19 @@ ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
|
||||
EJABBERD_DEPENDENCIES += linux-pam
|
||||
endif
|
||||
|
||||
# Install check-erlang-lib script to the directory in which the
|
||||
# package has been uncompressed, so it is available during the
|
||||
# configure step.
|
||||
define EJABBERD_INSTALL_CHECK_ERLANG_LIB
|
||||
$(INSTALL) -m 0755 $(EJABBERD_PKGDIR)/check-erlang-lib \
|
||||
$(@D)/check-erlang-lib
|
||||
endef
|
||||
|
||||
EJABBERD_POST_EXTRACT_HOOKS += EJABBERD_INSTALL_CHECK_ERLANG_LIB
|
||||
|
||||
EJABBERD_ERLANG_LIBS = sasl public_key mnesia inets compiler
|
||||
|
||||
# Guess answers for these tests, configure will bail out otherwise
|
||||
# saying error: cannot run test program while cross compiling.
|
||||
EJABBERD_CHECK_LIB = $(TOPDIR)/$(EJABBERD_PKGDIR)/check-erlang-lib
|
||||
EJABBERD_CONF_ENV = \
|
||||
ac_cv_erlang_root_dir="$(HOST_DIR)/lib/erlang" \
|
||||
$(foreach lib,$(EJABBERD_ERLANG_LIBS), \
|
||||
ac_cv_erlang_lib_dir_$(lib)="`./check-erlang-lib $(lib)`")
|
||||
ac_cv_erlang_lib_dir_$(lib)="`$(EJABBERD_CHECK_LIB) $(lib)`")
|
||||
|
||||
EJABBERD_CONF_OPTS = \
|
||||
--enable-system-deps \
|
||||
--disable-erlang-version-check \
|
||||
--disable-graphics
|
||||
--disable-erlang-version-check
|
||||
|
||||
define EJABBERD_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) install -C $(@D)
|
||||
@@ -63,6 +54,11 @@ define EJABBERD_USERS
|
||||
ejabberd -1 ejabberd -1 * /var/lib/ejabberd /bin/sh - ejabberd daemon
|
||||
endef
|
||||
|
||||
define EJABBERD_PERMISSIONS
|
||||
/etc/ejabberd r 750 root ejabberd - - - - -
|
||||
/usr/sbin/ejabberdctl f 750 root ejabberd - - - - -
|
||||
endef
|
||||
|
||||
define EJABBERD_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/ejabberd/S50ejabberd \
|
||||
$(TARGET_DIR)/etc/init.d/S50ejabberd
|
||||
|
||||
Reference in New Issue
Block a user