summaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
Diffstat (limited to 'net-im')
-rw-r--r--net-im/ejabberd/Manifest12
-rw-r--r--net-im/ejabberd/ejabberd-1.1.1-r1.ebuild131
-rw-r--r--net-im/ejabberd/files/digest-ejabberd-1.1.1-r13
-rw-r--r--net-im/ejabberd/files/mod_presence.diff.gzbin0 -> 46392 bytes
4 files changed, 146 insertions, 0 deletions
diff --git a/net-im/ejabberd/Manifest b/net-im/ejabberd/Manifest
new file mode 100644
index 00000000..340a8b4a
--- /dev/null
+++ b/net-im/ejabberd/Manifest
@@ -0,0 +1,12 @@
+AUX mod_presence.diff.gz 46392 RMD160 2cac587223b53a07c4b17cd49047e2e68ee8122e SHA1 bfff32599160dd3a6bc340743bd55fedca2a64ea SHA256 8c3e39fd87b77fb928f801eb4241cdbacc28c8891097a4cee8ea1c962f20f1b2
+MD5 13316805ef6031854a78272e9aeadd27 files/mod_presence.diff.gz 46392
+RMD160 2cac587223b53a07c4b17cd49047e2e68ee8122e files/mod_presence.diff.gz 46392
+SHA256 8c3e39fd87b77fb928f801eb4241cdbacc28c8891097a4cee8ea1c962f20f1b2 files/mod_presence.diff.gz 46392
+DIST ejabberd-1.1.1.tar.gz 803278 RMD160 b9c0b7ab3fe1f1b2dce52e1460bba04b313ea534 SHA1 4f23d787afe75c7c866decdff6f539195449776e SHA256 52a97275537073066bd352f5718954f6994b272d1efa51187e17edf0c9b11082
+EBUILD ejabberd-1.1.1-r1.ebuild 3485 RMD160 5737526c1ea3861b72ebb9d4f5747005904c020d SHA1 65df839141c22bc6901fdcda809a9cbe13e48eb8 SHA256 05b8d8aad195d74b3fa0efb63b6c2b1affe06c86bf8050c44222ea9696d76ec3
+MD5 5a7c07dfb6dd9d37c7b1634e342d80a9 ejabberd-1.1.1-r1.ebuild 3485
+RMD160 5737526c1ea3861b72ebb9d4f5747005904c020d ejabberd-1.1.1-r1.ebuild 3485
+SHA256 05b8d8aad195d74b3fa0efb63b6c2b1affe06c86bf8050c44222ea9696d76ec3 ejabberd-1.1.1-r1.ebuild 3485
+MD5 87c80474a3cbcdf51830a748a411f0f4 files/digest-ejabberd-1.1.1-r1 244
+RMD160 bdb61a1e0dd65fa91775a5f3b7c7516dc65bd8ff files/digest-ejabberd-1.1.1-r1 244
+SHA256 d3659c3dbc43cf807fb7309da84ba62393e9257a7a16a3305621ee60f97378a6 files/digest-ejabberd-1.1.1-r1 244
diff --git a/net-im/ejabberd/ejabberd-1.1.1-r1.ebuild b/net-im/ejabberd/ejabberd-1.1.1-r1.ebuild
new file mode 100644
index 00000000..0d8b418e
--- /dev/null
+++ b/net-im/ejabberd/ejabberd-1.1.1-r1.ebuild
@@ -0,0 +1,131 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ejabberd-1.1.1.ebuild,v 1.2 2006/08/01 04:26:09 tsunam Exp $
+
+inherit eutils multilib ssl-cert versionator
+
+JABBER_ETC="/etc/jabber"
+JABBER_RUN="/var/run/jabber"
+JABBER_SPOOL="/var/spool/jabber"
+JABBER_LOG="/var/log/jabber"
+
+DESCRIPTION="The Erlang Jabber Daemon"
+HOMEPAGE="http://ejabberd.jabber.ru/"
+SRC_URI="http://process-one.net/en/projects/${PN}/download/${PV}/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ~amd64"
+IUSE="mod_irc mod_muc mod_pubsub mod_presence ldap odbc web"
+
+DEPEND=">=net-im/jabber-base-0.01
+ >=dev-libs/expat-1.95
+ >=dev-lang/erlang-10.2.0
+ odbc? ( dev-db/unixODBC )
+ ldap? ( =net-nds/openldap-2* )"
+
+PROVIDE="virtual/jabber-server"
+S=${WORKDIR}/${P}/src
+
+src_unpack() {
+ unpack ${A}
+
+ if use mod_presence; then
+ cd ${S}/..
+ unpack ${FILEDIR}/mod_presence.diff.gz
+ epatch mod_presence.diff
+ fi
+}
+
+src_compile() {
+ econf ${myconf} \
+ $(use_enable mod_irc) \
+ $(use_enable ldap eldap) \
+ $(use_enable mod_muc) \
+ $(use_enable mod_pubsub) \
+ $(use_enable ssl tls) \
+ $(use_enable web) \
+ $(use_enable odbc) \
+ || die "econf failed"
+
+ emake || die "compiling ejabberd core failed"
+}
+
+src_install() {
+ make \
+ DESTDIR=${D} \
+ EJABBERDDIR=${D}/usr/$(get_libdir)/erlang/lib/${P} \
+ ETCDIR=${D}${JABBER_ETC} \
+ LOGDIR=${D}${JABBER_LOG} \
+ install \
+ || die "install failed"
+
+ insinto /usr/share/doc/${PF}
+ cd ${S}/..
+ dodoc doc/release_notes_${PV}.txt
+ dohtml doc/*.{html,png}
+
+ #
+ # Create /usr/bin/ejabberd
+ #
+ cat <<EOF > ${T}/ejabberd
+#!/bin/bash
+
+erl -pa /usr/$(get_libdir)/erlang/lib/${P}/ebin \\
+ ${pa} \\
+ -sname ejabberd \\
+ -s ejabberd \\
+ -ejabberd config \"${JABBER_ETC}/ejabberd.cfg\" \\
+ log_path \"${JABBER_LOG}/ejabberd.log\" \\
+ -kernel inetrc \"${JABBER_ETC}/inetrc\" \\
+ -sasl sasl_error_logger \{file,\"${JABBER_LOG}/sasl.log\"\} \\
+ -mnesia dir \"${JABBER_SPOOL}\" \\
+ \$@
+EOF
+
+ #
+ # Create /usr/bin/ejabberdctl
+ #
+ cat <<EOF > ${T}/ejabberdctl
+#!/bin/sh
+
+exec env HOME=${JABBER_RUN} \\
+ erl -pa /usr/$(get_libdir)/erlang/lib/${P}/ebin \\
+ ${pa} \\
+ -noinput \\
+ -sname ejabberdctl \\
+ -s ejabberd_ctl \\
+ -extra \$@
+EOF
+
+ dobin ${T}/ejabberdctl
+ dobin ${T}/ejabberd
+
+ newinitd ${FILESDIR}/${P}.initd ${PN}
+ newconfd ${FILESDIR}/${P}.confd ${PN}
+
+ insinto ${JABBER_ETC}
+ if use ssl; then
+ docert ssl
+ rm -f ${D}${JABBER_ETC}/ssl.{crt,csr,key}
+ fowners jabber:jabber ${JABBER_ETC}/ssl.pem
+ fi
+ doins ${FILESDIR}/inetrc
+}
+
+pkg_postinst() {
+ if [ ! -e ${JABBER_ETC}/ejabberd.cfg ]
+ then
+ einfo "Configuration file has been installed in ${JABBER_ETC}/ejabberd.cfg."
+ einfo "Edit it according to your needs. For configuration instructions,"
+ einfo "please see /usr/share/doc/${PF}/html/guide.html"
+ fi
+ if use ssl ; then
+ einfo "A script to generate a ssl key has been installed in"
+ einfo "${JABBER_ETC}/self-cert.sh . Use it and change the config file to"
+ einfo "point to the full path"
+ fi
+ if ! use web ; then
+ einfo "The web USE flag is off, this will disable the web admin interface,"
+ einfo "if this was not the intention then add web to your USE flags."
+ fi
+}
diff --git a/net-im/ejabberd/files/digest-ejabberd-1.1.1-r1 b/net-im/ejabberd/files/digest-ejabberd-1.1.1-r1
new file mode 100644
index 00000000..fdeac323
--- /dev/null
+++ b/net-im/ejabberd/files/digest-ejabberd-1.1.1-r1
@@ -0,0 +1,3 @@
+MD5 ef6fae4a3f9c7f807f21e9cd3dae195b ejabberd-1.1.1.tar.gz 803278
+RMD160 b9c0b7ab3fe1f1b2dce52e1460bba04b313ea534 ejabberd-1.1.1.tar.gz 803278
+SHA256 52a97275537073066bd352f5718954f6994b272d1efa51187e17edf0c9b11082 ejabberd-1.1.1.tar.gz 803278
diff --git a/net-im/ejabberd/files/mod_presence.diff.gz b/net-im/ejabberd/files/mod_presence.diff.gz
new file mode 100644
index 00000000..1567371a
--- /dev/null
+++ b/net-im/ejabberd/files/mod_presence.diff.gz
Binary files differ