summaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorGustavo Felisberto <humpback@gentoo.org>2005-04-08 20:02:35 +0000
committerGustavo Felisberto <humpback@gentoo.org>2005-04-08 20:02:35 +0000
commita54aedbaf28f5ae50c1a741a93d234a6e9c1b45c (patch)
treed343fac608618fef761b0d75f80cb206424822a2 /net-im
parentMarked stable on amd64. (diff)
downloadhistorical-a54aedbaf28f5ae50c1a741a93d234a6e9c1b45c.tar.gz
historical-a54aedbaf28f5ae50c1a741a93d234a6e9c1b45c.tar.bz2
historical-a54aedbaf28f5ae50c1a741a93d234a6e9c1b45c.zip
initial import
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'net-im')
-rw-r--r--net-im/ejabberd/ChangeLog12
-rw-r--r--net-im/ejabberd/Manifest19
-rw-r--r--net-im/ejabberd/ejabberd-0.7.5.ebuild90
-rw-r--r--net-im/ejabberd/files/digest-ejabberd-0.7.51
-rw-r--r--net-im/ejabberd/files/ejabberd11
-rw-r--r--net-im/ejabberd/files/ejabberd-0.7.5.confd17
-rw-r--r--net-im/ejabberd/files/ejabberd-0.7.5.initd60
-rw-r--r--net-im/ejabberd/files/ejabberdctl8
-rw-r--r--net-im/ejabberd/files/inetrc1
-rw-r--r--net-im/ejabberd/metadata.xml10
10 files changed, 229 insertions, 0 deletions
diff --git a/net-im/ejabberd/ChangeLog b/net-im/ejabberd/ChangeLog
new file mode 100644
index 000000000000..03400868523e
--- /dev/null
+++ b/net-im/ejabberd/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for net-im/ejabberd
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ChangeLog,v 1.1 2005/04/08 20:02:35 humpback Exp $
+
+*ejabberd-0.7.5 (08 Apr 2005)
+
+ 08 Apr 2005; Gustavo Felisberto <humpback@gentoo.org>; +files/ejabberd,
+ +files/ejabberd-0.7.5.confd, +files/ejabberd-0.7.5.initd,
+ +files/ejabberdctl, +files/inetrc, +ejabberd-0.7.5.ebuild:
+ Initial import. This is masked for a reason :) if you have problems bug #63472
+ is your friend.
+
diff --git a/net-im/ejabberd/Manifest b/net-im/ejabberd/Manifest
new file mode 100644
index 000000000000..561cc08ccc98
--- /dev/null
+++ b/net-im/ejabberd/Manifest
@@ -0,0 +1,19 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 351f8b0da8f4872ba69f58557c54479f ChangeLog 531
+MD5 a36fd15cc7c89a482e9008cd2d4ab04f ejabberd-0.7.5.ebuild 2555
+MD5 4d142ea790d97a89bdcc4325d5e3b301 metadata.xml 383
+MD5 ca45e90d16657bc09537ea6653f30678 files/digest-ejabberd-0.7.5 66
+MD5 1cecdb28cdc7fdae6bf9aa53f9309d5c files/ejabberd 355
+MD5 7348d713e30c148b3208edf8e24d6ae5 files/ejabberd-0.7.5.confd 777
+MD5 05303550f9d7d3ef661e7a837ba6c818 files/ejabberd-0.7.5.initd 1376
+MD5 8379adf159d3d5749af973fe74d23367 files/ejabberdctl 199
+MD5 e088cd52d4316efddc54195dc939cd24 files/inetrc 36
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFCVuM18zY1VwezZiERAnVYAJ9w32ajYci6IPXk4p2opS1OM/S64QCgoOU+
+TbjlJeQxLaNm6BnP79PJYOY=
+=Jayg
+-----END PGP SIGNATURE-----
diff --git a/net-im/ejabberd/ejabberd-0.7.5.ebuild b/net-im/ejabberd/ejabberd-0.7.5.ebuild
new file mode 100644
index 000000000000..d4e791d3d0e1
--- /dev/null
+++ b/net-im/ejabberd/ejabberd-0.7.5.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ejabberd-0.7.5.ebuild,v 1.1 2005/04/08 20:02:35 humpback Exp $
+
+inherit eutils
+
+DESCRIPTION="The Erlang Jabber Daemon"
+HOMEPAGE="http://ejabberd.jabber.ru/"
+#Mirror from jabberstudio is a pain
+SRC_URI="http://www.gentoo-pt.org/~humpback/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~sparc"
+IUSE="mod_pubsub mod_irc mod_muc ldap web ssl"
+
+DEPEND=">=dev-libs/expat-1.95
+ >=dev-lang/erlang-8b
+ ssl? ( >=dev-libs/openssl-0.9.6 )"
+PROVIDE="virtual/jabber-server"
+
+S=${WORKDIR}/${P}/src
+
+src_compile() {
+ local myconf
+
+ use mod_pubsub || myconf="--disable-mod_pubsub"
+ use mod_irc || myconf="${myconf} --disable-mod_irc"
+ use mod_muc || myconf="${myconf} --disable-mod_muc"
+ use ldap || myconf="${myconf} --disable-eldap"
+ use web || myconf="${myconf} --disable-web"
+ use ssl || myconf="${myconf} --disable-tls"
+
+ econf ${myconf} || die
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ enewgroup jabber
+ enewuser ejabberd -1 /bin/false /var/run/ejabberd jabber
+
+ make DESTDIR=${D} install || die "install failed"
+
+ # This configuration file contains configurations for all modules,
+ # including ones that were potentially not built due to USE flags,
+ # so we'll have to move it out of the way so it isn't accidentally
+ # used.
+ mv ${D}/etc/ejabberd/ejabberd.cfg ${D}/etc/ejabberd/ejabberd.cfg.example
+
+ # Database
+ dodir /var/spool/ejabberd
+ fowners ejabberd:jabber /var/spool/ejabberd
+
+ # Home
+ dodir /var/run/ejabberd
+ fowners ejabber:jabber /var/run/ejabberd
+
+ # Logs
+ dodir /var/log/ejabberd
+ fowners ejabber:jabber /var/log/ejabberd
+
+ cd ..
+ dodoc doc/*.tex
+ dohtml doc/*.html
+ dohtml doc/*.png
+
+ dobin ${FILESDIR}/ejabberdctl
+ dobin ${FILESDIR}/ejabberd
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/ejabberd-0.7.5.initd ejabberd
+
+ insinto /etc/conf.d
+ newins ${FILESDIR}/ejabberd-0.7.5.confd ejabberd
+
+ # This file is required to make ejabberd use SRV records for
+ # server-to-server connections, according to
+ # <URL:http://lists.jabber.ru/pipermail/ejabberd/2005-March/000829.html>
+ insinto /etc/ejabberd
+ doins ${FILESDIR}/inetrc
+}
+
+pkg_postinst() {
+ if [ ! -e /etc/ejabberd/ejabberd.cfg ]
+ then
+ einfo "A sample configuration file has been installed in /etc/ejabberd/ejabberd.cfg.example."
+ einfo "Please copy it to /etc/ejabberd/ejabberd.cfg and edit it according to your needs."
+ einfo "For configuration instructions, please see /usr/share/doc/${P}/html/guide.html"
+ fi
+}
diff --git a/net-im/ejabberd/files/digest-ejabberd-0.7.5 b/net-im/ejabberd/files/digest-ejabberd-0.7.5
new file mode 100644
index 000000000000..055b2419dcdd
--- /dev/null
+++ b/net-im/ejabberd/files/digest-ejabberd-0.7.5
@@ -0,0 +1 @@
+MD5 c9f900ed535cb446e8b567048514c705 ejabberd-0.7.5.tar.gz 410451
diff --git a/net-im/ejabberd/files/ejabberd b/net-im/ejabberd/files/ejabberd
new file mode 100644
index 000000000000..2bc1ddf1d93f
--- /dev/null
+++ b/net-im/ejabberd/files/ejabberd
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+erl -pa /var/lib/ejabberd/ebin \
+ -sname ejabberd \
+ -s ejabberd \
+ -ejabberd config \"/etc/ejabberd/ejabberd.cfg\" \
+ -kernel inetrc \"/etc/ejabberd/inetrc\" \
+ log_path \"/var/log/ejabberd/ejabberd.log\" \
+ -sasl sasl_error_logger \{file,\"/var/log/ejabberd/sasl.log\"\} \
+ -mnesia dir \"/var/spool/ejabberd\" \
+ $@
diff --git a/net-im/ejabberd/files/ejabberd-0.7.5.confd b/net-im/ejabberd/files/ejabberd-0.7.5.confd
new file mode 100644
index 000000000000..5377b59dfbf2
--- /dev/null
+++ b/net-im/ejabberd/files/ejabberd-0.7.5.confd
@@ -0,0 +1,17 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-0.7.5.confd,v 1.1 2005/04/08 20:02:35 humpback Exp $
+
+# Name of your ejabberd node. Used by ejabberdctl to determine which
+# node to communicate with. Default is "ejabberd@`hostname -s`".
+#EJABBERD_NODE="ejabberd@`hostname -s`"
+
+# Max number of open network connections. Default is 1024. Increasing
+# this will slightly increase memory usage.
+#ERL_MAX_PORTS=1024
+
+# Return memory to the system after using it, instead of keeping it
+# allocated for future use. Decreases the memory required by ejabberd,
+# but makes it run slower. Default is unset, set to any value to
+# activate.
+#ERL_FULLSWEEP_AFTER=0
diff --git a/net-im/ejabberd/files/ejabberd-0.7.5.initd b/net-im/ejabberd/files/ejabberd-0.7.5.initd
new file mode 100644
index 000000000000..06a4fbaec184
--- /dev/null
+++ b/net-im/ejabberd/files/ejabberd-0.7.5.initd
@@ -0,0 +1,60 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-0.7.5.initd,v 1.1 2005/04/08 20:02:35 humpback Exp $
+
+opts="${opts} reload"
+
+depend() {
+ use dns
+ need net
+ provide jabber-server
+}
+
+checkconfig() {
+ if [ ! -e /etc/ejabberd/ejabberd.cfg ] ; then
+ eerror "You need an /etc/ejabberd/ejabberd.cfg file to run ejabberd"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting eJabberd"
+ start-stop-daemon --start --quiet --chuid ejabberd:ejabberd \
+ --exec /usr/bin/env HOME=/var/run/ejabberd /usr/bin/ejabberd -- -noshell -detached
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping eJabberd"
+ if [ -z "$EJABBERD_NODE" ];
+ then
+ EJABBERD_NODE="ejabberd@`hostname -s`"
+ fi
+ /usr/bin/ejabberdctl $EJABBERD_NODE stop
+ eend $?
+}
+
+# Work around a bug in /sbin/runscript.sh - it won't run our custom
+# restart() unless it finds these two strings in the file.
+# svc_start svc_stop
+restart() {
+ ebegin "Restarting eJabberd"
+ if [ -z "$EJABBERD_NODE" ];
+ then
+ EJABBERD_NODE="ejabberd@`hostname -s`"
+ fi
+ /usr/bin/ejabberdctl $EJABBERD_NODE restart
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading eJabberd"
+ if [ -z "$EJABBERD_NODE" ];
+ then
+ EJABBERD_NODE="ejabberd@`hostname -s`"
+ fi
+ /usr/bin/ejabberdctl $EJABBERD_NODE reopen-log
+ eend $?
+}
diff --git a/net-im/ejabberd/files/ejabberdctl b/net-im/ejabberd/files/ejabberdctl
new file mode 100644
index 000000000000..a3a18245e992
--- /dev/null
+++ b/net-im/ejabberd/files/ejabberdctl
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+exec env HOME=/var/run/ejabberd \
+ erl -pa /var/lib/ejabberd/ebin \
+ -noinput \
+ -sname ejabberdctl \
+ -s ejabberd_ctl \
+ -extra $@
diff --git a/net-im/ejabberd/files/inetrc b/net-im/ejabberd/files/inetrc
new file mode 100644
index 000000000000..2d2f63575c2e
--- /dev/null
+++ b/net-im/ejabberd/files/inetrc
@@ -0,0 +1 @@
+{file, resolv, "/etc/resolv.conf"}.
diff --git a/net-im/ejabberd/metadata.xml b/net-im/ejabberd/metadata.xml
new file mode 100644
index 000000000000..18e509192eb5
--- /dev/null
+++ b/net-im/ejabberd/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+<herd>net-im</herd>
+<maintainer>
+ <email>humpback@gentoo.org</email>
+</maintainer>
+<longdescription> Free and Open Source distributed fault-tolerant Jabber server. It's mostly written in Erlang, and works on many platforms.</longdescription>
+</pkgmetadata>