1 ################################################################################
5 ################################################################################
7 EJABBERD_VERSION
= 16.01
8 EJABBERD_SOURCE
= ejabberd-
$(EJABBERD_VERSION
).tgz
9 EJABBERD_SITE
= https
://www.process-one.net
/downloads
/ejabberd
/$(EJABBERD_VERSION
)
10 EJABBERD_LICENSE
= GPLv2
+ with OpenSSL exception
11 EJABBERD_LICENSE_FILES
= COPYING
12 EJABBERD_DEPENDENCIES
= getent openssl host-erlang-lager erlang-lager \
13 erlang-p1-cache-tab erlang-p1-iconv erlang-p1-sip \
14 erlang-p1-stringprep erlang-p1-xml erlang-p1-yaml erlang-p1-zlib
16 # 0001-remove-make-targets-for-deps.patch updates Makefile.in
17 EJABBERD_USE_AUTOCONF
= YES
18 EJABBERD_AUTORECONF
= YES
20 ifeq ($(BR2_PACKAGE_LINUX_PAM
),y
)
21 EJABBERD_DEPENDENCIES
+= linux-pam
24 EJABBERD_ERLANG_LIBS
= sasl crypto public_key ssl mnesia inets compiler
26 # Guess answers for these tests, configure will bail out otherwise
27 # saying error: cannot run test program while cross compiling.
29 ac_cv_erlang_root_dir
="$(HOST_DIR)/usr/lib/erlang" \
30 $(foreach lib
,$(EJABBERD_ERLANG_LIBS
), \
31 ac_cv_erlang_lib_dir_
$(lib
)="`package/ejabberd/check-erlang-lib $(lib)`")
33 define EJABBERD_INSTALL_TARGET_CMDS
34 $(TARGET_MAKE_ENV
) $(MAKE
) DESTDIR
=$(TARGET_DIR
) install -C
$(@D
)
37 # Delete HOST_DIR prefix from ERL path in ejabberctl script.
38 define EJABBERD_FIX_EJABBERDCTL
39 $(SED
) 's,ERL=$(HOST_DIR),ERL=,' '$(TARGET_DIR)/usr/sbin/ejabberdctl'
42 EJABBERD_POST_INSTALL_TARGET_HOOKS
+= EJABBERD_FIX_EJABBERDCTL
45 ejabberd
-1 ejabberd
-1 * /var
/lib
/ejabberd
/bin
/sh
- ejabberd daemon
48 define EJABBERD_INSTALL_INIT_SYSV
49 $(INSTALL
) -D
-m
0755 package
/ejabberd
/S50ejabberd \
50 $(TARGET_DIR
)/etc
/init.d
/S50ejabberd
53 $(eval
$(rebar-package
))