# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/net-mail/disspam/disspam-0.12.ebuild,v 1.3 2003/07/13 13:32:32 aliz Exp $ S=${WORKDIR}/perdition DESCRIPTION="Perdition is a fully featured POP3 and IMAP4 proxy server. It is able to handle both SSL and non-SSL connections and redirect users to a real-server based on a database lookup. Perdition supports modular based database access. ODBC, MySQL, PostgreSQL, GDBM, POSIX Regular Expression and NIS modules ship with the distribution. The API for modules is open allowing abitary modules to be written to allow access to any data store." HOMEPAGE="http://www.vergenet.net/linux/perdition/" SRC_URI="http://www.vergenet.net/linux/perdition/download/${PV}/${P}.tar.gz perdition-inits-${PV}.tar.gz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 ~ppc ~sparc ~hppa ~alpha ~mips" IUSE="nls pam mysql gdbm" DEPEND="!net-mail/mailx !net-mail/nmh dev-util/guile dev-libs/vanessa-logger dev-libs/vanessa-adt net-libs/vanessa-socket gdbm? ( sys-libs/gdbm ) mysql? ( dev-db/mysql ) nls? ( sys-devel/gettext )" S=${WORKDIR}/${P} src_compile() { use nls || myconf="${myconf} --disable-nls" use pam || myconf="${myconf} --disable-pam" use ssl || myconf="${myconf} --disable-ssl" use mysql || myconf="${myconf} --disable-mysql" use odbc || myconf="${myconf} --disable-odbc" use pg || myconf="${myconf} --disable-pg" use gdbm || myconf="${myconf} --disable-gdbm" use bdb || myconf="${myconf} --disable-bdb" use nis || myconf="${myconf} --disable-nis" use ldap || myconf="${myconf} --disable-ldap" use gdbm && myconf="${myconf} --with-gdbm" ./configure \ --host=${CHOST} \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --infodir=/usr/share/info \ --sharedstatedir=/var \ --mandir=/usr/share/man \ --disable-sendmail \ ${myconf} || die "./configure failed" emake || die } src_install() { # make DESTDIR=${D} install || die mkdir -p ${D}/usr/share/man/man8 einstall dodoc README AUTHORS TODO exeinto /etc/init.d newexe ${WORKDIR}/perdition.initd perdition insinto /etc/conf.d newins ${WORKDIR}/perdition.confd perdition }