# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="plugins-ra is a collection of qmail-spp plugins" HOMEPAGE="http://cablemodem.fibertel.com.ar/lateral/stories/39.html" SRC_URI="http://cablemodem.fibertel.com.ar/lateral/static/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="spf vpopmail" DEPEND="virtual/qmail >=mail-mta/qmail-1.03-r16 spf? ( mail-filter/libspf2 ) vpopmail? ( net-mail/vpopmail )" # Omitting ipthrottle - http://bugs.gentoo.org/show_bug.cgi?id=49816 TARGETS="authchecks rblchecks mfdnschecks hardcoderbl authlogger msa localmail tarpit" MANPAGES="plugins-ra.8 authchecks.8 rblchecks.8 mfdnschecks.8 hardcoderbl.8 authlogger.8 msa.8 localmail.8 tarpit.8" if use spf ; then TARGETS="${TARGETS} spfchecks" MANPAGES="${MANPAGES} spfchecks.8" fi if use vpopmail ; then TARGETS="${TARGETS} rcptchecks" MANPAGES="${MANPAGES} rcptchecks.8" fi src_compile() { emake CFLAGS="${CFLAGS}" TARGETS="${TARGETS}" MANPAGES="${MANPAGES}" || die "emake failed" } src_install() { emake DESTDIR="${D}" CFLAGS="${CFLAGS}" TARGETS="${TARGETS}" MANPAGES="${MANPAGES}" install || die "make install failed" fowners -R root:qmail /var/qmail/plugins keepdir /var/qmail/plugins dodoc CHANGELOG README COPYING } pkg_postinst() { einfo einfo "For more information:" einfo " * man plugins-ra" einfo " * http://cablemodem.fibertel.com.ar/lateral/stories/39.html" einfo " * http://qmail-spp.sf.net" }