# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ S=${WORKDIR}/${P} 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} } 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}/sa-exim-4.0.so ${D}/usr/lib/exim4/sa-exim-4.0.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/local_scan/sa-exim.so" }