# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit qmail eutils webapp autotools # the RESTRICT is because the vpopmail lib directory is locked down # and non-root can't access them. RESTRICT="userpriv" MY_P=${P/_rc/-rc} DESCRIPTION="A web interface for managing a qmail system with virtual domains" HOMEPAGE="http://www.inter7.com/qmailadmin.html" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" WEBAPP_MANUAL_SLOT="yes" KEYWORDS="amd64 arm ~hppa ppc s390 sh sparc x86" IUSE="maildrop" DEPEND="virtual/qmail >=net-mail/vpopmail-5.3 net-mail/autorespond maildrop? ( >=mail-filter/maildrop-2.0.1 )" S="${WORKDIR}"/${MY_P} src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${PN}-1.2.9-maildir.patch epatch "${FILESDIR}"/${PN}-1.2.12-quota-overflow.patch eautoreconf } src_compile() { # Pass spam stuff through $@ so we get the quoting right if use maildrop ; then set -- --enable-modify-spam \ --enable-spam-command='|preline maildrop /etc/maildroprc' else set -- fi # If vpopmail is built with mysql, we need to pick that up. CFLAGS="${CFLAGS} $(