summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2008-06-09 20:22:03 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2008-06-09 20:22:03 +0000
commit1896cb2de7b63e114782ba755e7543608dcf12fa (patch)
tree297f558708793a107b6436541f3f3c5f271072d5 /net-im/jabberd/jabberd-1.6.1.1.ebuild
parentDesktop entry for bug 225631 by Chris Mayo. (diff)
downloadgentoo-2-1896cb2de7b63e114782ba755e7543608dcf12fa.tar.gz
gentoo-2-1896cb2de7b63e114782ba755e7543608dcf12fa.tar.bz2
gentoo-2-1896cb2de7b63e114782ba755e7543608dcf12fa.zip
Version bump, ebuild by Thomas Anderson <gentoofan23@gmail.com>, see bug #200616.
(Portage version: 2.1.5.4)
Diffstat (limited to 'net-im/jabberd/jabberd-1.6.1.1.ebuild')
-rw-r--r--net-im/jabberd/jabberd-1.6.1.1.ebuild102
1 files changed, 102 insertions, 0 deletions
diff --git a/net-im/jabberd/jabberd-1.6.1.1.ebuild b/net-im/jabberd/jabberd-1.6.1.1.ebuild
new file mode 100644
index 000000000000..0caa9a7cdf92
--- /dev/null
+++ b/net-im/jabberd/jabberd-1.6.1.1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/jabberd-1.6.1.1.ebuild,v 1.1 2008/06/09 20:22:03 nelchael Exp $
+
+inherit eutils
+
+DESCRIPTION="Open-source Jabber server"
+HOMEPAGE="http://www.jabber.org"
+SRC_URI="http://download.jabberd.org/jabberd14/jabberd14-${PV}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
+IUSE="debug ipv6 mysql postgres ssl"
+
+RDEPEND=">=net-im/jabber-base-0.01
+ >=dev-libs/pth-1.4.0
+ dev-libs/expat
+ net-dns/libidn
+ mysql? ( virtual/mysql )
+ postgres? ( virtual/postgresql-server )
+ ssl? ( net-libs/gnutls )
+ dev-libs/popt"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ !net-im/jabberd2"
+
+S=${WORKDIR}/jabberd14-${PV}
+
+pkg_setup() {
+ if use ipv6; then
+ ewarn "Without full ipv6 support, jabberd will show the error:"
+ ewarn ' "mio unable to listen"'
+ ewarn "To fix this, emerge jabberd without the ipv6 USE flag."
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-gnutls2.2.patch"
+ epatch "${FILESDIR}/${P}-sandbox.patch"
+ epatch "${FILESDIR}/${P}-parallel-make.patch"
+}
+
+src_compile() {
+ unset LC_ALL LC_CTYPE
+
+ # Broken configure script - can't use "use_enable"
+ local myconf=
+ use debug && myconf="${myconf} --enable-debug --enable-pool-debug"
+ use ipv6 && myconf="${myconf} --enable-ipv6"
+ use ssl && myconf="${myconf} --enable-ssl"
+
+ econf \
+ --sysconfdir=/etc/jabber \
+ ${myconf} \
+ $(use_with mysql) \
+ $(use_with postgres postgresql) \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ newinitd "${FILESDIR}"/${P}.init jabber || die "newinitd failed"
+
+ # net-im/jabber-base provides needed directories
+ rm -rf "${D}/var"
+ mv "${D}/etc/jabber/jabber.xml" "${D}/etc/jabber/jabberd.xml"
+ mv "${D}/etc/jabber/jabber.xml.dist" "${D}/etc/jabber/jabberd.xml.dist"
+
+ sed -i \
+ -e 's,/var/lib/spool/jabberd,/var/spool/jabber,g' \
+ -e 's,/var/lib/log/jabberd,/var/log/jabber,g' \
+ -e 's,/var/lib/run/jabberd,/var/run/jabber,g' \
+ -e 's,jabber.pid,jabberd14.pid,g' \
+ "${D}"/etc/jabber/jabberd.xml{,.dist} \
+ || die "sed failed"
+}
+
+pkg_postinst() {
+ echo
+ elog 'The various IM transports for jabber are now separate packages,'
+ elog 'which you will need to install separately if you want them:'
+ elog ' net-im/jit - ICQ transport'
+ elog ' net-im/pymsn-t - MSN transport'
+ elog ' net-im/jud - Jabber User Directory'
+ elog ' net-im/yahoo-transport - Yahoo IM system'
+ elog ' net-im/mu-conference - Jabber multi user conference'
+ echo
+ ewarn 'If upgrading from an older version, please stop jabberd BEFORE'
+ ewarn 'updating the init.d script, or you will end with a "dead" server.'
+ ewarn
+ ewarn 'The configuration filename has changed:'
+ ewarn ' Configure your server in /etc/jabber/jabberd.xml'
+ echo
+ ebeep
+}