summaryrefslogtreecommitdiffstats
path: root/packages/net-im/ejabberd/ejabberd.exlib
diff options
context:
space:
mode:
Diffstat (limited to 'packages/net-im/ejabberd/ejabberd.exlib')
-rw-r--r--packages/net-im/ejabberd/ejabberd.exlib64
1 files changed, 64 insertions, 0 deletions
diff --git a/packages/net-im/ejabberd/ejabberd.exlib b/packages/net-im/ejabberd/ejabberd.exlib
new file mode 100644
index 0000000..0329f48
--- /dev/null
+++ b/packages/net-im/ejabberd/ejabberd.exlib
@@ -0,0 +1,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
+}