diff options
-rw-r--r-- | net-im/ejabberd/Manifest | 6 | ||||
-rw-r--r-- | net-im/ejabberd/ejabberd-1.0.0.ebuild | 117 | ||||
-rw-r--r-- | net-im/ejabberd/files/digest-ejabberd-1.0.0 | 3 |
3 files changed, 126 insertions, 0 deletions
diff --git a/net-im/ejabberd/Manifest b/net-im/ejabberd/Manifest new file mode 100644 index 00000000..9296c0c9 --- /dev/null +++ b/net-im/ejabberd/Manifest @@ -0,0 +1,6 @@ +MD5 1ae910d5284bc6b4b0f40e38893f8373 ejabberd-1.0.0.ebuild 3212 +RMD160 4538c98126f42b54a07f55119e0e8960f9b5cb75 ejabberd-1.0.0.ebuild 3212 +SHA256 e6c19be3f7090afeed1bcb87ffa5c877666b5cbe8aa6d9177d8d41ea248be735 ejabberd-1.0.0.ebuild 3212 +MD5 2e4ab0224d246609ff9a118e0110d88d files/digest-ejabberd-1.0.0 244 +RMD160 8e6ee59d0854e04c188c57b00e78f58ac0253763 files/digest-ejabberd-1.0.0 244 +SHA256 f0ddc1f53d8bf517d4948caf6c1b7d7ead48939c4af6a8e7bfaec2e49be550e3 files/digest-ejabberd-1.0.0 244 diff --git a/net-im/ejabberd/ejabberd-1.0.0.ebuild b/net-im/ejabberd/ejabberd-1.0.0.ebuild new file mode 100644 index 00000000..7b0c4599 --- /dev/null +++ b/net-im/ejabberd/ejabberd-1.0.0.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils + +DESCRIPTION="The Erlang Jabber Daemon" +HOMEPAGE="http://ejabberd.jabber.ru/" +#Mirror from jabberstudio is a pain +SRC_URI="http://process-one.net/en/projects/ejabberd/download/1.0.0/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 ~amd64 ~sparc" +IUSE="irc ldap ssl odbc msn oscar yahoo icq postgres" + +DEPEND=">=dev-libs/expat-1.95 + >=dev-lang/erlang-8b + ssl? ( >=dev-libs/openssl-0.9.6 ) + ldap? ( =net-nds/openldap-2* )" +PDEPEND="msn? ( net-im/msn-transport ) + oscar? ( net-im/aim-transport ) + yahoo? ( net-im/yahoo-transport ) + icq? ( net-im/jit ) + postgres? ( dev-db/postgresql ) + odbc? ( dev-db/unixODBC )" + +PROVIDE="virtual/jabber-server" + +S=${WORKDIR}/${P}/src + +src_compile() { + local myconf + + use irc || myconf="${myconf} --disable-mod_irc" + use ldap || myconf="${myconf} --disable-eldap" + use ssl || myconf="${myconf} --disable-tls" + use odbc && myconf="${myconf} --enable-odbc" + use icq && myconf="${myconf} --enable-roster-gateway-workaround" + + econf ${myconf} || die + + emake || die "emake failed" +} + +src_install() { + + local test_group=`grep ^jabber: /etc/group | cut -d: -f1` + if [ -z $test_group ] + then + enewgroup jabber + fi + + local test_user=`grep ^jabber: /etc/passwd | cut -d: -f1` + if [ -z $test_user ] + then + enewuser ejabberd -1 -1 /var/spool/ejabberd jabber + fi + + 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 + fperms 700 /var/spool/ejabberd + + # Home + dodir /var/run/ejabberd + fowners ejabberd:jabber /var/run/ejabberd + + # Logs + dodir /var/log/ejabberd + fowners ejabberd:jabber /var/log/ejabberd + + cd .. + insinto /usr/share/doc/${PF} + doins doc/*.txt + if use postgres ; then + doins src/odbc/pg.sql + fi + dohtml doc/*.html doc/*.png + + dobin ${FILESDIR}/ejabberdctl + dobin ${FILESDIR}/ejabberd + + newinitd ${FILESDIR}/ejabberd-1.0.0.initd ejabberd + if use ssl ; then + insinto /etc/ejabberd + doins ${FILESDIR}/self-cert.sh + fi + + newconfd ${FILESDIR}/ejabberd-1.0.0.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 + if use ssl ; then + einfo "A script to generate a ssl key has been installed in" + einfo "/etc/ejabberd/self-cert.sh . Use it and change the config file to" + einfo "point to the full path" + fi +} diff --git a/net-im/ejabberd/files/digest-ejabberd-1.0.0 b/net-im/ejabberd/files/digest-ejabberd-1.0.0 new file mode 100644 index 00000000..6c935e78 --- /dev/null +++ b/net-im/ejabberd/files/digest-ejabberd-1.0.0 @@ -0,0 +1,3 @@ +MD5 bc0bfdad2e5e48e42fcc5d09384be74f ejabberd-1.0.0.tar.gz 726315 +RMD160 8a73f79bfb2e832bdf23e331760efa28b9a606a4 ejabberd-1.0.0.tar.gz 726315 +SHA256 5893fe92665fde5ad7af97c8974d39c07a3b36483be35b1f5b6d3f4ec3b6cbb4 ejabberd-1.0.0.tar.gz 726315 |