1 |
commit: 3f1724d261577a5eebdd7cc64605c41baa7a4f48 |
2 |
Author: Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 28 13:08:41 2017 +0000 |
4 |
Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 28 13:08:41 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f1724d2 |
7 |
|
8 |
net-im/ejabberd: Bump version |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
net-im/ejabberd/Manifest | 1 + |
13 |
net-im/ejabberd/ejabberd-17.04.ebuild | 302 +++++++++++++++++++++ |
14 |
.../files/ejabberd-17.04-ejabberdctl.patch | 62 +++++ |
15 |
3 files changed, 365 insertions(+) |
16 |
|
17 |
diff --git a/net-im/ejabberd/Manifest b/net-im/ejabberd/Manifest |
18 |
index fcc89f207ce..c5017485df3 100644 |
19 |
--- a/net-im/ejabberd/Manifest |
20 |
+++ b/net-im/ejabberd/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST ejabberd-16.09.tar.gz 1687485 SHA256 7b44ab3af3310ca73624c47b65cf30a651d5a1398413e8af51c610d788fb8f14 SHA512 506365eff83f9ab97c9a632c4b8b2428aacbfc570c34ca65a78903d95c64755489ff7327be3efa2172c9d05d7891f83986b1ff3928a7ce806c0ab2aa5dbb647f WHIRLPOOL 6c56ad58b4e247cedf29cf247fdadddf727270311a0ba21eef88f84ee6b997ad8be75448e3bfdaa67d978ea167e2feb21bc9ce0839741a62fb60fa045e45edf2 |
23 |
DIST ejabberd-17.01.tar.gz 1638418 SHA256 7efa8f25fe01bce876f9379ba7b4f49752a0fddc6a78e5ae82196fdc7f70c90b SHA512 d64125f81efbf841eded140d877c950439c11e65377e167994d25f85fa66437aad771d94548d063900bd3c472922e6bfa8f8bbe65413f18e7b641f0ed32db566 WHIRLPOOL 7b670b087cccc6b4fb804410730571175c253e094fab6fc8c9412eae4e14b844ad38596426b4334bd751a056f940dfd60c1c06d2560af5b36061eb54553886fb |
24 |
+DIST ejabberd-17.04.tar.gz 1690441 SHA256 b8395bc65b09f135a60320b62338258acd6056cc241e9e245fde267fb18dd3c9 SHA512 03467434dba92bd1ff2f70d78aa8fcf86fc73cb52aaaa73e4947229e1d14225e7b0d0133c3da7c8efe4c9db13aab932f40f757be46b120d0f280f96d62c203d7 WHIRLPOOL c345a6b31e5ea63d72779630d7db8868e997e876ef929dc0de3df0584ca3dcbec1d36e6bb1cacdcc3ee428f9f82b4dbc73d3f08446ace0daa8beccd2fe9a8bfe |
25 |
|
26 |
diff --git a/net-im/ejabberd/ejabberd-17.04.ebuild b/net-im/ejabberd/ejabberd-17.04.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..75726aedb77 |
29 |
--- /dev/null |
30 |
+++ b/net-im/ejabberd/ejabberd-17.04.ebuild |
31 |
@@ -0,0 +1,302 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+SSL_CERT_MANDATORY=1 |
38 |
+ |
39 |
+inherit eutils pam rebar ssl-cert systemd |
40 |
+ |
41 |
+DESCRIPTION="Robust, scalable and extensible XMPP server" |
42 |
+HOMEPAGE="http://www.ejabberd.im/ https://github.com/processone/ejabberd/" |
43 |
+SRC_URI="http://www.process-one.net/downloads/${PN}/${PV}/${P}.tgz |
44 |
+ -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="GPL-2" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86" |
49 |
+REQUIRED_USE="mssql? ( odbc )" |
50 |
+# TODO: Add 'tools' flag. |
51 |
+IUSE="captcha debug full-xml hipe ldap mssql mysql nls odbc pam postgres redis |
52 |
+ riak roster-gw sqlite zlib" |
53 |
+ |
54 |
+RESTRICT="test" |
55 |
+ |
56 |
+# TODO: Add dependencies for 'tools' flag enabled. |
57 |
+# TODO: tools? ( |
58 |
+# TODO: >=dev-erlang/meck-0.8.4 |
59 |
+# TODO: >=dev-erlang/moka-1.0.5b |
60 |
+# TODO: ) |
61 |
+CDEPEND=" |
62 |
+ >=dev-erlang/cache_tab-1.0.7 |
63 |
+ >=dev-erlang/esip-1.0.11 |
64 |
+ >=dev-erlang/fast_tls-1.0.11 |
65 |
+ >=dev-erlang/fast_xml-1.1.21 |
66 |
+ >=dev-erlang/fast_yaml-1.0.9 |
67 |
+ >=dev-erlang/jiffy-0.14.8 |
68 |
+ >=dev-erlang/lager-3.2.1 |
69 |
+ >=dev-erlang/luerl-0.2 |
70 |
+ >=dev-erlang/p1_oauth2-0.6.1 |
71 |
+ >=dev-erlang/p1_utils-1.0.8 |
72 |
+ >=dev-erlang/stringprep-1.0.8 |
73 |
+ >=dev-erlang/stun-1.0.10 |
74 |
+ >=dev-erlang/xmpp-1.1.9 |
75 |
+ >=dev-lang/erlang-17.1[hipe?,odbc?,ssl] |
76 |
+ >=net-im/jabber-base-0.01 |
77 |
+ ldap? ( =net-nds/openldap-2* ) |
78 |
+ mysql? ( >=dev-erlang/p1_mysql-1.0.2 ) |
79 |
+ nls? ( >=dev-erlang/iconv-1.0.4 ) |
80 |
+ odbc? ( dev-db/unixODBC ) |
81 |
+ pam? ( >=dev-erlang/epam-1.0.2 ) |
82 |
+ postgres? ( >=dev-erlang/p1_pgsql-1.1.2 ) |
83 |
+ redis? ( >=dev-erlang/eredis-1.0.8 ) |
84 |
+ riak? ( |
85 |
+ >=dev-erlang/hamcrest-0.1.0_p20150103 |
86 |
+ >=dev-erlang/riakc-2.4.1 |
87 |
+ ) |
88 |
+ sqlite? ( >=dev-erlang/sqlite3-1.1.5 ) |
89 |
+ zlib? ( >=dev-erlang/ezlib-1.0.2 )" |
90 |
+DEPEND="${CDEPEND} |
91 |
+ >=sys-apps/gawk-4.1" |
92 |
+RDEPEND="${CDEPEND} |
93 |
+ captcha? ( media-gfx/imagemagick[truetype,png] )" |
94 |
+ |
95 |
+DOCS=( README ) |
96 |
+PATCHES=( "${FILESDIR}/${P}-ejabberdctl.patch" ) |
97 |
+ |
98 |
+EJABBERD_CERT="${EPREFIX}/etc/ssl/ejabberd/server.pem" |
99 |
+# Paths in net-im/jabber-base |
100 |
+JABBER_ETC="${EPREFIX}/etc/jabber" |
101 |
+JABBER_LOG="${EPREFIX}/var/log/jabber" |
102 |
+JABBER_SPOOL="${EPREFIX}/var/spool/jabber" |
103 |
+ |
104 |
+# Adjust example configuration file to Gentoo. |
105 |
+# - Use our sample certificates. |
106 |
+# - Correct PAM service name. |
107 |
+adjust_config() { |
108 |
+ sed -e "s|\"/path/to/ssl.pem\"|\"${EJABBERD_CERT}\"|g" \ |
109 |
+ -e "s|\"pamservicename\"|\"xmpp\"|" \ |
110 |
+ -i "${S}/ejabberd.yml.example" \ |
111 |
+ || die 'failed to adjust example config' |
112 |
+} |
113 |
+ |
114 |
+# Set paths to ejabberd lib directory consistently to point always to directory |
115 |
+# suffixed with version. |
116 |
+correct_ejabberd_paths() { |
117 |
+ sed -e "/^EJABBERDDIR[[:space:]]*=/{s:ejabberd:${P}:}" \ |
118 |
+ -i "${S}/Makefile.in" \ |
119 |
+ || die 'failed to set ejabberd path in Makefile.in' |
120 |
+ sed -e "/EJABBERD_BIN_PATH=/{s:ejabberd:${P}:}" \ |
121 |
+ -i "${S}/ejabberdctl.template" \ |
122 |
+ || die 'failed to set ejabberd path in ejabberdctl.template' |
123 |
+ sed -e 's|\(captcha_cmd:[[:space:]]*"\).\+"|\1'$(get_ejabberd_path)'/priv/bin/captcha.sh"|' \ |
124 |
+ -i "${S}/ejabberd.yml.example" \ |
125 |
+ || die 'failed to correct path to captcha.sh in example config' |
126 |
+} |
127 |
+ |
128 |
+# Get epam-wrapper from 'files' directory and correct path to lib directory in |
129 |
+# it. epam-wrapper is placed into work directory. It is assumed no epam-wrapper |
130 |
+# file exists there already. |
131 |
+customize_epam_wrapper() { |
132 |
+ local epam_wrapper_src="$1" |
133 |
+ local epam_wrapper_dst="${S}/epam-wrapper" |
134 |
+ |
135 |
+ [[ -e ${epam_wrapper_dst} ]] && die 'epam-wrapper already exists' |
136 |
+ sed -r -e "s@^(ERL_LIBS=).*\$@\1${EPREFIX}$(get_erl_libs)@" \ |
137 |
+ "${epam_wrapper_src}" >"${epam_wrapper_dst}" \ |
138 |
+ || die 'failed to install epam-wrapper' |
139 |
+} |
140 |
+ |
141 |
+# Check if there already exists a certificate. |
142 |
+ejabberd_cert_exists() { |
143 |
+ local cert |
144 |
+ |
145 |
+ for cert in $(gawk -- \ |
146 |
+ 'match($0, /^[[:space:]]*certfile: "([^"]+)"/, m) {print m[1];}' \ |
147 |
+ "${EROOT%/}${JABBER_ETC}/ejabberd.yml"); do |
148 |
+ [[ -f ${cert} ]] && return 0 |
149 |
+ done |
150 |
+ |
151 |
+ return 1 |
152 |
+} |
153 |
+ |
154 |
+# Generate and install sample ejabberd certificate. It's installed into |
155 |
+# EJABBERD_CERT path. |
156 |
+ejabberd_cert_install() { |
157 |
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-ejabberd XMPP Server}" |
158 |
+ install_cert "${EJABBERD_CERT%.*}" |
159 |
+ chown root:jabber "${EROOT%/}${EJABBERD_CERT}" || die |
160 |
+ chmod 0440 "${EROOT%/}${EJABBERD_CERT}" || die |
161 |
+} |
162 |
+ |
163 |
+# Get path to ejabberd lib directory. |
164 |
+# |
165 |
+# This is the path ./configure script Base for this path is path set in |
166 |
+# ./configure script which is /usr/lib by default. If libdir is explicitely set |
167 |
+# to something else than this should be adjusted here as well. |
168 |
+get_ejabberd_path() { |
169 |
+ echo "/usr/$(get_libdir)/${P}" |
170 |
+} |
171 |
+ |
172 |
+# Make ejabberd.service for systemd from upstream provided template. |
173 |
+make_ejabberd_service() { |
174 |
+ sed -r \ |
175 |
+ -e 's!@ctlscriptpath@!/usr/sbin!' \ |
176 |
+ -e 's!(User|Group)=(.*)!\1=jabber!' \ |
177 |
+ "${PN}.service.template" >"${PN}.service" \ |
178 |
+ || die 'failed to make ejabberd.service' |
179 |
+} |
180 |
+ |
181 |
+# Set paths to defined by net-im/jabber-base. |
182 |
+set_jabberbase_paths() { |
183 |
+ sed -e "/^ETCDIR[[:space:]]*=/{s:@sysconfdir@/ejabberd:${JABBER_ETC}:}" \ |
184 |
+ -e "/^LOGDIR[[:space:]]*=/{s:@localstatedir@/log/ejabberd:${JABBER_LOG}:}" \ |
185 |
+ -e "/^SPOOLDIR[[:space:]]*=/{s:@localstatedir@/lib/ejabberd:${JABBER_SPOOL}:}" \ |
186 |
+ -i "${S}/Makefile.in" \ |
187 |
+ || die 'failed to set paths in Makefile.in' |
188 |
+ sed -e "s|\(ETC_DIR=\){{sysconfdir}}.*|\1${JABBER_ETC}|" \ |
189 |
+ -e "s|\(LOGS_DIR=\){{localstatedir}}.*|\1${JABBER_LOG}|" \ |
190 |
+ -e "s|\(SPOOL_DIR=\){{localstatedir}}.*|\1${JABBER_SPOOL}|" \ |
191 |
+ -i "${S}/ejabberdctl.template" \ |
192 |
+ || die 'failed to set paths ejabberdctl.template' |
193 |
+} |
194 |
+ |
195 |
+# Skip installing docs because it's only COPYING that's installed by Makefile. |
196 |
+skip_docs() { |
197 |
+ gawk -i inplace ' |
198 |
+/# Documentation/, /^[[:space:]]*#?[[:space:]]*$/ { |
199 |
+ if ($0 ~ /^[[:space:]]*#?[[:space:]]*$/) { |
200 |
+ print $0; |
201 |
+ } else { |
202 |
+ next; |
203 |
+ } |
204 |
+} |
205 |
+1 |
206 |
+' "${S}/Makefile.in" || die 'failed to remove docs section from Makefile.in' |
207 |
+} |
208 |
+ |
209 |
+pkg_setup() { |
210 |
+ if use pam; then |
211 |
+ einfo "Adding jabber user to epam group to allow ejabberd to use PAM" \ |
212 |
+ "authentication" |
213 |
+ # See |
214 |
+ # <https://docs.ejabberd.im/admin/configuration/#pam-authentication>. |
215 |
+ # epam binary is installed by dev-erlang/epam package, therefore SUID |
216 |
+ # is set by that package. Instead of jabber group it uses epam group, |
217 |
+ # therefore we need to add jabber user to epam group. |
218 |
+ usermod -a -G epam jabber || die |
219 |
+ fi |
220 |
+} |
221 |
+ |
222 |
+src_prepare() { |
223 |
+ default |
224 |
+ |
225 |
+ rebar_remove_deps |
226 |
+ correct_ejabberd_paths |
227 |
+ set_jabberbase_paths |
228 |
+ make_ejabberd_service |
229 |
+ skip_docs |
230 |
+ adjust_config |
231 |
+ customize_epam_wrapper "${FILESDIR}/epam-wrapper" |
232 |
+ |
233 |
+ rebar_fix_include_path fast_xml |
234 |
+ rebar_fix_include_path p1_utils |
235 |
+ rebar_fix_include_path xmpp |
236 |
+ |
237 |
+ # Fix bug #591862. ERL_LIBS should point directly to ejabberd directory |
238 |
+ # rather than its parent which is default. That way ejabberd directory |
239 |
+ # takes precedence is module lookup. |
240 |
+ local ejabberd_erl_libs="$(get_ejabberd_path):$(get_erl_libs)" |
241 |
+ sed -e "s|\(ERL_LIBS=\){{libdir}}.*|\1${ejabberd_erl_libs}|" \ |
242 |
+ -i "${S}/ejabberdctl.template" \ |
243 |
+ || die 'failed to set ERL_LIBS in ejabberdctl.template' |
244 |
+} |
245 |
+ |
246 |
+src_configure() { |
247 |
+ econf \ |
248 |
+ --docdir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
249 |
+ --enable-user=jabber \ |
250 |
+ $(use_enable debug) \ |
251 |
+ $(use_enable full-xml) \ |
252 |
+ $(use_enable hipe) \ |
253 |
+ $(use_enable mssql) \ |
254 |
+ $(use_enable mysql) \ |
255 |
+ $(use_enable nls iconv) \ |
256 |
+ $(use_enable odbc) \ |
257 |
+ $(use_enable pam) \ |
258 |
+ $(use_enable postgres pgsql) \ |
259 |
+ $(use_enable redis) \ |
260 |
+ $(use_enable riak) \ |
261 |
+ $(use_enable roster-gw roster-gateway-workaround) \ |
262 |
+ $(use_enable sqlite) \ |
263 |
+ $(use_enable zlib) |
264 |
+} |
265 |
+ |
266 |
+src_compile() { |
267 |
+ emake REBAR='rebar -v' src |
268 |
+} |
269 |
+ |
270 |
+src_install() { |
271 |
+ default |
272 |
+ |
273 |
+ if use pam; then |
274 |
+ local epam_path="$(get_ejabberd_path)/priv/bin/epam" |
275 |
+ |
276 |
+ pamd_mimic_system xmpp auth account || die "cannot create pam.d file" |
277 |
+ into "$(get_ejabberd_path)/priv" |
278 |
+ newbin epam-wrapper epam |
279 |
+ fi |
280 |
+ |
281 |
+ newconfd "${FILESDIR}/${PN}.confd" "${PN}" |
282 |
+ newinitd "${FILESDIR}/${PN}.initd" "${PN}" |
283 |
+ systemd_dounit "${PN}.service" |
284 |
+ systemd_dotmpfilesd "${FILESDIR}/${PN}.tmpfiles.conf" |
285 |
+ |
286 |
+ insinto /etc/logrotate.d |
287 |
+ newins "${FILESDIR}/${PN}.logrotate" "${PN}" |
288 |
+} |
289 |
+ |
290 |
+pkg_postinst() { |
291 |
+ if [[ ! ${REPLACING_VERSIONS} ]]; then |
292 |
+ echo |
293 |
+ elog "For configuration instructions, please see" |
294 |
+ elog " http://www.process-one.net/en/ejabberd/docs/" |
295 |
+ echo |
296 |
+ if [[ " ${REPLACING_VERSIONS} " =~ \ 2\. ]]; then |
297 |
+ ewarn "If you have used pubsub in ejabberd-2.* you may encounter issues after" |
298 |
+ ewarn "migration to ${PV}. pubsub data may not be migrated automatically and" |
299 |
+ ewarn "you may need to run migration script manually, see:" |
300 |
+ ewarn |
301 |
+ ewarn " https://github.com/processone/ejabberd/issues/479#issuecomment-124497456" |
302 |
+ ewarn |
303 |
+ ewarn "In case you don't care about all stored moods, activities, geoinfo and you" |
304 |
+ ewarn "know you don't store in pubsub anything important, you can just remove" |
305 |
+ ewarn "pubsub tables:" |
306 |
+ ewarn |
307 |
+ ewarn " rm ${EROOT%/}${JABBER_SPOOL}/pubsub_*" |
308 |
+ ewarn |
309 |
+ ewarn "See also: https://bugs.gentoo.org/show_bug.cgi?id=588244" |
310 |
+ echo |
311 |
+ fi |
312 |
+ elif [[ -f ${EROOT}etc/jabber/ejabberd.cfg ]]; then |
313 |
+ elog "Ejabberd now defaults to using a YAML format for its config file." |
314 |
+ elog "The old ejabberd.cfg file can be converted using the following instructions:" |
315 |
+ echo |
316 |
+ elog "1. Make sure all processes related to the previous version of ejabberd aren't" |
317 |
+ elog " running. Usually this just means the ejabberd and epmd daemons and possibly" |
318 |
+ elog " the pam-related process (epam) if pam support is enabled." |
319 |
+ elog "2. Run \`ejabberdctl start\` with sufficient permissions. Note that this can" |
320 |
+ elog " fail to start ejabberd properly for various reasons. Check ejabberd's main" |
321 |
+ elog " log file at /var/log/jabber/ejabberd.log to confirm it started successfully." |
322 |
+ elog "3. Run" |
323 |
+ elog " \`ejabberdctl convert_to_yaml /etc/jabber/ejabberd.cfg /etc/jabber/ejabberd.yml.new\`" |
324 |
+ elog " with sufficient permissions, edit and rename /etc/jabber/ejabberd.yml.new to" |
325 |
+ elog " /etc/jabber/ejabberd.yml, and finally restart ejabberd with the new config" |
326 |
+ elog " file." |
327 |
+ echo |
328 |
+ fi |
329 |
+ |
330 |
+ if ! ejabberd_cert_exists; then |
331 |
+ ejabberd_cert_install |
332 |
+ fi |
333 |
+} |
334 |
|
335 |
diff --git a/net-im/ejabberd/files/ejabberd-17.04-ejabberdctl.patch b/net-im/ejabberd/files/ejabberd-17.04-ejabberdctl.patch |
336 |
new file mode 100644 |
337 |
index 00000000000..6001c651f5d |
338 |
--- /dev/null |
339 |
+++ b/net-im/ejabberd/files/ejabberd-17.04-ejabberdctl.patch |
340 |
@@ -0,0 +1,62 @@ |
341 |
+From 185923a3c5f11c2d29599416a52b6594bc94d8c9 Mon Sep 17 00:00:00 2001 |
342 |
+From: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= <aidecoe@×××××××.name> |
343 |
+Date: Mon, 29 Aug 2016 22:29:41 +0100 |
344 |
+Subject: [PATCH] Adjust ejabberdctl for Gentoo jabberbase setup |
345 |
+ |
346 |
+Set SHELL since the generic jabber user used on Gentoo for jabber |
347 |
+servers doesn't have a valid shell set by default and fix EXEC_CMD |
348 |
+otherwise it fails with "This account is currently not available" again |
349 |
+due to jabber not having a valid shell. |
350 |
+ |
351 |
+Also, workaround the assumption that jabber's $HOME is a directory when |
352 |
+instead it defaults to /dev/null on Gentoo. |
353 |
+--- |
354 |
+ ejabberdctl.template | 8 ++++++-- |
355 |
+ 1 file changed, 6 insertions(+), 2 deletions(-) |
356 |
+ |
357 |
+diff --git a/ejabberdctl.template b/ejabberdctl.template |
358 |
+index 5b34ebe..3c080fd 100755 |
359 |
+--- a/ejabberdctl.template |
360 |
++++ b/ejabberdctl.template |
361 |
+@@ -16,6 +16,7 @@ IEX={{bindir}}/iex |
362 |
+ EPMD={{epmd}} |
363 |
+ INSTALLUSER={{installuser}} |
364 |
+ ERL_LIBS={{libdir}} |
365 |
++SHELL=/bin/sh |
366 |
+ |
367 |
+ # check the proper system user is used if defined |
368 |
+ if [ "$INSTALLUSER" != "" ] ; then |
369 |
+@@ -23,11 +24,11 @@ if [ "$INSTALLUSER" != "" ] ; then |
370 |
+ for GID in `id -G`; do |
371 |
+ if [ $GID -eq 0 ] ; then |
372 |
+ INSTALLUSER_HOME=$(getent passwd "$INSTALLUSER" | cut -d: -f6) |
373 |
+- if [ -n "$INSTALLUSER_HOME" ] && [ ! -d "$INSTALLUSER_HOME" ] ; then |
374 |
++ if [ -n "$INSTALLUSER_HOME" ] && [ ! -e "$INSTALLUSER_HOME" ] ; then |
375 |
+ mkdir -p "$INSTALLUSER_HOME" |
376 |
+ chown "$INSTALLUSER" "$INSTALLUSER_HOME" |
377 |
+ fi |
378 |
+- EXEC_CMD="su $INSTALLUSER -c" |
379 |
++ EXEC_CMD="su $INSTALLUSER -p -c" |
380 |
+ fi |
381 |
+ done |
382 |
+ if [ `id -g` -eq `id -g $INSTALLUSER` ] ; then |
383 |
+@@ -91,6 +92,7 @@ EJABBERD_LOG_PATH=$LOGS_DIR/ejabberd.log |
384 |
+ DATETIME=`date "+%Y%m%d-%H%M%S"` |
385 |
+ ERL_CRASH_DUMP=$LOGS_DIR/erl_crash_$DATETIME.dump |
386 |
+ ERL_INETRC=$ETC_DIR/inetrc |
387 |
++HOME=$SPOOL_DIR |
388 |
+ |
389 |
+ # define mnesia options |
390 |
+ MNESIA_OPTS="-mnesia dir \"\\\"$SPOOL_DIR\\\"\" $MNESIA_OPTIONS" |
391 |
+@@ -149,6 +151,8 @@ export ERL_MAX_ETS_TABLES |
392 |
+ export CONTRIB_MODULES_PATH |
393 |
+ export CONTRIB_MODULES_CONF_DIR |
394 |
+ export ERL_LIBS |
395 |
++export HOME |
396 |
++export SHELL |
397 |
+ |
398 |
+ shell_escape_str() |
399 |
+ { |
400 |
+-- |
401 |
+2.9.2 |
402 |
+ |