# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION='Exim SpamAssassin at SMTP time' HOMEPAGE="http://marc.merlins.org/linux/exim/sa.html" SRC_URI="http://marc.merlins.org/linux/exim/files/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" DEPEND=">=exim-4.32-r1" src_unpack() { unpack ${A} cd ${S} perl -i -pe 's|^SACONF.*|SACONF=/etc/exim/sa-exim.conf|' Makefile } src_compile() { emake || die } src_install() { install -o root -g root -d -m 755 ${D}/usr/lib/exim4 install -o root -g root -m 755 ${S}/accept.so ${D}/usr/lib/exim4/accept.so install -o root -g root -m 755 ${S}/${P}.so ${D}/usr/lib/exim4/sa-exim.so } pkg_postinst() { einfo "To use sa-exim, you must edit your exim.conf" einfo "Set the local_scan_path variable as follows:" einfo "local_scan_path = /usr/lib/exim4/sa-exim.so" }