# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/net-im/jabberd/jabberd-1.4.3-r1.ebuild,v 1.2 2004/01/23 19:20:39 humpback Exp $ MY_PV="2.0s1" S="${WORKDIR}/${PN}-${MY_PV}" DESCRIPTION="Open Source Jabber Server" HOMEPAGE="http://jabberd.jabberstudio.org/2/" SRC_URI="http://www.jabberstudio.org/projects/jabberd2/releases/file/${PN}-${MY_PV}.tar.gz" SLOT="1" LICENSE="GPL-2" KEYWORDS="~x86" #Problems with db-4 leaving berkdb out IUSE="ldap ipv6 mysql postgres pam" #berkdb? (>=sys-libs/db-4.1.25_p1-r3) DEPEND="!net-im/jabber-server >=dev-libs/openssl-0.9.6b ldap? ( >=net-nds/openldap-2.1 ) mysql? ( >=dev-db/mysql-4.0.12 ) postgres? ( >=dev-db/postgresql-7.3.4 )" src_unpack() { unpack ${A} # cd ${S} # epatch ${FILESDIR}/jabberd2-configure-patch-00 } src_compile() { local enables local authreg local storage local myconf cd ${S} use ipv6 && enables="${enables} --enable-ipv6" #Storage drivers and Authentication Modules storage="fs" authreg="anon" #use berkdb && storage="${storage} db" && authreg="${authreg} db" use mysql && storage="${storage} mysql" && authreg="${authreg} mysql" use postgres && storage="${storage} pgsql" && authreg="${authreg} pgsql" use pam && authreg="${authreg} pam" use ldap && authreg="${authreg} ldap" #myconf=" ${enables} --enable-authreg='${authreg}' --enable-storage='${storage}'" ./configure \ ${enables} \ --enable-authreg="${authreg}" \ --enable-storage="${storage}" \ --exec-prefix=${D}/usr \ --prefix=${D}/ || die emake || die } src_install() { make install || die # einstall || die }