2015-01-12 10:32:20 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# ejabberd
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-01-06 17:11:14 +01:00
|
|
|
EJABBERD_VERSION = 19.09.1
|
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)
|
2017-03-30 15:43:32 +02:00
|
|
|
EJABBERD_LICENSE = GPL-2.0+ with OpenSSL exception
|
2015-01-12 10:32:20 +01:00
|
|
|
EJABBERD_LICENSE_FILES = COPYING
|
2020-01-06 17:11:14 +01:00
|
|
|
EJABBERD_DEPENDENCIES = getent openssl erlang-eimp host-erlang-lager \
|
|
|
|
erlang-lager erlang-p1-cache-tab erlang-p1-sip \
|
2017-06-06 16:33:11 +02:00
|
|
|
erlang-p1-stringprep erlang-p1-stun erlang-p1-tls \
|
|
|
|
erlang-p1-utils erlang-p1-xml erlang-p1-xmpp erlang-p1-yaml \
|
|
|
|
erlang-p1-zlib host-erlang-p1-utils host-erlang-p1-xmpp
|
2015-01-12 10:32:20 +01:00
|
|
|
|
2016-02-21 23:00:10 +01:00
|
|
|
# 0001-remove-make-targets-for-deps.patch updates Makefile.in
|
2015-01-12 10:32:20 +01:00
|
|
|
EJABBERD_USE_AUTOCONF = YES
|
|
|
|
EJABBERD_AUTORECONF = YES
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
|
|
|
|
EJABBERD_DEPENDENCIES += linux-pam
|
|
|
|
endif
|
|
|
|
|
2018-01-19 17:29:31 +01:00
|
|
|
EJABBERD_ERLANG_LIBS = sasl public_key mnesia inets compiler
|
2015-01-12 10:32:20 +01:00
|
|
|
|
|
|
|
# Guess answers for these tests, configure will bail out otherwise
|
|
|
|
# saying error: cannot run test program while cross compiling.
|
2018-02-13 14:27:11 +01:00
|
|
|
EJABBERD_CHECK_LIB = $(TOPDIR)/$(EJABBERD_PKGDIR)/check-erlang-lib
|
2015-01-12 10:32:20 +01:00
|
|
|
EJABBERD_CONF_ENV = \
|
2017-07-05 13:14:21 +02:00
|
|
|
ac_cv_erlang_root_dir="$(HOST_DIR)/lib/erlang" \
|
2015-01-12 10:32:20 +01:00
|
|
|
$(foreach lib,$(EJABBERD_ERLANG_LIBS), \
|
2018-02-13 14:27:11 +01:00
|
|
|
ac_cv_erlang_lib_dir_$(lib)="`$(EJABBERD_CHECK_LIB) $(lib)`")
|
2018-01-19 17:29:31 +01:00
|
|
|
|
|
|
|
EJABBERD_CONF_OPTS = \
|
|
|
|
--enable-system-deps \
|
2018-11-26 12:08:07 +01:00
|
|
|
--disable-erlang-version-check
|
2015-01-12 10:32:20 +01:00
|
|
|
|
|
|
|
define EJABBERD_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) install -C $(@D)
|
|
|
|
endef
|
|
|
|
|
2018-01-19 17:29:31 +01:00
|
|
|
# Replace HOST_DIR prefix to /usr in environment variables of
|
|
|
|
# ejabberctl script.
|
2015-01-12 10:32:20 +01:00
|
|
|
define EJABBERD_FIX_EJABBERDCTL
|
2018-01-19 17:29:31 +01:00
|
|
|
$(SED) 's,="$(HOST_DIR),="/usr,' '$(TARGET_DIR)/usr/sbin/ejabberdctl'
|
2015-01-12 10:32:20 +01:00
|
|
|
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
|
|
|
|
|
2018-11-26 12:08:07 +01:00
|
|
|
define EJABBERD_PERMISSIONS
|
|
|
|
/etc/ejabberd r 750 root ejabberd - - - - -
|
2018-12-05 17:11:31 +01:00
|
|
|
/usr/sbin/ejabberdctl f 750 root ejabberd - - - - -
|
2018-11-26 12:08:07 +01:00
|
|
|
endef
|
|
|
|
|
2015-01-12 10:32:20 +01:00
|
|
|
define EJABBERD_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 0755 package/ejabberd/S50ejabberd \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S50ejabberd
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(rebar-package))
|