Update chat/ejabberd to 17.08. Core - Erlang/OTP 17.5 or higher is required, and 20 is now supported - Make ejabberd_cluster modular - Replace gen_fsm with p1_fsm to avoid warnings in OTP20+ - Fix clustering table reg_users_counter - ext_mod: Update spec from custom and allow modules dependencies - extauth.py: Fix to support : in passwords - Set high water mark in lager for all backends - Fix old route record in mnesia窶冱 route table haven窶冲 been remove when restarting in some cases - ejabberd_cluster*.erl: Add copyright and fix description - Add support of rfc6120 section 4.9.3.16 on node shutdown Configuration - ejabberd_c2s: Fix priority of 窶歪ertfile窶� option - Introduce 窶鷲osts窶� modules option - Fix ERLANG_OPTS, INET_DIST_INTERFACE and FIREWALL_WINDOW option - Remove unused 窶藁anagers窶� option, related to the deferred XEP-0321 Commands - Fix errors when running ejabberdctl as root - Fix set_presence command to work in recent ejabberd - Rename stop_all_connections to stop_s2s_connections for consistency - Change policy of user_resources command, from user to admin - Remove old command calling interface - Describe more command arguments and results Modules - mod_http_api: Use hide_sensitive_log_data option when registering users - mod_http_fileserver: Request basic auth dialog from browser - mod_muc: Fix nick bug with MUC on riak - mod_muc: new hooks - mod_push: Support XEP-0357: Push Notifications - mod_push_keepalive: New module PubSub/PEP - Keep disco#info on PEP compatible with XEP-0060 - Preliminary export PubSub data from Mnesia tables to SQL file - Fix PubSub send last published items - Fix PEP node removal - Fix PEP node identity - Fix disco#items on PEP service - Fix getting cached last item - Add import of PEP from prosodydiff -r1.74 -r1.75 pkgsrc/chat/ejabberd/Makefile
(fhajny)
@@ -1,44 +1,44 @@ | @@ -1,44 +1,44 @@ | |||
1 | # $NetBSD: Makefile,v 1.74 2017/08/01 14:58:53 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.75 2017/08/20 12:58:04 fhajny Exp $ | |
2 | 2 | |||
3 | DISTNAME= ejabberd-17.07 | 3 | DISTNAME= ejabberd-17.08 | |
4 | CATEGORIES= chat | 4 | CATEGORIES= chat | |
5 | MASTER_SITES= https://www.process-one.net/downloads/ejabberd/${PKGVERSION_NOREV}/ | 5 | MASTER_SITES= https://www.process-one.net/downloads/ejabberd/${PKGVERSION_NOREV}/ | |
6 | EXTRACT_SUFX= .tgz | 6 | EXTRACT_SUFX= .tgz | |
7 | 7 | |||
8 | MAINTAINER= filip@joyent.com | 8 | MAINTAINER= filip@joyent.com | |
9 | HOMEPAGE= https://www.ejabberd.im/ | 9 | HOMEPAGE= https://www.ejabberd.im/ | |
10 | COMMENT= Free and Open Source distributed fault-tolerant Jabber server | 10 | COMMENT= Free and Open Source distributed fault-tolerant Jabber server | |
11 | LICENSE= gnu-gpl-v2 | 11 | LICENSE= gnu-gpl-v2 | |
12 | 12 | |||
13 | DEPENDS+= erlang-cache_tab>=1.0.9:../../devel/erlang-cache_tab | 13 | DEPENDS+= erlang-cache_tab>=1.0.10:../../devel/erlang-cache_tab | |
14 | DEPENDS+= erlang-epam>=1.0.3:../../security/erlang-epam | 14 | DEPENDS+= erlang-epam>=1.0.3:../../security/erlang-epam | |
15 | DEPENDS+= erlang-eredis>=1.0.8.20150910:../../databases/erlang-eredis | 15 | DEPENDS+= erlang-eredis>=1.0.8.20150910:../../databases/erlang-eredis | |
16 | DEPENDS+= erlang-esip>=1.0.13:../../net/erlang-esip | 16 | DEPENDS+= erlang-esip>=1.0.15:../../net/erlang-esip | |
17 | DEPENDS+= erlang-ezlib>=1.0.2:../../devel/erlang-ezlib | 17 | DEPENDS+= erlang-ezlib>=1.0.2:../../devel/erlang-ezlib | |
18 | DEPENDS+= erlang-fast_tls>=1.0.13:../../security/erlang-fast_tls | 18 | DEPENDS+= erlang-fast_tls>=1.0.15:../../security/erlang-fast_tls | |
19 | DEPENDS+= erlang-fast_xml>=1.1.23:../../textproc/erlang-fast_xml | 19 | DEPENDS+= erlang-fast_xml>=1.1.23:../../textproc/erlang-fast_xml | |
20 | DEPENDS+= erlang-fast_yaml>=1.0.10:../../textproc/erlang-fast_yaml | 20 | DEPENDS+= erlang-fast_yaml>=1.0.10:../../textproc/erlang-fast_yaml | |
21 | DEPENDS+= erlang-iconv>=1.0.5:../../converters/erlang-iconv | 21 | DEPENDS+= erlang-iconv>=1.0.5:../../converters/erlang-iconv | |
22 | DEPENDS+= erlang-jiffy>=0.14.8:../../textproc/erlang-jiffy | 22 | DEPENDS+= erlang-jiffy>=0.14.8:../../textproc/erlang-jiffy | |
23 | DEPENDS+= erlang-lager>=3.4.2.:../../sysutils/erlang-lager | 23 | DEPENDS+= erlang-lager>=3.4.2.:../../sysutils/erlang-lager | |
24 | DEPENDS+= erlang-luerl>=0.2:../../lang/erlang-luerl | 24 | DEPENDS+= erlang-luerl>=0.2:../../lang/erlang-luerl | |
25 | DEPENDS+= erlang-p1_mysql>=1.0.3:../../databases/erlang-p1_mysql | 25 | DEPENDS+= erlang-p1_mysql>=1.0.3:../../databases/erlang-p1_mysql | |
26 | DEPENDS+= erlang-p1_oauth2>=0.6.1:../../security/erlang-p1_oauth2 | 26 | DEPENDS+= erlang-p1_oauth2>=0.6.2:../../security/erlang-p1_oauth2 | |
27 | DEPENDS+= erlang-p1_pgsql>=1.1.3:../../databases/erlang-p1_pgsql | 27 | DEPENDS+= erlang-p1_pgsql>=1.1.3:../../databases/erlang-p1_pgsql | |
28 | DEPENDS+= erlang-p1_utils>=1.0.9:../../misc/erlang-p1_utils | 28 | DEPENDS+= erlang-p1_utils>=1.0.9:../../misc/erlang-p1_utils | |
29 | DEPENDS+= erlang-stringprep>=1.0.9:../../textproc/erlang-stringprep | 29 | DEPENDS+= erlang-stringprep>=1.0.9:../../textproc/erlang-stringprep | |
30 | DEPENDS+= erlang-stun>=1.0.12:../../net/erlang-stun | 30 | DEPENDS+= erlang-stun>=1.0.14:../../net/erlang-stun | |
31 | DEPENDS+= erlang-xmpp>=1.1.13:../../net/erlang-xmpp | 31 | DEPENDS+= erlang-xmpp>=1.1.14:../../net/erlang-xmpp | |
32 | CONFLICTS+= jabberd-[0-9]* | 32 | CONFLICTS+= jabberd-[0-9]* | |
33 | 33 | |||
34 | GNU_CONFIGURE= yes | 34 | GNU_CONFIGURE= yes | |
35 | USE_GCC_RUNTIME= yes | 35 | USE_GCC_RUNTIME= yes | |
36 | USE_TOOLS+= bash:run gmake patch | 36 | USE_TOOLS+= bash:run gmake patch | |
37 | 37 | |||
38 | CONFIGURE_ARGS+= --disable-debug | 38 | CONFIGURE_ARGS+= --disable-debug | |
39 | CONFIGURE_ARGS+= --enable-system-deps | 39 | CONFIGURE_ARGS+= --enable-system-deps | |
40 | CONFIGURE_ARGS+= --enable-iconv | 40 | CONFIGURE_ARGS+= --enable-iconv | |
41 | CONFIGURE_ARGS+= --enable-mysql | 41 | CONFIGURE_ARGS+= --enable-mysql | |
42 | CONFIGURE_ARGS+= --enable-odbc | 42 | CONFIGURE_ARGS+= --enable-odbc | |
43 | CONFIGURE_ARGS+= --enable-pam | 43 | CONFIGURE_ARGS+= --enable-pam | |
44 | CONFIGURE_ARGS+= --enable-pgsql | 44 | CONFIGURE_ARGS+= --enable-pgsql |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.47 2017/07/07 10:08:39 fhajny Exp $ | 1 | @comment $NetBSD: PLIST,v 1.48 2017/08/20 12:58:04 fhajny Exp $ | |
2 | lib/erlang/lib/${PKGNAME}/COPYING | 2 | lib/erlang/lib/${PKGNAME}/COPYING | |
3 | lib/erlang/lib/${PKGNAME}/ebin/ELDAPv3.beam | 3 | lib/erlang/lib/${PKGNAME}/ebin/ELDAPv3.beam | |
4 | lib/erlang/lib/${PKGNAME}/ebin/XmppAddr.beam | 4 | lib/erlang/lib/${PKGNAME}/ebin/XmppAddr.beam | |
5 | lib/erlang/lib/${PKGNAME}/ebin/acl.beam | 5 | lib/erlang/lib/${PKGNAME}/ebin/acl.beam | |
6 | lib/erlang/lib/${PKGNAME}/ebin/cyrsasl.beam | 6 | lib/erlang/lib/${PKGNAME}/ebin/cyrsasl.beam | |
7 | lib/erlang/lib/${PKGNAME}/ebin/cyrsasl_anonymous.beam | 7 | lib/erlang/lib/${PKGNAME}/ebin/cyrsasl_anonymous.beam | |
8 | lib/erlang/lib/${PKGNAME}/ebin/cyrsasl_digest.beam | 8 | lib/erlang/lib/${PKGNAME}/ebin/cyrsasl_digest.beam | |
9 | lib/erlang/lib/${PKGNAME}/ebin/cyrsasl_oauth.beam | 9 | lib/erlang/lib/${PKGNAME}/ebin/cyrsasl_oauth.beam | |
10 | lib/erlang/lib/${PKGNAME}/ebin/cyrsasl_plain.beam | 10 | lib/erlang/lib/${PKGNAME}/ebin/cyrsasl_plain.beam | |
11 | lib/erlang/lib/${PKGNAME}/ebin/cyrsasl_scram.beam | 11 | lib/erlang/lib/${PKGNAME}/ebin/cyrsasl_scram.beam | |
12 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd.app | 12 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd.app | |
13 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd.beam | 13 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd.beam | |
14 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_access_permissions.beam | 14 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_access_permissions.beam | |
@@ -18,26 +18,27 @@ lib/erlang/lib/${PKGNAME}/ebin/ejabberd_ | @@ -18,26 +18,27 @@ lib/erlang/lib/${PKGNAME}/ebin/ejabberd_ | |||
18 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_auth_anonymous.beam | 18 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_auth_anonymous.beam | |
19 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_auth_external.beam | 19 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_auth_external.beam | |
20 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_auth_ldap.beam | 20 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_auth_ldap.beam | |
21 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_auth_mnesia.beam | 21 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_auth_mnesia.beam | |
22 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_auth_pam.beam | 22 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_auth_pam.beam | |
23 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_auth_riak.beam | 23 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_auth_riak.beam | |
24 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_auth_sql.beam | 24 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_auth_sql.beam | |
25 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_backend_sup.beam | 25 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_backend_sup.beam | |
26 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_bosh.beam | 26 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_bosh.beam | |
27 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_c2s.beam | 27 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_c2s.beam | |
28 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_c2s_config.beam | 28 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_c2s_config.beam | |
29 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_captcha.beam | 29 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_captcha.beam | |
30 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_cluster.beam | 30 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_cluster.beam | |
31 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_cluster_mnesia.beam | |||
31 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_commands.beam | 32 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_commands.beam | |
32 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_commands_doc.beam | 33 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_commands_doc.beam | |
33 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_config.beam | 34 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_config.beam | |
34 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_ctl.beam | 35 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_ctl.beam | |
35 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_db_modules.beam | 36 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_db_modules.beam | |
36 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_hooks.beam | 37 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_hooks.beam | |
37 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_http.beam | 38 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_http.beam | |
38 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_http_ws.beam | 39 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_http_ws.beam | |
39 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_idna.beam | 40 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_idna.beam | |
40 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_listener.beam | 41 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_listener.beam | |
41 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_local.beam | 42 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_local.beam | |
42 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_logger.beam | 43 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_logger.beam | |
43 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_mnesia.beam | 44 | lib/erlang/lib/${PKGNAME}/ebin/ejabberd_mnesia.beam | |
@@ -169,26 +170,29 @@ lib/erlang/lib/${PKGNAME}/ebin/mod_priva | @@ -169,26 +170,29 @@ lib/erlang/lib/${PKGNAME}/ebin/mod_priva | |||
169 | lib/erlang/lib/${PKGNAME}/ebin/mod_private_mnesia.beam | 170 | lib/erlang/lib/${PKGNAME}/ebin/mod_private_mnesia.beam | |
170 | lib/erlang/lib/${PKGNAME}/ebin/mod_private_riak.beam | 171 | lib/erlang/lib/${PKGNAME}/ebin/mod_private_riak.beam | |
171 | lib/erlang/lib/${PKGNAME}/ebin/mod_private_sql.beam | 172 | lib/erlang/lib/${PKGNAME}/ebin/mod_private_sql.beam | |
172 | lib/erlang/lib/${PKGNAME}/ebin/mod_privilege.beam | 173 | lib/erlang/lib/${PKGNAME}/ebin/mod_privilege.beam | |
173 | lib/erlang/lib/${PKGNAME}/ebin/mod_proxy65.beam | 174 | lib/erlang/lib/${PKGNAME}/ebin/mod_proxy65.beam | |
174 | lib/erlang/lib/${PKGNAME}/ebin/mod_proxy65_lib.beam | 175 | lib/erlang/lib/${PKGNAME}/ebin/mod_proxy65_lib.beam | |
175 | lib/erlang/lib/${PKGNAME}/ebin/mod_proxy65_mnesia.beam | 176 | lib/erlang/lib/${PKGNAME}/ebin/mod_proxy65_mnesia.beam | |
176 | lib/erlang/lib/${PKGNAME}/ebin/mod_proxy65_redis.beam | 177 | lib/erlang/lib/${PKGNAME}/ebin/mod_proxy65_redis.beam | |
177 | lib/erlang/lib/${PKGNAME}/ebin/mod_proxy65_riak.beam | 178 | lib/erlang/lib/${PKGNAME}/ebin/mod_proxy65_riak.beam | |
178 | lib/erlang/lib/${PKGNAME}/ebin/mod_proxy65_service.beam | 179 | lib/erlang/lib/${PKGNAME}/ebin/mod_proxy65_service.beam | |
179 | lib/erlang/lib/${PKGNAME}/ebin/mod_proxy65_sql.beam | 180 | lib/erlang/lib/${PKGNAME}/ebin/mod_proxy65_sql.beam | |
180 | lib/erlang/lib/${PKGNAME}/ebin/mod_proxy65_stream.beam | 181 | lib/erlang/lib/${PKGNAME}/ebin/mod_proxy65_stream.beam | |
181 | lib/erlang/lib/${PKGNAME}/ebin/mod_pubsub.beam | 182 | lib/erlang/lib/${PKGNAME}/ebin/mod_pubsub.beam | |
183 | lib/erlang/lib/${PKGNAME}/ebin/mod_push.beam | |||
184 | lib/erlang/lib/${PKGNAME}/ebin/mod_push_keepalive.beam | |||
185 | lib/erlang/lib/${PKGNAME}/ebin/mod_push_mnesia.beam | |||
182 | lib/erlang/lib/${PKGNAME}/ebin/mod_register.beam | 186 | lib/erlang/lib/${PKGNAME}/ebin/mod_register.beam | |
183 | lib/erlang/lib/${PKGNAME}/ebin/mod_register_web.beam | 187 | lib/erlang/lib/${PKGNAME}/ebin/mod_register_web.beam | |
184 | lib/erlang/lib/${PKGNAME}/ebin/mod_roster.beam | 188 | lib/erlang/lib/${PKGNAME}/ebin/mod_roster.beam | |
185 | lib/erlang/lib/${PKGNAME}/ebin/mod_roster_mnesia.beam | 189 | lib/erlang/lib/${PKGNAME}/ebin/mod_roster_mnesia.beam | |
186 | lib/erlang/lib/${PKGNAME}/ebin/mod_roster_riak.beam | 190 | lib/erlang/lib/${PKGNAME}/ebin/mod_roster_riak.beam | |
187 | lib/erlang/lib/${PKGNAME}/ebin/mod_roster_sql.beam | 191 | lib/erlang/lib/${PKGNAME}/ebin/mod_roster_sql.beam | |
188 | lib/erlang/lib/${PKGNAME}/ebin/mod_s2s_dialback.beam | 192 | lib/erlang/lib/${PKGNAME}/ebin/mod_s2s_dialback.beam | |
189 | lib/erlang/lib/${PKGNAME}/ebin/mod_service_log.beam | 193 | lib/erlang/lib/${PKGNAME}/ebin/mod_service_log.beam | |
190 | lib/erlang/lib/${PKGNAME}/ebin/mod_shared_roster.beam | 194 | lib/erlang/lib/${PKGNAME}/ebin/mod_shared_roster.beam | |
191 | lib/erlang/lib/${PKGNAME}/ebin/mod_shared_roster_ldap.beam | 195 | lib/erlang/lib/${PKGNAME}/ebin/mod_shared_roster_ldap.beam | |
192 | lib/erlang/lib/${PKGNAME}/ebin/mod_shared_roster_mnesia.beam | 196 | lib/erlang/lib/${PKGNAME}/ebin/mod_shared_roster_mnesia.beam | |
193 | lib/erlang/lib/${PKGNAME}/ebin/mod_shared_roster_riak.beam | 197 | lib/erlang/lib/${PKGNAME}/ebin/mod_shared_roster_riak.beam | |
194 | lib/erlang/lib/${PKGNAME}/ebin/mod_shared_roster_sql.beam | 198 | lib/erlang/lib/${PKGNAME}/ebin/mod_shared_roster_sql.beam |
@@ -1,13 +1,13 @@ | @@ -1,13 +1,13 @@ | |||
1 | $NetBSD: distinfo,v 1.50 2017/07/07 10:08:39 fhajny Exp $ | 1 | $NetBSD: distinfo,v 1.51 2017/08/20 12:58:04 fhajny Exp $ | |
2 | 2 | |||
3 | SHA1 (ejabberd-17.07.tgz) = 6a964e02ffe4ceb6065d981a0cf11ed99592632a | 3 | SHA1 (ejabberd-17.08.tgz) = b9f05fbd9890d71bcbf91fee4fb5c0a1a8fc322c | |
4 | RMD160 (ejabberd-17.07.tgz) = 6db03e36a5dc509b196e41c6f1ccc4c8e36e45f4 | 4 | RMD160 (ejabberd-17.08.tgz) = bb695e29c7c2d9b4726dfde06fe4e0b7588723a8 | |
5 | SHA512 (ejabberd-17.07.tgz) = a1b1ec69272191590f97c846dd27eb427a3a4f0fa9ddedd316f2d73837f970dfba5e2d1671d1fa520e014c81cf4f3559f5a4d3d439b8db51c7fff986d5e97df0 | 5 | SHA512 (ejabberd-17.08.tgz) = 037902e557fcc09616f6c120c543be9f4aedd4eac9a6a9618209f0ebc66a24d3857870569c31478cc37652d243e1b7a02151f7c2b15ef2ddfefee8a04a8dd328 | |
6 | Size (ejabberd-17.07.tgz) = 1707408 bytes | 6 | Size (ejabberd-17.08.tgz) = 1716503 bytes | |
7 | SHA1 (patch-aa) = a9197c75afa9ea4a2fbad70aec894f1b28c7bc88 | 7 | SHA1 (patch-aa) = a9197c75afa9ea4a2fbad70aec894f1b28c7bc88 | |
8 | SHA1 (patch-ad) = 6a7cfbabb22cf362cf21791656be454f10ac5de8 | 8 | SHA1 (patch-ad) = 6a7cfbabb22cf362cf21791656be454f10ac5de8 | |
9 | SHA1 (patch-ae) = b74d8d147dad45eef63e969f6774748233fc0fc8 | 9 | SHA1 (patch-ae) = 41a3ce9c4fcbd3125240167e2fb3d202cbfccf05 | |
10 | SHA1 (patch-configure) = 8cf03f571ef13ed825b445e0f1664d387895b8fe | 10 | SHA1 (patch-configure) = 8cf03f571ef13ed825b445e0f1664d387895b8fe | |
11 | SHA1 (patch-rebar.config) = 1c9aad883e7e47908ad92580cca5ba35c0c3034a | 11 | SHA1 (patch-rebar.config) = 1c9aad883e7e47908ad92580cca5ba35c0c3034a | |
12 | SHA1 (patch-rebar.config.script) = a9dd2828a7de79cc93b6313580d83d82f6a7a684 | 12 | SHA1 (patch-rebar.config.script) = a9dd2828a7de79cc93b6313580d83d82f6a7a684 | |
13 | SHA1 (patch-tools_ejabberdctl.bc) = 3c7bc0ad14d5b266a192b29e4d075e8f93103569 | 13 | SHA1 (patch-tools_ejabberdctl.bc) = 3c7bc0ad14d5b266a192b29e4d075e8f93103569 |
@@ -1,53 +1,45 @@ | @@ -1,53 +1,45 @@ | |||
1 | $NetBSD: patch-ae,v 1.16 2017/07/07 10:08:40 fhajny Exp $ | 1 | $NetBSD: patch-ae,v 1.17 2017/08/20 12:58:04 fhajny Exp $ | |
2 | 2 | |||
3 | - Default locations. | 3 | - Default locations. | |
4 | - Use 'su -' instead of just 'su'. Fixes priv delegation on SunOS | 4 | - Use 'su -' instead of just 'su'. Fixes priv delegation on SunOS | |
5 | and AIX where Erlang relies on $HOME set correctly. | 5 | and AIX where Erlang relies on $HOME set correctly. Use a portable | |
6 | su arg order while at it. | |||
6 | - At least SunOS has not wheel group. | 7 | - At least SunOS has not wheel group. | |
7 | - Portable grep calls. | 8 | - Portable grep calls. | |
8 | 9 | |||
9 | --- ejabberdctl.template.orig 2017-06-30 12:24:35.000000000 +0000 | 10 | --- ejabberdctl.template.orig 2017-08-14 07:43:02.000000000 +0000 | |
10 | +++ ejabberdctl.template | 11 | +++ ejabberdctl.template | |
11 | @@ -21,7 +21,7 @@ if [ -n "$INSTALLUSER" ] ; then | 12 | @@ -56,8 +56,8 @@ done | |
12 | if [ $(id -g) -eq $(id -g $INSTALLUSER || echo -1) ] ; then | |||
13 | EXEC_CMD="as_current_user" | |||
14 | else | |||
15 | - id -Gn | grep -q wheel && EXEC_CMD="as_install_user" | |||
16 | + id -Gn | grep 'wheel\|root' >/dev/null && EXEC_CMD="as_install_user" | |||
17 | fi | |||
18 | else | |||
19 | EXEC_CMD="as_current_user" | |||
20 | @@ -49,8 +49,8 @@ done | |||
21 | 13 | |||
22 | # define ejabberd variables if not already defined from the command line | 14 | # define ejabberd variables if not already defined from the command line | |
23 | : ${ETC_DIR:={{sysconfdir}}/ejabberd} | 15 | : ${ETC_DIR:={{sysconfdir}}/ejabberd} | |
24 | -: ${LOGS_DIR:={{localstatedir}}/log/ejabberd} | 16 | -: ${LOGS_DIR:={{localstatedir}}/log/ejabberd} | |
25 | -: ${SPOOL_DIR:={{localstatedir}}/lib/ejabberd} | 17 | -: ${SPOOL_DIR:={{localstatedir}}/lib/ejabberd} | |
26 | +: ${LOGS_DIR:=@EJABBERD_LOGDIR@} | 18 | +: ${LOGS_DIR:=@EJABBERD_LOGDIR@} | |
27 | +: ${SPOOL_DIR:=@EJABBERD_DB@} | 19 | +: ${SPOOL_DIR:=@EJABBERD_DB@} | |
28 | : ${EJABBERD_CONFIG_PATH:="$ETC_DIR"/ejabberd.yml} | 20 | : ${EJABBERD_CONFIG_PATH:="$ETC_DIR"/ejabberd.yml} | |
29 | : ${EJABBERDCTL_CONFIG_PATH:="$ETC_DIR"/ejabberdctl.cfg} | 21 | : ${EJABBERDCTL_CONFIG_PATH:="$ETC_DIR"/ejabberdctl.cfg} | |
30 | [ -f "$EJABBERDCTL_CONFIG_PATH" ] && . "$EJABBERDCTL_CONFIG_PATH" | 22 | [ -f "$EJABBERDCTL_CONFIG_PATH" ] && . "$EJABBERDCTL_CONFIG_PATH" | |
31 | @@ -103,7 +103,7 @@ export ERL_LIBS | 23 | @@ -108,7 +108,7 @@ export ERL_LIBS | |
32 | exec_cmd() | 24 | exec_cmd() | |
33 | { | 25 | { | |
34 | case $EXEC_CMD in | 26 | case $EXEC_CMD in | |
35 | - as_install_user) su -c '"$0" $@"' "$INSTALLUSER" -- "$@" ;; | 27 | - as_install_user) su -c '"$0" "$@"' "$INSTALLUSER" -- "$@" ;; | |
36 | + as_install_user) su - -c '"$0" $@"' "$INSTALLUSER" -- "$@" ;; | 28 | + as_install_user) su - "$INSTALLUSER" -c '"$@"' -- "$@" ;; | |
37 | as_current_user) "$@" ;; | 29 | as_current_user) "$@" ;; | |
38 | esac | 30 | esac | |
39 | } | 31 | } | |
40 | @@ -202,19 +202,19 @@ uid() | 32 | @@ -207,19 +207,19 @@ uid() | |
41 | # stop epmd if there is no other running node | 33 | # stop epmd if there is no other running node | |
42 | stop_epmd() | 34 | stop_epmd() | |
43 | { | 35 | { | |
44 | - "$EPMD" -names 2>/dev/null | grep -q name || "$EPMD" -kill >/dev/null | 36 | - "$EPMD" -names 2>/dev/null | grep -q name || "$EPMD" -kill >/dev/null | |
45 | + "$EPMD" -names 2>/dev/null | grep name >/dev/null || "$EPMD" -kill >/dev/null | 37 | + "$EPMD" -names 2>/dev/null | grep name >/dev/null || "$EPMD" -kill >/dev/null | |
46 | } | 38 | } | |
47 | 39 | |||
48 | # make sure node not already running and node name unregistered | 40 | # make sure node not already running and node name unregistered | |
49 | # if all ok, ensure runtime directory exists and make it current directory | 41 | # if all ok, ensure runtime directory exists and make it current directory | |
50 | check_start() | 42 | check_start() | |
51 | { | 43 | { | |
52 | - "$EPMD" -names 2>/dev/null | grep -q " ${ERLANG_NODE%@*} " && { | 44 | - "$EPMD" -names 2>/dev/null | grep -q " ${ERLANG_NODE%@*} " && { | |
53 | - ps ux | grep -v grep | grep -q " $ERLANG_NODE " && { | 45 | - ps ux | grep -v grep | grep -q " $ERLANG_NODE " && { |