# Copyright 1999-2005 Gentoo Foundation # (c) 2006 drJeckyll - drJeckyll@Jeckyll.net # Distributed under the terms of the GNU General Public License v2 # $Header: /WORK/itCMS/images/JeckyllNet/download/ebuilds/sqwebmail-5.1.1.ebuild,v 1.1 2006/07/09 15:40:17 drJeckyll Exp $ MY_PV="${PV/_rc/-rc}" MY_P="${PN}-${MY_PV}" DESCRIPTION="Web client which work directly with maildirs" HOMEPAGE="http://www.courier-mta.org/sqwebmail/" SRC_URI="http://kent.dl.sourceforge.net/sourceforge/courier/sqwebmail-5.1.1.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86" IUSE="fastcgi https https_login" DEPEND="mail-mta/qmail" RDEPEND="${DEPEND} sys-libs/gdbm" S=${WORKDIR}/${MY_P} pkg_preinst() { einfo "If you like to change your password inside sqwebmail," einfo "please emerge expect first." } src_unpack() { unpack ${A} } src_compile() { local dir_htdocs="/var/www/localhost" local dir_htdocs_images="${dir_htdocs}/htdocs/sqwebmail" local url_htdocs_images="/sqwebmail" local dir_cgibin="${dir_htdocs}/cgi-bin" local dir_mime="/etc/mime.types" local dir_cache="/var/cache/sqwebmail" local dir_lib="/usr/lib" local myopts="" use fastcgi \ && myopts="${myopts} --with-fcgi" use httpd \ && myopts="${myopts} --enable-https" use https_login \ && myopts="${myopts} --enable-https=login" econf ${myopts} \ --with-db=gdbm \ --enable-imageurl=${url_htdocs_images} \ --without-ispell \ --disable-autorenamesent \ --enable-cgibindir=${dir_cgibin} \ --enable-imagedir=${dir_htdocs_images} \ --enable-mimetypes=${dir_mime} \ --with-cachedir=${dir_cache} \ --libexecdir=${dir_lib} \ --libdir=${dir_lib} \ --with-maxargsize=100000000 \ --with-maxformargsize=100000000 \ || die "econf failed" emake || die } src_install() { make DESTDIR="${D}" install || die dodoc AUTHORS INSTALL README.hooks BUGS TODO CHANGELOG TRANSLATORS NEWS FAQ README contrib/* }