2015-01-12 10:32:20 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# ejabberd
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-02-21 23:00:09 +01:00
|
|
|
EJABBERD_VERSION = 16.01
|
2015-10-13 12:04:36 +02:00
|
|
|
EJABBERD_SOURCE = ejabberd-$(EJABBERD_VERSION).tgz
|
|
|
|
EJABBERD_SITE = https://www.process-one.net/downloads/ejabberd/$(EJABBERD_VERSION)
|
2015-01-12 10:32:20 +01:00
|
|
|
EJABBERD_LICENSE = GPLv2+ with OpenSSL exception
|
|
|
|
EJABBERD_LICENSE_FILES = COPYING
|
2015-07-08 11:54:14 +02:00
|
|
|
EJABBERD_DEPENDENCIES = getent openssl host-erlang-lager erlang-lager \
|
2015-01-12 10:32:20 +01:00
|
|
|
erlang-p1-cache-tab erlang-p1-iconv erlang-p1-sip \
|
|
|
|
erlang-p1-stringprep erlang-p1-xml erlang-p1-yaml erlang-p1-zlib
|
|
|
|
|
|
|
|
EJABBERD_USE_AUTOCONF = YES
|
|
|
|
EJABBERD_AUTORECONF = YES
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
|
|
|
|
EJABBERD_DEPENDENCIES += linux-pam
|
|
|
|
endif
|
|
|
|
|
|
|
|
EJABBERD_ERLANG_LIBS = sasl crypto public_key ssl mnesia inets compiler
|
|
|
|
|
|
|
|
# Guess answers for these tests, configure will bail out otherwise
|
|
|
|
# saying error: cannot run test program while cross compiling.
|
|
|
|
EJABBERD_CONF_ENV = \
|
|
|
|
ac_cv_erlang_root_dir="$(HOST_DIR)/usr/lib/erlang" \
|
|
|
|
$(foreach lib,$(EJABBERD_ERLANG_LIBS), \
|
2015-07-12 16:35:26 +02:00
|
|
|
ac_cv_erlang_lib_dir_$(lib)="`package/ejabberd/check-erlang-lib $(lib)`")
|
2015-01-12 10:32:20 +01:00
|
|
|
|
|
|
|
define EJABBERD_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) install -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
# Delete HOST_DIR prefix from ERL path in ejabberctl script.
|
|
|
|
define EJABBERD_FIX_EJABBERDCTL
|
|
|
|
$(SED) 's,ERL=$(HOST_DIR),ERL=,' '$(TARGET_DIR)/usr/sbin/ejabberdctl'
|
|
|
|
endef
|
|
|
|
|
|
|
|
EJABBERD_POST_INSTALL_TARGET_HOOKS += EJABBERD_FIX_EJABBERDCTL
|
|
|
|
|
|
|
|
define EJABBERD_USERS
|
2015-06-18 08:10:21 +02:00
|
|
|
ejabberd -1 ejabberd -1 * /var/lib/ejabberd /bin/sh - ejabberd daemon
|
2015-01-12 10:32:20 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define EJABBERD_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 0755 package/ejabberd/S50ejabberd \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S50ejabberd
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(rebar-package))
|