mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-24 05:53:30 +08:00
c000e858e6
and update the two patches accordingly. Ejabberd now uses rebar3 by default, so use the --with-rebar configure option to set the correct rebar binary to use. Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com> [yann.morin.1998@free.fr: update .checkpackageignore] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
69 lines
2.2 KiB
Makefile
69 lines
2.2 KiB
Makefile
################################################################################
|
|
#
|
|
# ejabberd
|
|
#
|
|
################################################################################
|
|
|
|
EJABBERD_VERSION = 24.07
|
|
EJABBERD_SITE = https://static.process-one.net/ejabberd/downloads/$(EJABBERD_VERSION)
|
|
EJABBERD_LICENSE = GPL-2.0+ with OpenSSL exception
|
|
EJABBERD_LICENSE_FILES = COPYING
|
|
EJABBERD_CPE_ID_VENDOR = process-one
|
|
EJABBERD_DEPENDENCIES = getent openssl erlang-eimp host-erlang-lager \
|
|
erlang-lager erlang-p1-cache-tab erlang-p1-sip \
|
|
erlang-p1-stringprep erlang-stun erlang-p1-tls \
|
|
erlang-p1-utils erlang-fast-xml erlang-xmpp erlang-fast-yaml \
|
|
erlang-p1-zlib host-erlang-p1-utils host-erlang-xmpp
|
|
|
|
# 0001-Makefile.in-do-not-download-or-compile-dependencies.patch
|
|
# updates Makefile.in
|
|
EJABBERD_USE_AUTOCONF = YES
|
|
EJABBERD_AUTORECONF = YES
|
|
|
|
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
|
|
EJABBERD_DEPENDENCIES += linux-pam
|
|
endif
|
|
|
|
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)="`$(EJABBERD_CHECK_LIB) $(lib)`")
|
|
|
|
EJABBERD_CONF_OPTS = \
|
|
--enable-system-deps \
|
|
--disable-erlang-version-check \
|
|
--with-rebar="$(HOST_DIR)/bin/rebar"
|
|
|
|
define EJABBERD_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) all install -C $(@D)
|
|
endef
|
|
|
|
# Replace HOST_DIR prefix to /usr in environment variables of
|
|
# ejabberctl script.
|
|
define EJABBERD_FIX_EJABBERDCTL
|
|
$(SED) 's,="$(HOST_DIR),="/usr,' '$(TARGET_DIR)/usr/sbin/ejabberdctl'
|
|
endef
|
|
|
|
EJABBERD_POST_INSTALL_TARGET_HOOKS += EJABBERD_FIX_EJABBERDCTL
|
|
|
|
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
|
|
endef
|
|
|
|
$(eval $(rebar-package))
|