summaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorChristian Faulhammer <fauli@gentoo.org>2009-12-30 11:35:43 +0000
committerChristian Faulhammer <fauli@gentoo.org>2009-12-30 11:35:43 +0000
commit94ab575d4a5aa03ef15bcc5b12750246d640117b (patch)
tree04295dc65fed528fb825ad351e95d1a9e0c275c8 /net-im
parentSync live ebuild to udev-149. (diff)
downloadgentoo-2-94ab575d4a5aa03ef15bcc5b12750246d640117b.tar.gz
gentoo-2-94ab575d4a5aa03ef15bcc5b12750246d640117b.tar.bz2
gentoo-2-94ab575d4a5aa03ef15bcc5b12750246d640117b.zip
clean up
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'net-im')
-rw-r--r--net-im/ejabberd/ChangeLog15
-rw-r--r--net-im/ejabberd/ejabberd-1.1.4-r1.ebuild136
-rw-r--r--net-im/ejabberd/ejabberd-1.1.4-r2.ebuild137
-rw-r--r--net-im/ejabberd/ejabberd-2.0.4.ebuild159
-rw-r--r--net-im/ejabberd/ejabberd-2.0.5-r1.ebuild156
-rw-r--r--net-im/ejabberd/ejabberd-2.0.5-r2.ebuild156
-rw-r--r--net-im/ejabberd/ejabberd-2.0.5.ebuild156
-rw-r--r--net-im/ejabberd/files/1.1.4-missing-declaration.patch12
-rw-r--r--net-im/ejabberd/files/2.0.0-ejab-542-mod_proxy65.patch12
-rw-r--r--net-im/ejabberd/files/2.0.0-erlang12-s2s-in.patch35
-rw-r--r--net-im/ejabberd/files/2.0.0-missing-declaration.patch12
-rw-r--r--net-im/ejabberd/files/2.0.1-parallel-make.patch60
-rw-r--r--net-im/ejabberd/files/ejabberd11
-rw-r--r--net-im/ejabberd/files/ejabberd-1.1.4-erlang-12.patch131
-rw-r--r--net-im/ejabberd/files/ejabberd-1.1.4.confd17
-rw-r--r--net-im/ejabberd/files/ejabberd-1.1.4.initd62
-rw-r--r--net-im/ejabberd/files/ejabberd-2.0.4-fix-EJAB-890.patch167
-rw-r--r--net-im/ejabberd/files/ejabberdctl8
-rw-r--r--net-im/ejabberd/files/ejabberdctl-wrapper-2.template30
-rw-r--r--net-im/ejabberd/files/inetrc1
-rwxr-xr-xnet-im/ejabberd/files/self-cert.sh21
21 files changed, 14 insertions, 1480 deletions
diff --git a/net-im/ejabberd/ChangeLog b/net-im/ejabberd/ChangeLog
index 865cc10bc53a..b41624e9c01a 100644
--- a/net-im/ejabberd/ChangeLog
+++ b/net-im/ejabberd/ChangeLog
@@ -1,6 +1,19 @@
# ChangeLog for net-im/ejabberd
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ChangeLog,v 1.68 2009/11/25 11:20:01 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ChangeLog,v 1.69 2009/12/30 11:35:42 fauli Exp $
+
+ 30 Dec 2009; Christian Faulhammer <fauli@gentoo.org>
+ -files/1.1.4-missing-declaration.patch, -ejabberd-1.1.4-r1.ebuild,
+ -ejabberd-1.1.4-r2.ebuild, -files/ejabberd-1.1.4-erlang-12.patch,
+ -files/2.0.0-erlang12-s2s-in.patch, -files/ejabberd-1.1.4.confd,
+ -ejabberd-2.0.4.ebuild, -files/2.0.1-parallel-make.patch,
+ -files/ejabberd-1.1.4.initd, -files/ejabberd-2.0.4-fix-EJAB-890.patch,
+ -ejabberd-2.0.5.ebuild, -ejabberd-2.0.5-r1.ebuild,
+ -ejabberd-2.0.5-r2.ebuild, -files/ejabberdctl-wrapper-2.template,
+ -files/2.0.0-ejab-542-mod_proxy65.patch,
+ -files/2.0.0-missing-declaration.patch, -files/ejabberd,
+ -files/ejabberdctl, -files/inetrc, -files/self-cert.sh:
+ clean up
25 Nov 2009; Markus Meier <maekke@gentoo.org> ejabberd-2.0.5-r3.ebuild:
amd64 stable, bug #291744
diff --git a/net-im/ejabberd/ejabberd-1.1.4-r1.ebuild b/net-im/ejabberd/ejabberd-1.1.4-r1.ebuild
deleted file mode 100644
index 70f227b8caf0..000000000000
--- a/net-im/ejabberd/ejabberd-1.1.4-r1.ebuild
+++ /dev/null
@@ -1,136 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ejabberd-1.1.4-r1.ebuild,v 1.5 2009/02/01 10:01:06 patrick Exp $
-
-inherit eutils multilib
-
-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="~amd64 x86"
-IUSE="debug mod_irc mod_muc mod_pubsub ldap odbc ssl web zlib"
-
-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* )
- ssl? ( >=dev-libs/openssl-0.9.8e )
- zlib? ( sys-libs/zlib )"
-
-PROVIDE="virtual/jabber-server"
-S=${WORKDIR}/${P}/src
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Bug #171427
- epatch "${FILESDIR}/${PV}-missing-declaration.patch"
- # Bug 202114
- epatch "${FILESDIR}/${P}-erlang-12.patch"
-}
-
-src_compile() {
- econf \
- $(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) \
- $(use_enable zlib ejabberd_zlib) \
- || die "econf failed"
-
- if useq debug; then
- emake ejabberd_debug=true || die "compiling ejabberd core failed"
- else
- emake || die "compiling ejabberd core failed"
- fi
-}
-
-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"
-
- chown -R jabber:jabber "${D}${JABBER_ETC}"
- chown -R jabber:jabber "${D}${JABBER_LOG}"
- chown -R jabber:jabber "${D}/usr/$(get_libdir)/erlang/lib/${P}"
-
- insinto /usr/share/doc/${PF}
- 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}/ejabberd-1.1.4.confd" ${PN}
-
- insinto ${JABBER_ETC}
- doins "${FILESDIR}/inetrc"
- if useq ssl ; then
- doins "${FILESDIR}/ssl.cnf"
- newins "${FILESDIR}/self-cert-v2.sh" self-cert.sh
- fi
-}
-
-pkg_postinst() {
- elog "For configuration instructions, please see /usr/share/doc/${PF}/html/guide.html"
- elog "or the online version at http://www.process-one.net/en/projects/ejabberd/docs/guide_en.html"
- echo
- if useq ssl ; then
- if [ ! -e /etc/jabber/ssl.pem ]; then
- elog "Please edit ${JABBER_ETC}/ssl.cnf and run ${JABBER_ETC}/self-cert.sh"
- elog "Ejabberd may refuse to start without an SSL certificate"
- fi
- fi
- if ! useq web ; then
- elog "The web USE flag is off, this has disabled the web admin interface."
- fi
-}
diff --git a/net-im/ejabberd/ejabberd-1.1.4-r2.ebuild b/net-im/ejabberd/ejabberd-1.1.4-r2.ebuild
deleted file mode 100644
index fe3063a28d0e..000000000000
--- a/net-im/ejabberd/ejabberd-1.1.4-r2.ebuild
+++ /dev/null
@@ -1,137 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ejabberd-1.1.4-r2.ebuild,v 1.1 2009/02/01 10:01:06 patrick Exp $
-
-inherit eutils multilib
-
-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="~amd64 ~x86"
-IUSE="debug mod_irc mod_muc mod_pubsub ldap odbc ssl web zlib"
-
-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* )
- ssl? ( >=dev-libs/openssl-0.9.8e )
- zlib? ( sys-libs/zlib )"
-
-PROVIDE="virtual/jabber-server"
-S=${WORKDIR}/${P}/src
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Bug #171427
- epatch "${FILESDIR}/${PV}-missing-declaration.patch"
- # Bug 202114
- epatch "${FILESDIR}/${P}-erlang-12.patch"
-}
-
-src_compile() {
- econf \
- $(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) \
- $(use_enable zlib ejabberd_zlib) \
- || die "econf failed"
-
- if useq debug; then
- emake ejabberd_debug=true || die "compiling ejabberd core failed"
- else
- emake || die "compiling ejabberd core failed"
- fi
-}
-
-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"
-
- chown -R jabber:jabber "${D}${JABBER_ETC}"
- chown -R jabber:jabber "${D}${JABBER_LOG}"
- chown -R jabber:jabber "${D}/usr/$(get_libdir)/erlang/lib/${P}"
-
- cd "${WORKDIR}/${P}"
- insinto /usr/share/doc/${PF}
- 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}/ejabberd-1.1.4.confd" ${PN}
-
- insinto ${JABBER_ETC}
- doins "${FILESDIR}/inetrc"
- if useq ssl ; then
- doins "${FILESDIR}/ssl.cnf"
- newins "${FILESDIR}/self-cert-v2.sh" self-cert.sh
- fi
-}
-
-pkg_postinst() {
- elog "For configuration instructions, please see /usr/share/doc/${PF}/html/guide.html"
- elog "or the online version at http://www.process-one.net/en/projects/ejabberd/docs/guide_en.html"
- echo
- if useq ssl ; then
- if [ ! -e /etc/jabber/ssl.pem ]; then
- elog "Please edit ${JABBER_ETC}/ssl.cnf and run ${JABBER_ETC}/self-cert.sh"
- elog "Ejabberd may refuse to start without an SSL certificate"
- fi
- fi
- if ! useq web ; then
- elog "The web USE flag is off, this has disabled the web admin interface."
- fi
-}
diff --git a/net-im/ejabberd/ejabberd-2.0.4.ebuild b/net-im/ejabberd/ejabberd-2.0.4.ebuild
deleted file mode 100644
index b8973a6fc35c..000000000000
--- a/net-im/ejabberd/ejabberd-2.0.4.ebuild
+++ /dev/null
@@ -1,159 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ejabberd-2.0.4.ebuild,v 1.4 2009/05/20 22:42:16 caleb Exp $
-
-inherit eutils multilib
-
-JABBER_ETC="/etc/jabber"
-JABBER_RUN="/var/run/jabber"
-JABBER_SPOOL="/var/spool/jabber"
-JABBER_LOG="/var/log/jabber"
-
-MY_PV=${PV}
-MY_P=${PN}-${MY_PV}
-
-DESCRIPTION="The Erlang Jabber Daemon"
-HOMEPAGE="http://www.ejabberd.im/"
-SRC_URI="http://www.process-one.net/downloads/ejabberd/${PV}/${MY_P}.tar.gz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~ppc x86"
-IUSE="debug mod_irc mod_muc mod_pubsub ldap odbc pam ssl web zlib"
-
-DEPEND=">=net-im/jabber-base-0.01
- >=dev-libs/expat-1.95
- >=dev-lang/erlang-11.2.5
- <dev-lang/erlang-13
- odbc? ( dev-db/unixODBC )
- ldap? ( =net-nds/openldap-2* )
- ssl? ( >=dev-libs/openssl-0.9.8e )
- zlib? ( sys-libs/zlib )"
-RDEPEND="${DEPEND}"
-
-PROVIDE="virtual/jabber-server"
-
-S=${WORKDIR}/${MY_P}/src
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Bug #171427
- epatch "${FILESDIR}/2.0.0-missing-declaration.patch"
-
- # get rid of the prefix
- sed -i -e "s/\\@prefix\\@//" "${S}/Makefile.in" \
- || die "cannot sed Makefile.in"
- # we want ejabberdctl in /usr/sbin not /sbin !!!
- sed -i -e "s/\\/sbin/\\/usr\\/sbin/" "${S}/Makefile.in" \
- || die "cannot sed Makefile.in"
-}
-
-src_compile() {
- econf --prefix=/ \
- $(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) \
- $(use_enable zlib ejabberd_zlib) \
- $(use_enable pam) \
- || die "econf failed"
-
- if useq debug; then
- emake ejabberd_debug=true || die "compiling ejabberd core failed"
- else
- emake || die "compiling ejabberd core failed"
- fi
-}
-
-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"
-
- # remove the default ejabberdctl as we use our own
- rm "${D}/sbin/ejabberdctl"
-
- insinto ${JABBER_ETC}
-
- chown -R jabber:jabber "${D}${JABBER_ETC}"
- chown -R jabber:jabber "${D}${JABBER_LOG}"
- chown -R jabber:jabber "${D}/usr/$(get_libdir)/erlang/lib/${P}"
-
- if useq ssl ; then
- doins "${FILESDIR}/ssl.cnf"
- newins "${FILESDIR}/self-cert-v2.sh" self-cert.sh
- fi
-
- # Pam helper module permissions
- # http://www.process-one.net/docs/ejabberd/guide_en.html
- if useq pam; then
- chown root:jabber "${D}"/usr/lib/erlang/lib/${P}/priv/bin/epam
- chmod 4750 "${D}"/usr/lib/erlang/lib/${P}/priv/bin/epam
- fi
-
- cd "${WORKDIR}/${MY_P}/doc"
- dodoc "release_notes_${MY_PV}.txt"
- dohtml *.{html,png}
-
- # set up /usr/sbin/ejabberd wrapper
- cat "${FILESDIR}/ejabberd-wrapper-2.template" \
- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \
- > "${T}/ejabberd"
- exeinto /usr/sbin
- doexe "${T}/ejabberd"
-
- # set up /usr/sbin/ejabberdctl wrapper
- cat "${FILESDIR}/ejabberdctl-wrapper-2.template" \
- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \
- > "${T}/ejabberdctl"
- doexe "${T}/ejabberdctl"
-
- dodir /var/lib/ejabberd
- newinitd "${FILESDIR}/${PN}-2.initd" ${PN}
- newconfd "${FILESDIR}/${PN}-2.confd" ${PN}
-
- # fix up the ssl cert paths in /etc/jabber/ejabberd.cfg to use the cert
- # that would be generated by /etc/jabber/self-cert.sh
- sed -i -e "s/\/path\/to\/ssl.pem/\/etc\/jabber\/ssl.pem/g" \
- "${D}${JABBER_ETC}/ejabberd.cfg" || die "Cannot sed ejabberd.cfg"
-
- # if mod_irc is not enabled, comment out the mod_irc in the default
- # ejabberd.cfg
- if ! use mod_irc; then
- sed -i -e "s/{mod_irc,/%{mod_irc,/" \
- "${D}${JABBER_ETC}/ejabberd.cfg" || die "Cannot sed ejabberd.cfg"
- fi
-}
-
-pkg_postinst() {
- elog "For configuration instructions, please see"
- elog "/usr/share/doc/${PF}/html/guide.html, or the online version at"
- elog "http://www.process-one.net/en/projects/ejabberd/docs/guide_en.html"
- if useq ssl ; then
- if [ ! -e /etc/jabber/ssl.pem ]; then
- elog "Please edit ${JABBER_ETC}/ssl.cnf and run ${JABBER_ETC}/self-cert.sh"
- elog "Ejabberd may refuse to start without an SSL certificate"
- fi
- fi
- if ! useq web ; then
- elog "The web USE flag is off, this has disabled the web admin interface."
- fi
- elog "===================================================================="
- elog 'Quick Start Guide:'
- elog '1) Add output of `hostname -f` to /etc/jabber/ejabberd.cfg line 89'
- elog ' {hosts, ["localhost", "thehost"]}.'
- elog '2) Add an admin user to /etc/jabber/ejabberd.cfg line 324'
- elog ' {acl, admin, {user, "theadmin", "thehost"}}.'
- elog '3) Start the server'
- elog ' # /etc/init.d/ejabberd start'
- elog '4) Register the admin user'
- elog ' # /usr/sbin/ejabberdctl register theadmin thehost thepassword'
- elog '5) Log in with your favourite jabber client or using the web admin'
-}
diff --git a/net-im/ejabberd/ejabberd-2.0.5-r1.ebuild b/net-im/ejabberd/ejabberd-2.0.5-r1.ebuild
deleted file mode 100644
index 093e82b6f825..000000000000
--- a/net-im/ejabberd/ejabberd-2.0.5-r1.ebuild
+++ /dev/null
@@ -1,156 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ejabberd-2.0.5-r1.ebuild,v 1.4 2009/06/05 12:56:25 pva Exp $
-
-inherit eutils multilib
-
-JABBER_ETC="/etc/jabber"
-JABBER_RUN="/var/run/jabber"
-JABBER_SPOOL="/var/spool/jabber"
-JABBER_LOG="/var/log/jabber"
-
-MY_PV=${PV}
-MY_P=${PN}-${MY_PV}
-
-DESCRIPTION="The Erlang Jabber Daemon"
-HOMEPAGE="http://www.ejabberd.im/"
-SRC_URI="http://www.process-one.net/downloads/ejabberd/${PV}/${MY_P}.tar.gz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~ppc ~x86"
-IUSE="debug mod_irc mod_muc mod_pubsub ldap odbc pam ssl web zlib"
-
-DEPEND=">=net-im/jabber-base-0.01
- >=dev-libs/expat-1.95
- >=dev-lang/erlang-11.2.5
- <dev-lang/erlang-13
- odbc? ( dev-db/unixODBC )
- ldap? ( =net-nds/openldap-2* )
- ssl? ( >=dev-libs/openssl-0.9.8e )
- zlib? ( sys-libs/zlib )"
-RDEPEND="${DEPEND}"
-
-PROVIDE="virtual/jabber-server"
-
-S=${WORKDIR}/${MY_P}/src
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # get rid of the prefix
- sed -i -e "s/\\@prefix\\@//" "${S}/Makefile.in" \
- || die "cannot sed Makefile.in"
- # we want ejabberdctl in /usr/sbin not /sbin !!!
- sed -i -e "s/\\/sbin/\\/usr\\/sbin/" "${S}/Makefile.in" \
- || die "cannot sed Makefile.in"
-}
-
-src_compile() {
- econf --prefix=/ \
- $(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) \
- $(use_enable zlib ejabberd_zlib) \
- $(use_enable pam) \
- || die "econf failed"
-
- if useq debug; then
- emake ejabberd_debug=true || die "compiling ejabberd core failed"
- else
- emake || die "compiling ejabberd core failed"
- fi
-}
-
-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"
-
- # remove the default ejabberdctl as we use our own
- rm "${D}/sbin/ejabberdctl"
-
- insinto ${JABBER_ETC}
-
- fowners -R jabber:jabber ${JABBER_ETC}
- fowners -R jabber:jabber ${JABBER_LOG}
- fowners -R jabber:jabber /usr/$(get_libdir)/erlang/lib/${P}
-
- if useq ssl; then
- doins "${FILESDIR}/ssl.cnf"
- newins "${FILESDIR}/self-cert-v2.sh" self-cert.sh
- fi
-
- # Pam helper module permissions
- # http://www.process-one.net/docs/ejabberd/guide_en.html
- if useq pam; then
- fowners root:jabber /usr/$(get_libdir)/erlang/lib/${P}/priv/bin/epam
- fperms 4750 /usr/$(get_libdir)/erlang/lib/${P}/priv/bin/epam
- fi
-
- cd "${WORKDIR}/${MY_P}/doc"
- dodoc "release_notes_${MY_PV}.txt"
- dohtml *.{html,png}
-
- # set up /usr/sbin/ejabberd wrapper
- cat "${FILESDIR}/ejabberd-wrapper-2.template" \
- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \
- > "${T}/ejabberd"
- exeinto /usr/sbin
- doexe "${T}/ejabberd" || die
-
- # set up /usr/sbin/ejabberdctl wrapper
- cat "${FILESDIR}/ejabberdctl-wrapper-2.template" \
- | sed -e "s:\@libdir\@:$(get_libdir):g" -e "s:\@version\@:${PV}:g" \
- > "${T}/ejabberdctl"
- doexe "${T}/ejabberdctl"
-
- dodir /var/lib/ejabberd
- newinitd "${FILESDIR}/${PN}-2.initd" ${PN} || die
- newconfd "${FILESDIR}/${PN}-2.confd" ${PN} || die
-
- # fix up the ssl cert paths in /etc/jabber/ejabberd.cfg to use the cert
- # that would be generated by /etc/jabber/self-cert.sh
- sed -i -e "s/\/path\/to\/ssl.pem/\/etc\/jabber\/ssl.pem/g" \
- "${D}${JABBER_ETC}/ejabberd.cfg" || die "Cannot sed ejabberd.cfg"
-
- # if mod_irc is not enabled, comment out the mod_irc in the default
- # ejabberd.cfg
- if ! use mod_irc; then
- sed -i -e "s/{mod_irc,/%{mod_irc,/" \
- "${D}${JABBER_ETC}/ejabberd.cfg" || die "Cannot sed ejabberd.cfg"
- fi
-}
-
-pkg_postinst() {
- elog "For configuration instructions, please see"
- elog "/usr/share/doc/${PF}/html/guide.html, or the online version at"
- elog "http://www.process-one.net/en/projects/ejabberd/docs/guide_en.html"
- if useq ssl ; then
- if [ ! -e /etc/jabber/ssl.pem ]; then
- elog "Please edit ${JABBER_ETC}/ssl.cnf and run ${JABBER_ETC}/self-cert.sh"
- elog "Ejabberd may refuse to start without an SSL certificate"
- fi
- fi
- if ! useq web ; then
- elog "The web USE flag is off, this has disabled the web admin interface."
- fi
- elog "===================================================================="
- elog 'Quick Start Guide:'
- elog '1) Add output of `hostname -f` to /etc/jabber/ejabberd.cfg line 89'
- elog ' {hosts, ["localhost", "thehost"]}.'
- elog '2) Add an admin user to /etc/jabber/ejabberd.cfg line 324'
- elog ' {acl, admin, {user, "theadmin", "thehost"}}.'
- elog '3) Start the server'
- elog ' # /etc/init.d/ejabberd start'
- elog '4) Register the admin user'
- elog ' # /usr/sbin/ejabberdctl register theadmin thehost thepassword'
- elog '5) Log in with your favourite jabber client or using the web admin'
-}
diff --git a/net-im/ejabberd/ejabberd-2.0.5-r2.ebuild b/net-im/ejabberd/ejabberd-2.0.5-r2.ebuild
deleted file mode 100644
index d44c78d30ba9..000000000000
--- a/net-im/ejabberd/ejabberd-2.0.5-r2.ebuild
+++ /dev/null
@@ -1,156 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ejabberd-2.0.5-r2.ebuild,v 1.2 2009/05/20 22:39:08 caleb Exp $
-
-inherit eutils multilib
-
-JABBER_ETC="/etc/jabber"
-JABBER_RUN="/var/run/jabber"
-JABBER_SPOOL="/var/spool/jabber"
-JABBER_LOG="/var/log/jabber"
-
-MY_PV=${PV}
-MY_P=${PN}-${MY_PV}
-
-DESCRIPTION="The Erlang Jabber Daemon"
-HOMEPAGE="http://www.ejabberd.im/"
-SRC_URI="http://www.process-one.net/downloads/ejabberd/${PV}/${MY_P}.tar.gz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="debug mod_irc mod_muc mod_pubsub ldap odbc pam ssl web zlib"
-
-DEPEND=">=net-im/jabber-base-0.01
- >=dev-libs/expat-1.95
- >=dev-lang/erlang-11.2.5
- <dev-lang/erlang-13
- odbc? ( dev-db/unixODBC )
- ldap? ( =net-nds/openldap-2* )
- ssl? ( >=dev-libs/openssl-0.9.8e )
- zlib? ( sys-libs/zlib )"
-RDEPEND="${DEPEND}"
-
-PROVIDE="virtual/jabber-server"
-
-S=${WORKDIR}/${MY_P}/src
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # get rid of the prefix
- sed -i -e "s/\\@prefix\\@//" "${S}/Makefile.in" \
- || die "cannot sed Makefile.in"
- # we want ejabberdctl in /usr/sbin not /sbin !!!
- sed -i -e "s/\\/sbin/\\/usr\\/sbin/" "${S}/Makefile.in" \
- || die "cannot sed Makefile.in"
-}
-
-src_compile() {
- econf --prefix=/ \
- $(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) \
- $(use_enable zlib ejabberd_zlib) \
- $(use_enable pam) \
- || die "econf failed"
-
- if useq debug; then
- emake ejabberd_debug=true || die "compiling ejabberd core failed"
- else
- emake || die "compiling ejabberd core failed"
- fi
-}
-
-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"
-
- # remove the default ejabberdctl as we use our own
- rm "${D}/sbin/ejabberdctl"
-
- insinto ${JABBER_ETC}
-
- fowners -R jabber:jabber ${JABBER_ETC}
- fowners -R jabber:jabber ${JABBER_LOG}
- fowners -R jabber:jabber /usr/$(get_libdir)/erlang/lib/${P}
-
- if useq ssl; then
- doins "${FILESDIR}/ssl.cnf"
- newins "${FILESDIR}/self-cert-v2.sh" self-cert.sh
- fi
-
- # Pam helper module permissions
- # http://www.process-one.net/docs/ejabberd/guide_en.html
- if useq pam; then
- fowners root:jabber /usr/$(get_libdir)/erlang/lib/${P}/priv/bin/epam
- fperms 4750 /usr/$(get_libdir)/erlang/lib/${P}/priv/bin/epam
- fi
-
- cd "${WORKDIR}/${MY_P}/doc"
- dodoc "release_notes_${MY_PV}.txt"
- dohtml *.{html,png}
-
- # set up /usr/sbin/ejabberd wrapper
- cat "${FILESDIR}/ejabberd-wrapper-2.template" \
- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \
- > "${T}/ejabberd"
- exeinto /usr/sbin
- doexe "${T}/ejabberd" || die
-
- # set up /usr/sbin/ejabberdctl wrapper
- cat "${FILESDIR}/ejabberdctl-wrapper-3.template" \
- | sed -e "s:\@libdir\@:$(get_libdir):g" -e "s:\@version\@:${PV}:g" \
- > "${T}/ejabberdctl"
- doexe "${T}/ejabberdctl"
-
- dodir /var/lib/ejabberd
- newinitd "${FILESDIR}/${PN}-2.initd" ${PN} || die
- newconfd "${FILESDIR}/${PN}-2.confd" ${PN} || die
-
- # fix up the ssl cert paths in /etc/jabber/ejabberd.cfg to use the cert
- # that would be generated by /etc/jabber/self-cert.sh
- sed -i -e "s/\/path\/to\/ssl.pem/\/etc\/jabber\/ssl.pem/g" \
- "${D}${JABBER_ETC}/ejabberd.cfg" || die "Cannot sed ejabberd.cfg"
-
- # if mod_irc is not enabled, comment out the mod_irc in the default
- # ejabberd.cfg
- if ! use mod_irc; then
- sed -i -e "s/{mod_irc,/%{mod_irc,/" \
- "${D}${JABBER_ETC}/ejabberd.cfg" || die "Cannot sed ejabberd.cfg"
- fi
-}
-
-pkg_postinst() {
- elog "For configuration instructions, please see"
- elog "/usr/share/doc/${PF}/html/guide.html, or the online version at"
- elog "http://www.process-one.net/en/projects/ejabberd/docs/guide_en.html"
- if useq ssl ; then
- if [ ! -e /etc/jabber/ssl.pem ]; then
- elog "Please edit ${JABBER_ETC}/ssl.cnf and run ${JABBER_ETC}/self-cert.sh"
- elog "Ejabberd may refuse to start without an SSL certificate"
- fi
- fi
- if ! useq web ; then
- elog "The web USE flag is off, this has disabled the web admin interface."
- fi
- elog "===================================================================="
- elog 'Quick Start Guide:'
- elog '1) Add output of `hostname -f` to /etc/jabber/ejabberd.cfg line 89'
- elog ' {hosts, ["localhost", "thehost"]}.'
- elog '2) Add an admin user to /etc/jabber/ejabberd.cfg line 324'
- elog ' {acl, admin, {user, "theadmin", "thehost"}}.'
- elog '3) Start the server'
- elog ' # /etc/init.d/ejabberd start'
- elog '4) Register the admin user'
- elog ' # /usr/sbin/ejabberdctl register theadmin thehost thepassword'
- elog '5) Log in with your favourite jabber client or using the web admin'
-}
diff --git a/net-im/ejabberd/ejabberd-2.0.5.ebuild b/net-im/ejabberd/ejabberd-2.0.5.ebuild
deleted file mode 100644
index cab40bf8fdad..000000000000
--- a/net-im/ejabberd/ejabberd-2.0.5.ebuild
+++ /dev/null
@@ -1,156 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ejabberd-2.0.5.ebuild,v 1.4 2009/06/05 12:56:25 pva Exp $
-
-inherit eutils multilib
-
-JABBER_ETC="/etc/jabber"
-JABBER_RUN="/var/run/jabber"
-JABBER_SPOOL="/var/spool/jabber"
-JABBER_LOG="/var/log/jabber"
-
-MY_PV=${PV}
-MY_P=${PN}-${MY_PV}
-
-DESCRIPTION="The Erlang Jabber Daemon"
-HOMEPAGE="http://www.ejabberd.im/"
-SRC_URI="http://www.process-one.net/downloads/ejabberd/${PV}/${MY_P}.tar.gz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc x86"
-IUSE="debug mod_irc mod_muc mod_pubsub ldap odbc pam ssl web zlib"
-
-DEPEND=">=net-im/jabber-base-0.01
- >=dev-libs/expat-1.95
- >=dev-lang/erlang-11.2.5
- <dev-lang/erlang-13
- odbc? ( dev-db/unixODBC )
- ldap? ( =net-nds/openldap-2* )
- ssl? ( >=dev-libs/openssl-0.9.8e )
- zlib? ( sys-libs/zlib )"
-RDEPEND="${DEPEND}"
-
-PROVIDE="virtual/jabber-server"
-
-S=${WORKDIR}/${MY_P}/src
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # get rid of the prefix
- sed -i -e "s/\\@prefix\\@//" "${S}/Makefile.in" \
- || die "cannot sed Makefile.in"
- # we want ejabberdctl in /usr/sbin not /sbin !!!
- sed -i -e "s/\\/sbin/\\/usr\\/sbin/" "${S}/Makefile.in" \
- || die "cannot sed Makefile.in"
-}
-
-src_compile() {
- econf --prefix=/ \
- $(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) \
- $(use_enable zlib ejabberd_zlib) \
- $(use_enable pam) \
- || die "econf failed"
-
- if useq debug; then
- emake ejabberd_debug=true || die "compiling ejabberd core failed"
- else
- emake || die "compiling ejabberd core failed"
- fi
-}
-
-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"
-
- # remove the default ejabberdctl as we use our own
- rm "${D}/sbin/ejabberdctl"
-
- insinto ${JABBER_ETC}
-
- chown -R jabber:jabber "${D}${JABBER_ETC}"
- chown -R jabber:jabber "${D}${JABBER_LOG}"
- chown -R jabber:jabber "${D}/usr/$(get_libdir)/erlang/lib/${P}"
-
- if useq ssl ; then
- doins "${FILESDIR}/ssl.cnf"
- newins "${FILESDIR}/self-cert-v2.sh" self-cert.sh
- fi
-
- # Pam helper module permissions
- # http://www.process-one.net/docs/ejabberd/guide_en.html
- if useq pam; then
- chown root:jabber "${D}"/usr/lib/erlang/lib/${P}/priv/bin/epam
- chmod 4750 "${D}"/usr/lib/erlang/lib/${P}/priv/bin/epam
- fi
-
- cd "${WORKDIR}/${MY_P}/doc"
- dodoc "release_notes_${MY_PV}.txt"
- dohtml *.{html,png}
-
- # set up /usr/sbin/ejabberd wrapper
- cat "${FILESDIR}/ejabberd-wrapper-2.template" \
- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \
- > "${T}/ejabberd"
- exeinto /usr/sbin
- doexe "${T}/ejabberd"
-
- # set up /usr/sbin/ejabberdctl wrapper
- cat "${FILESDIR}/ejabberdctl-wrapper-2.template" \
- | sed -e "s/\@libdir\@/$(get_libdir)/g" -e "s/\@version\@/${PV}/g" \
- > "${T}/ejabberdctl"
- doexe "${T}/ejabberdctl"
-
- dodir /var/lib/ejabberd
- newinitd "${FILESDIR}/${PN}-2.initd" ${PN}
- newconfd "${FILESDIR}/${PN}-2.confd" ${PN}
-
- # fix up the ssl cert paths in /etc/jabber/ejabberd.cfg to use the cert
- # that would be generated by /etc/jabber/self-cert.sh
- sed -i -e "s/\/path\/to\/ssl.pem/\/etc\/jabber\/ssl.pem/g" \
- "${D}${JABBER_ETC}/ejabberd.cfg" || die "Cannot sed ejabberd.cfg"
-
- # if mod_irc is not enabled, comment out the mod_irc in the default
- # ejabberd.cfg
- if ! use mod_irc; then
- sed -i -e "s/{mod_irc,/%{mod_irc,/" \
- "${D}${JABBER_ETC}/ejabberd.cfg" || die "Cannot sed ejabberd.cfg"
- fi
-}
-
-pkg_postinst() {
- elog "For configuration instructions, please see"
- elog "/usr/share/doc/${PF}/html/guide.html, or the online version at"
- elog "http://www.process-one.net/en/projects/ejabberd/docs/guide_en.html"
- if useq ssl ; then
- if [ ! -e /etc/jabber/ssl.pem ]; then
- elog "Please edit ${JABBER_ETC}/ssl.cnf and run ${JABBER_ETC}/self-cert.sh"
- elog "Ejabberd may refuse to start without an SSL certificate"
- fi
- fi
- if ! useq web ; then
- elog "The web USE flag is off, this has disabled the web admin interface."
- fi
- elog "===================================================================="
- elog 'Quick Start Guide:'
- elog '1) Add output of `hostname -f` to /etc/jabber/ejabberd.cfg line 89'
- elog ' {hosts, ["localhost", "thehost"]}.'
- elog '2) Add an admin user to /etc/jabber/ejabberd.cfg line 324'
- elog ' {acl, admin, {user, "theadmin", "thehost"}}.'
- elog '3) Start the server'
- elog ' # /etc/init.d/ejabberd start'
- elog '4) Register the admin user'
- elog ' # /usr/sbin/ejabberdctl register theadmin thehost thepassword'
- elog '5) Log in with your favourite jabber client or using the web admin'
-}
diff --git a/net-im/ejabberd/files/1.1.4-missing-declaration.patch b/net-im/ejabberd/files/1.1.4-missing-declaration.patch
deleted file mode 100644
index 72c56cbcef97..000000000000
--- a/net-im/ejabberd/files/1.1.4-missing-declaration.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -uNr ejabberd-1.1.4.ORIG/src/expat_erl.c ejabberd-1.1.4/src/expat_erl.c
---- ejabberd-1.1.4.ORIG/src/expat_erl.c 2007-09-14 12:07:56.000000000 +0100
-+++ ejabberd-1.1.4/src/expat_erl.c 2007-09-14 12:08:56.000000000 +0100
-@@ -14,6 +14,8 @@
- * Workaround for EI encode_string bug
- */
-
-+int x_fix_buff(ei_x_buff* x, int szneeded);
-+
- #define put8(s,n) do { \
- (s)[0] = (char)((n) & 0xff); \
- (s) += 1; \
diff --git a/net-im/ejabberd/files/2.0.0-ejab-542-mod_proxy65.patch b/net-im/ejabberd/files/2.0.0-ejab-542-mod_proxy65.patch
deleted file mode 100644
index 6cc3bc815a56..000000000000
--- a/net-im/ejabberd/files/2.0.0-ejab-542-mod_proxy65.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- ejabberd-2.0.0/src/mod_proxy65/mod_proxy65_service.erl.original 2008-04-11 00:10:26.000000000 +0100
-+++ ejabberd-2.0.0/src/mod_proxy65/mod_proxy65_service.erl 2008-04-11 00:11:12.000000000 +0100
-@@ -201,7 +201,7 @@
- none -> get_proxy_or_domainip(ServerHost, MyHost);
- Addr -> Addr
- end,
-- [_ | StrIP] = lists:append([[$. | integer_to_list(X)] || X <- inet:ip_to_bytes(IP)]),
-+ StrIP = inet_parse:ntoa(IP),
- StreamAddr = [{"jid", MyHost}, {"host", StrIP}, {"port", integer_to_list(Port)}],
- {IP, #state{myhost = MyHost,
- serverhost = ServerHost,
-
diff --git a/net-im/ejabberd/files/2.0.0-erlang12-s2s-in.patch b/net-im/ejabberd/files/2.0.0-erlang12-s2s-in.patch
deleted file mode 100644
index 68cc69810056..000000000000
--- a/net-im/ejabberd/files/2.0.0-erlang12-s2s-in.patch
+++ /dev/null
@@ -1,35 +0,0 @@
---- ejabberd-2.0.0/src/ejabberd_s2s_in.erl.original 2008-02-21 10:02:12.000000000 +0000
-+++ ejabberd-2.0.0/src/ejabberd_s2s_in.erl 2008-04-08 18:00:04.000000000 +0100
-@@ -50,9 +50,13 @@
- -include("jlib.hrl").
- -ifdef(SSL39).
- -include_lib("ssl/include/ssl_pkix.hrl").
-+-define(PKIXEXPLICIT, 'OTP-PKIX').
-+-define(PKIXIMPLICIT, 'OTP-PKIX').
- -else.
- -include_lib("ssl/include/PKIX1Explicit88.hrl").
- -include_lib("ssl/include/PKIX1Implicit88.hrl").
-+-define(PKIXEXPLICIT, 'PKIX1Explicit88').
-+-define(PKIXIMPLICIT, 'PKIX1Implicit88').
- -endif.
- -include("XmppAddr.hrl").
-
-@@ -603,7 +607,7 @@
- lists:flatmap(
- fun(#'AttributeTypeAndValue'{type = ?'id-at-commonName',
- value = Val}) ->
-- case 'PKIX1Explicit88':decode('X520CommonName', Val) of
-+ case ?PKIXEXPLICIT:decode('X520CommonName', Val) of
- {ok, {_, D1}} ->
- D = if
- is_list(D1) -> D1;
-@@ -637,7 +641,7 @@
- is_binary(Val) -> Val;
- true -> Val
- end,
-- case 'PKIX1Implicit88':decode('SubjectAltName', BVal) of
-+ case ?PKIXIMPLICIT:decode('SubjectAltName', BVal) of
- {ok, SANs} ->
- lists:flatmap(
- fun({otherName,
-
diff --git a/net-im/ejabberd/files/2.0.0-missing-declaration.patch b/net-im/ejabberd/files/2.0.0-missing-declaration.patch
deleted file mode 100644
index 72c56cbcef97..000000000000
--- a/net-im/ejabberd/files/2.0.0-missing-declaration.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -uNr ejabberd-1.1.4.ORIG/src/expat_erl.c ejabberd-1.1.4/src/expat_erl.c
---- ejabberd-1.1.4.ORIG/src/expat_erl.c 2007-09-14 12:07:56.000000000 +0100
-+++ ejabberd-1.1.4/src/expat_erl.c 2007-09-14 12:08:56.000000000 +0100
-@@ -14,6 +14,8 @@
- * Workaround for EI encode_string bug
- */
-
-+int x_fix_buff(ei_x_buff* x, int szneeded);
-+
- #define put8(s,n) do { \
- (s)[0] = (char)((n) & 0xff); \
- (s) += 1; \
diff --git a/net-im/ejabberd/files/2.0.1-parallel-make.patch b/net-im/ejabberd/files/2.0.1-parallel-make.patch
deleted file mode 100644
index b6b1e7c00ea7..000000000000
--- a/net-im/ejabberd/files/2.0.1-parallel-make.patch
+++ /dev/null
@@ -1,60 +0,0 @@
---- trunk/src/Makefile.in
-+++ trunk/src/Makefile.in
-@@ -50,7 +50,9 @@
- SUBDIRS = @mod_irc@ @mod_pubsub@ @mod_muc@ @mod_proxy65@ @eldap@ @pam@ @web@ stringprep @tls@ @odbc@ @ejabberd_zlib@
- ERLSHLIBS = expat_erl.so
- ERLBEHAVS = cyrsasl.erl gen_mod.erl p1_fsm.erl
--SOURCES = $(ERLBEHAVS) $(wildcard *.erl)
-+SOURCES_ALL = $(wildcard *.erl)
-+SOURCES = $(filter-out $(ERLBEHAVS),$(SOURCES_ALL))
-+ERLBEHAVBEAMS = $(ERLBEHAVS:.erl=.beam)
- BEAMS = $(SOURCES:.erl=.beam)
-
- DESTDIR =
-@@ -74,8 +76,12 @@
-
- all: $(ERLSHLIBS) compile-beam all-recursive
-
--compile-beam: XmppAddr.hrl $(BEAMS)
-+compile-beam: XmppAddr.hrl $(ERLBEHAVBEAMS) $(BEAMS)
-
-+$(BEAMS): $(ERLBEHAVBEAMS)
-+
-+all-recursive: $(ERLBEHAVBEAMS)
-+
- %.beam: %.erl
- @ERLC@ -W $(ERLC_FLAGS) $<
-
---- trunk/src/eldap/Makefile.in
-+++ trunk/src/eldap/Makefile.in
-@@ -22,6 +22,8 @@
-
- all: $(BEAMS) ELDAPv3.beam
-
-+ELDAPv3.beam: ELDAPv3.erl
-+
- ELDAPv3.erl: ELDAPv3.asn
- @ERLC@ -bber_bin -W $(EFLAGS) $<
-
---- trunk/src/mod_pubsub/Makefile.in
-+++ trunk/src/mod_pubsub/Makefile.in
-@@ -16,12 +16,17 @@
- endif
-
- OUTDIR = ..
--SOURCES = $(wildcard *.erl)
-+ERLBEHAVS = gen_pubsub_node.erl gen_pubsub_nodetree.erl
-+SOURCES_ALL = $(wildcard *.erl)
-+SOURCES = $(filter-out $(ERLBEHAVS),$(SOURCES_ALL))
-+ERLBEHAVBEAMS = $(addprefix $(OUTDIR)/,$(ERLBEHAVS:.erl=.beam))
- BEAMS = $(addprefix $(OUTDIR)/,$(SOURCES:.erl=.beam))
-
-
--all: $(BEAMS)
-+all: $(ERLBEHAVBEAMS) $(BEAMS)
-
-+$(BEAMS): $(ERLBEHAVBEAMS)
-+
- $(OUTDIR)/%.beam: %.erl
- @ERLC@ -W $(EFLAGS) -o $(OUTDIR) $<
-
diff --git a/net-im/ejabberd/files/ejabberd b/net-im/ejabberd/files/ejabberd
deleted file mode 100644
index d7506959fb3a..000000000000
--- a/net-im/ejabberd/files/ejabberd
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-
-erl -pa /var/lib/ejabberd/ebin \
- -sname ejabberd \
- -s ejabberd \
- -ejabberd config \"/etc/ejabberd/ejabberd.cfg\" \
- log_path \"/var/log/ejabberd/ejabberd.log\" \
- -kernel inetrc \"/etc/ejabberd/inetrc\" \
- -sasl sasl_error_logger \{file,\"/var/log/ejabberd/sasl.log\"\} \
- -mnesia dir \"/var/spool/ejabberd\" \
- $@
diff --git a/net-im/ejabberd/files/ejabberd-1.1.4-erlang-12.patch b/net-im/ejabberd/files/ejabberd-1.1.4-erlang-12.patch
deleted file mode 100644
index b6976c370c69..000000000000
--- a/net-im/ejabberd/files/ejabberd-1.1.4-erlang-12.patch
+++ /dev/null
@@ -1,131 +0,0 @@
-Patch by Sergei Golovan fixes building ejabberd with erlang R12B-0.
-
-Index: ejabberd-1.1.4/src/ejabberd_s2s_in.erl
-===================================================================
---- ejabberd-1.1.4.orig/src/ejabberd_s2s_in.erl
-+++ ejabberd-1.1.4/src/ejabberd_s2s_in.erl
-@@ -30,8 +30,12 @@
-
- -include("ejabberd.hrl").
- -include("jlib.hrl").
-+-ifdef(SSL39).
-+-include_lib("ssl/include/ssl_pkix.hrl").
-+-else.
- -include_lib("ssl/include/PKIX1Explicit88.hrl").
- -include_lib("ssl/include/PKIX1Implicit88.hrl").
-+-endif.
- -include("XmppAddr.hrl").
-
- -define(DICT, dict).
---- ejabberd-1.1.4.orig/src/configure
-+++ ejabberd-1.1.4/src/configure
-@@ -648,6 +648,7 @@
- ERLC
- ERL
- ERLANG_CFLAGS
-+ERLANG_SSL39
- ERLANG_LIBS
- LIBICONV
- CPP
-@@ -2865,14 +2866,21 @@
- -author('alexey@sevcom.net').
-
- -export([start/0]).
-+-include_lib("ssl/include/ssl_pkix.hrl").
-
- start() ->
- EIDirS = code:lib_dir("erl_interface") ++ "\n",
- EILibS = libpath("erl_interface") ++ "\n",
- RootDirS = code:root_dir() ++ "\n",
-- file:write_file("conftest.out", list_to_binary(EIDirS ++ EILibS ++ RootDirS)),
-+ file:write_file("conftest.out", list_to_binary(EIDirS ++ EILibS ++ ssldef() ++ RootDirS)),
- halt().
-
-+-ifdef('id-pkix').
-+ssldef() -> "-DSSL39\n".
-+-else.
-+ssldef() -> "\n".
-+-endif.
-+
- %% return physical architecture based on OS/Processor
- archname() ->
- ArchStr = erlang:system_info(system_architecture),
-@@ -2927,6 +2935,8 @@
- # Second line
- ERLANG_EI_LIB=`cat conftest.out | head -n 2 | tail -n 1`
- # Third line
-+ ERLANG_SSL39=`cat conftest.out | head -n 3 | tail -n 1`
-+ # End line
- ERLANG_DIR=`cat conftest.out | tail -n 1`
-
- ERLANG_CFLAGS="-I$ERLANG_EI_DIR/include -I$ERLANG_DIR/usr/include"
-@@ -6205,6 +6215,7 @@
- ERL!$ERL$ac_delim
- ERLANG_CFLAGS!$ERLANG_CFLAGS$ac_delim
- ERLANG_LIBS!$ERLANG_LIBS$ac_delim
-+ERLANG_SSL39!$ERLANG_SSL39$ac_delim
- LIBICONV!$LIBICONV$ac_delim
- CPP!$CPP$ac_delim
- GREP!$GREP$ac_delim
-@@ -6238,7 +6248,7 @@
- LTLIBOBJS!$LTLIBOBJS$ac_delim
- _ACEOF
-
-- if test `grep -c "$ac_delim\$" conf$$subs.sed` = 79; then
-+ if test `grep -c "$ac_delim\$" conf$$subs.sed` = 80; then
- break
- elif $ac_last_try; then
- { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
---- ejabberd-1.1.4.orig/src/Makefile.in
-+++ ejabberd-1.1.4/src/Makefile.in
-@@ -12,6 +12,8 @@
- EXPAT_LIBS = @EXPAT_LIBS@
- ERLANG_LIBS = @ERLANG_LIBS@
-
-+ERLC_FLAGS += @ERLANG_SSL39@
-+
- # make debug=true to compile Erlang module with debug informations.
- ifdef debug
- ERLC_FLAGS+=+debug_info
---- ejabberd-1.1.4.orig/src/aclocal.m4
-+++ ejabberd-1.1.4/src/aclocal.m4
-@@ -79,14 +79,21 @@
- -author('alexey@sevcom.net').
-
- -export([[start/0]]).
-+-include_lib("ssl/include/ssl_pkix.hrl").
-
- start() ->
- EIDirS = code:lib_dir("erl_interface") ++ "\n",
- EILibS = libpath("erl_interface") ++ "\n",
- RootDirS = code:root_dir() ++ "\n",
-- file:write_file("conftest.out", list_to_binary(EIDirS ++ EILibS ++ RootDirS)),
-+ file:write_file("conftest.out", list_to_binary(EIDirS ++ EILibS ++ ssldef() ++ RootDirS)),
- halt().
-
-+-ifdef('id-pkix').
-+ssldef() -> "-DSSL39\n".
-+-else.
-+ssldef() "\n".
-+-endif.
-+
- %% return physical architecture based on OS/Processor
- archname() ->
- ArchStr = erlang:system_info(system_architecture),
-@@ -135,6 +142,8 @@
- # Second line
- ERLANG_EI_LIB=`cat conftest.out | head -n 2 | tail -n 1`
- # Third line
-+ ERLANG_SSL39=`cat conftest.out | head -n 3 | tail -n 1`
-+ # End line
- ERLANG_DIR=`cat conftest.out | tail -n 1`
-
- ERLANG_CFLAGS="-I$ERLANG_EI_DIR/include -I$ERLANG_DIR/usr/include"
-@@ -142,6 +151,7 @@
-
- AC_SUBST(ERLANG_CFLAGS)
- AC_SUBST(ERLANG_LIBS)
-+ AC_SUBST(ERLANG_SSL39)
- AC_SUBST(ERLC)
- AC_SUBST(ERL)
- ])
diff --git a/net-im/ejabberd/files/ejabberd-1.1.4.confd b/net-im/ejabberd/files/ejabberd-1.1.4.confd
deleted file mode 100644
index a17197aaaf1a..000000000000
--- a/net-im/ejabberd/files/ejabberd-1.1.4.confd
+++ /dev/null
@@ -1,17 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-1.1.4.confd,v 1.1 2008/02/22 14:58:22 caleb Exp $
-
-# Name of your ejabberd node. Used by ejabberdctl to determine which
-# node to communicate with.
-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-1.1.4.initd b/net-im/ejabberd/files/ejabberd-1.1.4.initd
deleted file mode 100644
index 1f37df66a5c4..000000000000
--- a/net-im/ejabberd/files/ejabberd-1.1.4.initd
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-1.1.4.initd,v 1.1 2007/09/14 11:38:29 chainsaw Exp $
-
-opts="${opts} reload"
-
-depend() {
- use dns
- need net
- provide jabber-server
-}
-
-checkconfig() {
- if [ ! -e /etc/jabber/ejabberd.cfg ] ; then
- eerror "You need an /etc/jabber/ejabberd.cfg file to run ejabberd"
- return 1
- fi
-}
-
-start() {
- checkconfig || return 1
- ebegin "Starting eJabberd"
- start-stop-daemon --start --quiet --chuid jabber:jabber \
- --exec /usr/bin/env HOME=/var/run/jabber /usr/bin/ejabberd -- -noshell -detached
- eend $?
- # For bug #190266
- chown jabber:jabber /var/run/jabber/.erlang.cookie
-}
-
-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/ejabberd-2.0.4-fix-EJAB-890.patch b/net-im/ejabberd/files/ejabberd-2.0.4-fix-EJAB-890.patch
deleted file mode 100644
index 3da58ce6b83d..000000000000
--- a/net-im/ejabberd/files/ejabberd-2.0.4-fix-EJAB-890.patch
+++ /dev/null
@@ -1,167 +0,0 @@
-diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl
-index 9bd5ba5..40cba2a 100644
---- ejabberd_c2s.erl
-+++ ejabberd_c2s.erl
-@@ -1091,21 +1091,16 @@ handle_info({route, From, To, Packet}, StateName, StateData) ->
- Attrs1 = lists:keydelete("type", 1, Attrs),
- {true, [{"type", "unavailable"} | Attrs1], StateData};
- "subscribe" ->
-- Reason = xml:get_path_s(Packet,[{elem,"status"},cdata]),
-- SRes = check_privacy_subs(in, subscribe, From, To,
-- Packet, Reason, StateData),
-+ SRes = is_privacy_allow(From, To, Packet, StateData#state.privacy_list),
- {SRes, Attrs, StateData};
- "subscribed" ->
-- SRes = check_privacy_subs(in, subscribed, From, To,
-- Packet, "", StateData),
-+ SRes = is_privacy_allow(From, To, Packet, StateData#state.privacy_list),
- {SRes, Attrs, StateData};
- "unsubscribe" ->
-- SRes = check_privacy_subs(in, unsubscribe, From, To,
-- Packet, "", StateData),
-+ SRes = is_privacy_allow(From, To, Packet, StateData#state.privacy_list),
- {SRes, Attrs, StateData};
- "unsubscribed" ->
-- SRes = check_privacy_subs(in, unsubscribed, From, To,
-- Packet, "", StateData),
-+ SRes = is_privacy_allow(From, To, Packet, StateData#state.privacy_list),
- {SRes, Attrs, StateData};
- _ ->
- case ejabberd_hooks:run_fold(
-@@ -1628,35 +1623,18 @@ presence_track(From, To, Packet, StateData) ->
- pres_a = A}
- end.
-
--%% Check privacy rules for subscription requests and call the roster storage
--check_privacy_subs(Dir, Type, From, To, Packet, Reason, StateData) ->
-- case is_privacy_allow(From, To, Dir, Packet, StateData) of
-- true ->
-- ejabberd_hooks:run_fold(
-- roster_in_subscription,
-- To#jid.lserver,
-- false,
-- [To#jid.user, To#jid.server, From, Type, Reason]),
-- true;
-- false ->
-- false
-- end.
--
--%% Check if privacy rules allow this delivery, then push to roster
--is_privacy_allow(From, To, Dir, Packet, StateData) ->
-- case ejabberd_hooks:run_fold(
-- privacy_check_packet, StateData#state.server,
-- allow,
-- [StateData#state.user,
-- StateData#state.server,
-- StateData#state.privacy_list,
-- {From, To, Packet},
-- Dir]) of
-- deny ->
-- false;
-- allow ->
-- true
-- end.
-+%% Check if privacy rules allow this delivery
-+is_privacy_allow(From, To, Packet, PrivacyList) ->
-+ User = To#jid.user,
-+ Server = To#jid.server,
-+ allow == ejabberd_hooks:run_fold(
-+ privacy_check_packet, Server,
-+ allow,
-+ [User,
-+ Server,
-+ PrivacyList,
-+ {From, To, Packet},
-+ in]).
-
- presence_broadcast(StateData, From, JIDSet, Packet) ->
- lists:foreach(fun(JID) ->
-diff --git a/src/ejabberd_sm.erl b/src/ejabberd_sm.erl
-index 9a56e5f..148ef5a 100644
---- ejabberd_sm.erl
-+++ ejabberd_sm.erl
-@@ -59,6 +59,7 @@
- -include("ejabberd.hrl").
- -include("jlib.hrl").
- -include("ejabberd_ctl.hrl").
-+-include("mod_privacy.hrl").
-
- -record(session, {sid, usr, us, priority, info}).
- -record(state, {}).
-@@ -381,13 +382,40 @@ do_route(From, To, Packet) ->
- {Pass, _Subsc} =
- case xml:get_attr_s("type", Attrs) of
- "subscribe" ->
-- {true, true};
-+ Reason = xml:get_path_s(
-+ Packet,
-+ [{elem, "status"}, cdata]),
-+ {is_privacy_allow(From, To, Packet) andalso
-+ ejabberd_hooks:run_fold(
-+ roster_in_subscription,
-+ LServer,
-+ false,
-+ [User, Server, From, subscribe, Reason]),
-+ true};
- "subscribed" ->
-- {true, true};
-+ {is_privacy_allow(From, To, Packet) andalso
-+ ejabberd_hooks:run_fold(
-+ roster_in_subscription,
-+ LServer,
-+ false,
-+ [User, Server, From, subscribed, ""]),
-+ true};
- "unsubscribe" ->
-- {true, true};
-+ {is_privacy_allow(From, To, Packet) andalso
-+ ejabberd_hooks:run_fold(
-+ roster_in_subscription,
-+ LServer,
-+ false,
-+ [User, Server, From, unsubscribe, ""]),
-+ true};
- "unsubscribed" ->
-- {true, true};
-+ {is_privacy_allow(From, To, Packet) andalso
-+ ejabberd_hooks:run_fold(
-+ roster_in_subscription,
-+ LServer,
-+ false,
-+ [User, Server, From, unsubscribed, ""]),
-+ true};
- _ ->
- {true, false}
- end,
-@@ -446,6 +474,31 @@ do_route(From, To, Packet) ->
- end
- end.
-
-+%% The default list applies to the user as a whole,
-+%% and is processed if there is no active list set
-+%% for the target session/resource to which a stanza is addressed,
-+%% or if there are no current sessions for the user.
-+is_privacy_allow(From, To, Packet) ->
-+ User = To#jid.user,
-+ Server = To#jid.server,
-+ PrivacyList = ejabberd_hooks:run_fold(privacy_get_user_list, Server,
-+ #userlist{}, [User, Server]),
-+ is_privacy_allow(From, To, Packet, PrivacyList).
-+
-+%% Check if privacy rules allow this delivery
-+%% Function copied from ejabberd_c2s.erl
-+is_privacy_allow(From, To, Packet, PrivacyList) ->
-+ User = To#jid.user,
-+ Server = To#jid.server,
-+ allow == ejabberd_hooks:run_fold(
-+ privacy_check_packet, Server,
-+ allow,
-+ [User,
-+ Server,
-+ PrivacyList,
-+ {From, To, Packet},
-+ in]).
-+
- route_message(From, To, Packet) ->
- LUser = To#jid.luser,
- LServer = To#jid.lserver,
diff --git a/net-im/ejabberd/files/ejabberdctl b/net-im/ejabberd/files/ejabberdctl
deleted file mode 100644
index a3a18245e992..000000000000
--- a/net-im/ejabberd/files/ejabberdctl
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/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/ejabberdctl-wrapper-2.template b/net-im/ejabberd/files/ejabberdctl-wrapper-2.template
deleted file mode 100644
index 6443678cf9b2..000000000000
--- a/net-im/ejabberd/files/ejabberdctl-wrapper-2.template
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-[ -f /etc/conf.d/ejabberd ] && . /etc/conf.d/ejabberd
-
-if [ -r /var/run/jabber/.erlang.cookie ] ; then
- HOME=/var/run/jabber
- export HOME
-fi
-
-ERL=/usr/bin/erl
-
-if [ $# -ne 0 ] ; then
- case $1 in
- --node) shift ; EJABBERD_NODE=$1 ; shift ;;
- esac
-fi
-
-if [ "$EJABBERD_NODE" = "${EJABBERD_NODE%.*}" ] ; then
- SNAME=-sname
-else
- SNAME=-name
-fi
-
-exec $ERL $SNAME ejabberdctl \
- -pa /usr/@libdir@/erlang/lib/ejabberd-@version@/ebin \
- -s ejabberd_ctl \
- -noinput \
- -extra $EJABBERD_NODE "$@"
-
-
diff --git a/net-im/ejabberd/files/inetrc b/net-im/ejabberd/files/inetrc
deleted file mode 100644
index 2d2f63575c2e..000000000000
--- a/net-im/ejabberd/files/inetrc
+++ /dev/null
@@ -1 +0,0 @@
-{file, resolv, "/etc/resolv.conf"}.
diff --git a/net-im/ejabberd/files/self-cert.sh b/net-im/ejabberd/files/self-cert.sh
deleted file mode 100755
index 2c984fd9dde4..000000000000
--- a/net-im/ejabberd/files/self-cert.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-######
-#
-# Generate a certificate and key with no passphrase.
-#
-######
-
-OPENSSL=/usr/bin/openssl
-
-## This generates the cert and key
-$OPENSSL req -new -x509 -newkey rsa:1024 -keyout /tmp/privkey.pem -out /etc/ejabberd/ssl.pem
-## This will remove the passphrase
-$OPENSSL rsa -in /tmp/privkey.pem -out /tmp/privkey.pem
-## Put it all together
-cat /tmp/privkey.pem >> /etc/ejabberd/ssl.pem
-## Cleanup
-rm /tmp/privkey.pem
-echo ""
-echo "Your new key is /etc/ejabberd/ssl.pem"
-echo ""