1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="gross - Greylisting of suspicious sources"
10 HOMEPAGE="http://code.google.com/p/gross/"
11 SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
18 DEPEND="ares? ( net-dns/c-ares )
19 milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )"
23 epatch "${FILESDIR}"/${PN}-fix-paths-and-rm-getline.patch
28 --sysconfdir=/etc/mail/gross \
29 $(use_enable milter) \
30 $(use_enable ares dnsbl)
34 emake DESTDIR="${D}" install || die "emake failed"
35 diropts -o nobody -g nobody
36 dodir /var/run/grossd || die "dodir failed"
37 keepdir /var/db/grossd || die "dodir db failed"
38 dodoc ChangeLog NEWS README doc/examples/* || die "dodoc failed"
39 newinitd "${FILESDIR}"/grossd.initd grossd || die "newinitd failed"
40 newconfd "${FILESDIR}"/grossd.confd grossd || die "newconfd failed"