# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: IUSE="doc" DESCRIPTION="Bayesian spam filter designed with fast algorithms, and tuned for speed." HOMEPAGE="http://bogofilter.sourceforge.net/" SRC_URI="mirror://sourceforge/bogofilter/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~ppc ~x86 ~sparc ~amd64" DEPEND="virtual/glibc >=sys-libs/db-3 doc? ( app-text/xmlto )" src_install() { make DESTDIR=${D} install || die exeinto /usr/lib/${PN}/tuning insinto /usr/lib/${PN}/tuning doexe tuning/bogolex.sh tuning/bogol tuning/bogotune doins tuning/README.bogotune tuning/bogol.1 tuning/bogotune.1 exeinto /usr/lib/${PN}/contrib doexe contrib/bogofilter-qfe contrib/bogogrep contrib/mime.get.rfc822 contrib/parmtest.sh doexe contrib/printmaildir.pl contrib/randomtrain contrib/scramble contrib/bogofilter-milter.pl doexe contrib/bogominitrain.pl insinto /usr/lib/${PN}/contrib doins contrib/README.randomtrain contrib/bogo.R contrib/trainbogo.sh dodoc AUTHORS INSTALL COPYING METHODS NEWS README README.cvs TODO UPGRADE dodoc RELEASE.NOTES-0.1* CHANGES-0.1* doc/integrating-with-* doc/*.HOWTO dodoc contrib/mailfilter.example contrib/procmailrc.example dodir /usr/share/doc/${P}/samples mv ${D}/etc/* ${D}/usr/share/doc/${PF}/samples/ rmdir ${D}/etc if use doc; then dohtml doc/*.html else dohtml doc/bogofilter-faq.html fi } pkg_postinst() { einfo "For best results it is recommended to rebuild your wordlists," einfo "because the header handling was improved." einfo "" einfo "With version 0.14 the options of bogofilter have changed." einfo "If you update from an older version, you eventually must change" einfo "your configuration." einfo "" einfo "Read bogofilter's manual 'man bogofilter' and have a look at" einfo "the examples in the doc directory for tips on how" einfo "to integrate bogofilter with procmail, maildrop, postfix or qmail." }