summaryrefslogtreecommitdiffstats
path: root/packages/net-im/ejabberd/ejabberd.exlib
blob: 0329f4861c52f52141dd9e93a1ef9184ac5ce0ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Copyright 2011 Quentin "Sardem FF7" Glidic <sardemff7+exherbo@sardemff7.net>
# Distributed under the terms of the GNU General Public License v2

if ever is_scm; then
    SCM_REPOSITORY="git://git.process-one.net/${PN}/mainline.git"
    require scm-git
fi

require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.11 ] ] systemd-service

if ever is_scm; then
    DOWNLOADS=""
else
    DOWNLOADS="http://www.process-one.net/downloads/${PN}/${PV}/${PNV}.tar.gz"
fi

SLOT="0"

HOMEPAGE="http://www.process-one.net/en/ejabberd/"

LICENCES="EPL-1.1"

SUMMARY="A scalable and reliable platform for instant messaging"

DESCRIPTION="
ejabberd is a distributed, fault-tolerant technology that allows the creation of large-scale
instant messaging applications. The server can reliably support thousands of simultaneous users
on a single node and has been designed to provide exceptional standards of fault tolerance. As
an open source technology, based on industry-standards, ejabberd can be used to build bespoke
solutions very cost effectively
"

DEPENDENCIES="
    build+run:
        dev-erlang/exmpp
        dev-lang/erlang
        dev-libs/openssl
    run:
        user/ejabberd
        group/ejabberd
        postgresql? ( dev-erlang/pgsql )
"

MYOPTIONS="postgresql"


WORK="${WORK}"/src

DEFAULT_SRC_CONFIGURE_PARAMS=(
    --localstatedir=/var
    --enable-user=ejabberd
    --enable-odbc
)

src_install() {
    default

    keepdir /var/lib/ejabberd
    keepdir /var/log/ejabberd
    edo rmdir "${IMAGE}"/var/lock/ejabberdctl
    edo rmdir "${IMAGE}"/var/lock

    install_systemd_files
}