Changeset - f8fd3cda3ae0
[Not reviewed]
0 1 0
Chel Sea (chain) - 12 years ago 2013-08-10 12:26:14
chain@rpgfiction.net
ejabberd 2.1.12 is broken!
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
net-im/ejabberd/ejabberd-2.1.12-r1.ebuild
Show inline comments
 
# Copyright 1999-2013 Gentoo Foundation
 
# Distributed under the terms of the GNU General Public License v2
 
# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/ejabberd-2.1.12.ebuild,v 1.4 2013/05/14 09:42:10 ago Exp $
 

	
 
EAPI=5
 

	
 
inherit eutils multilib pam ssl-cert
 

	
 
DESCRIPTION="The Erlang Jabber Daemon"
 
HOMEPAGE="http://www.ejabberd.im/ https://github.com/processone/ejabberd/"
 
SRC_URI="http://www.process-one.net/downloads/${PN}/${PV}/${P}.tgz
 
	mod_statsdx? ( http://dev.gentoo.org/~radhermit/dist/${PN}-mod_statsdx-1118.patch.gz )"
 

	
 
LICENSE="GPL-2"
 
SLOT="0"
 
KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
 
KEYWORDS="~amd64 ~arm ~ia64 ppc ~sparc ~x86"
 
EJABBERD_MODULES="mod_irc mod_muc mod_proxy65 mod_pubsub mod_statsdx"
 
IUSE="captcha debug ldap odbc pam remoteroster +web zlib ${EJABBERD_MODULES}"
 

	
 
DEPEND=">=net-im/jabber-base-0.01
 
	>=dev-libs/expat-1.95
 
	>=dev-lang/erlang-12.2.5[ssl]
 
	odbc? ( dev-db/unixODBC )
 
	ldap? ( =net-nds/openldap-2* )
 
	>=dev-libs/openssl-0.9.8e
 
	captcha? ( media-gfx/imagemagick[truetype,png] )
 
	zlib? ( sys-libs/zlib )"
 
#>=sys-apps/shadow-4.1.4.2-r3 - fixes bug in su that made ejabberdctl unworkable.
 
RDEPEND="${DEPEND}
 
	>=sys-apps/shadow-4.1.4.2-r3
 
	pam? ( virtual/pam )"
 

	
 
S=${WORKDIR}/${P}/src
 

	
 
# paths in net-im/jabber-base
 
JABBER_ETC="${EPREFIX}/etc/jabber"
 
#JABBER_RUN="/var/run/jabber"
 
JABBER_SPOOL="${EPREFIX}/var/spool/jabber"
 
JABBER_LOG="${EPREFIX}/var/log/jabber"
 
JABBER_DOC="${EPREFIX}/usr/share/doc/${PF}"
 

	
 
src_prepare() {
 
	if use mod_statsdx; then
 
		ewarn "mod_statsdx is not a part of upstream tarball but is a third-party module"
 
		ewarn "taken from here: http://www.ejabberd.im/mod_stats2file"
 
		EPATCH_OPTS="-p2" epatch "${WORKDIR}"/${PN}-mod_statsdx-1118.patch
 
	fi
 

	
 
	if use remoteroster; then
 
		ewarn "Remote roster has not yet been accepted for consideration or"
 
		ewarn "approved in any official manner by the XMPP Standards Foundation,"
 
		ewarn "and is not yet an XMPP Extension Protocol (XEP)."
 
		EPATCH_OPTS="-d ${WORKDIR}/${P}" epatch "${FILESDIR}/ejabberd-2.1.x-remote-roster.patch"
 
	fi
 

	
 
	# don't install release notes (we'll do this manually)
 
	sed '/install .* [.][.]\/doc\/[*][.]txt $(DOCDIR)/d' -i Makefile.in || die
 
	# Set correct paths
 
	sed -e "/^EJABBERDDIR[[:space:]]*=/{s:ejabberd:${PF}:}" \
 
		-e "/^ETCDIR[[:space:]]*=/{s:@sysconfdir@/ejabberd:${JABBER_ETC}:}" \
 
		-e "/^LOGDIR[[:space:]]*=/{s:@localstatedir@/log/ejabberd:${JABBER_LOG}:}" \
 
		-e "/^SPOOLDIR[[:space:]]*=/{s:@localstatedir@/lib/ejabberd:${JABBER_SPOOL}:}" \
 
			-i Makefile.in || die
 
	sed -e "/EJABBERDDIR=/{s:ejabberd:${PF}:}" \
0 comments (0 inline, 0 general)