# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils webapp depend.php DESCRIPTION="SmartSieve is a web based graphical user interface for creating and managing sieve scripts for mail filtering and vacation messaging on a cyrus imap mail server. Written in PHP, SmartSieve is easy to configure and use." HOMEPAGE="http://smartsieve.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${PN}-${PV/_rc/-RC}.tar.gz http://www.rename-it.nl/dovecot/patches/${PN}.patch" LICENSE="GPL-2" KEYWORDS="~amd64 ~ppc ~sparc ~x86" IUSE="" DEPEND="dev-lang/php[imap,crypt]" RDEPEND="${DEPEND}" S="${WORKDIR}/${PN}-${PV/_rc/-rc}" src_prepare() { # Allow smartsieve to work with Dovecot epatch "${DISTDIR}"/${PN}.patch || die "Failed to patch Managesieve.php" } src_install () { local mydocs="ChangeLog NOTICE CHANGES README TODO" webapp_src_preinst dodoc ${mydocs} || die rm -f ${mydocs} INSTALL COPYING insinto "${MY_HTDOCSDIR}" doins -r . find conf/ -type f | while read foo; do webapp_configfile "${MY_HTDOCSDIR}"/${foo} # webapp_serverowned "${MY_HTDOCSDIR}"/${foo} done webapp_src_install } pkg_postinst() { elog "You need to emerge dev-lang/PEAR-Log if you want to use logging." elog elog "If you want to use another cryptography library for encryption then" elog "emerge dev-php/PEAR-Crypt_RC4 and set the crypt_lib to 'RC4'" elog }