• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/ejabberd/ejabberd.mk
Arnout VandecappelleArnout Vandecappelle committed 7d69a79624b12 Jul 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# ejabberd
4
#
5
################################################################################
6
​
7
EJABBERD_VERSION = 15.06
8
EJABBERD_SITE = $(call github,processone,ejabberd,$(EJABBERD_VERSION))
9
EJABBERD_LICENSE = GPLv2+ with OpenSSL exception
10
EJABBERD_LICENSE_FILES = COPYING
11
EJABBERD_DEPENDENCIES = getent openssl host-erlang-lager erlang-lager \
12
    erlang-p1-cache-tab erlang-p1-iconv erlang-p1-sip \
13
    erlang-p1-stringprep erlang-p1-xml erlang-p1-yaml erlang-p1-zlib
14
​
15
EJABBERD_USE_AUTOCONF = YES
16
EJABBERD_AUTORECONF = YES
17
​
18
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
19
EJABBERD_DEPENDENCIES += linux-pam
20
endif
21
​
22
EJABBERD_ERLANG_LIBS = sasl crypto public_key ssl mnesia inets compiler
23
​
24
# Guess answers for these tests, configure will bail out otherwise
25
# saying error: cannot run test program while cross compiling.
26
EJABBERD_CONF_ENV = \
27
    ac_cv_erlang_root_dir="$(HOST_DIR)/usr/lib/erlang" \
28
    $(foreach lib,$(EJABBERD_ERLANG_LIBS), \
29
        ac_cv_erlang_lib_dir_$(lib)="`package/ejabberd/check-erlang-lib $(lib)`")
30
​
31
define EJABBERD_INSTALL_TARGET_CMDS
32
    $(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) install -C $(@D)
33
endef
34
​
35
# Delete HOST_DIR prefix from ERL path in ejabberctl script.
36
define EJABBERD_FIX_EJABBERDCTL
37
    $(SED) 's,ERL=$(HOST_DIR),ERL=,' '$(TARGET_DIR)/usr/sbin/ejabberdctl'
38
endef
39
​
40
EJABBERD_POST_INSTALL_TARGET_HOOKS += EJABBERD_FIX_EJABBERDCTL
41
​
42
define EJABBERD_USERS
43
    ejabberd -1 ejabberd -1 * /var/lib/ejabberd /bin/sh - ejabberd daemon
44
endef
45
​
46
define EJABBERD_INSTALL_INIT_SYSV
47
    $(INSTALL) -D -m 0755 package/ejabberd/S50ejabberd \
48
        $(TARGET_DIR)/etc/init.d/S50ejabberd
49
endef
50
​
51
$(eval $(rebar-package))
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.