blob: 3403b0aa53ebf6a1bb0a4635f0b39d13b14676e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit eutils
DESCRIPTION="gross - Greylisting of suspicious sources"
HOMEPAGE="http://code.google.com/p/gross/"
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ares milter"
DEPEND="ares? ( net-dns/c-ares )
milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}"/${PN}-fix-paths-and-rm-getline.patch
}
src_configure() {
econf \
--sysconfdir=/etc/mail/gross \
$(use_enable milter) \
$(use_enable ares dnsbl)
}
src_install() {
emake DESTDIR="${D}" install || die "emake failed"
diropts -o nobody -g nobody
dodir /var/run/grossd || die "dodir failed"
keepdir /var/db/grossd || die "dodir db failed"
dodoc ChangeLog NEWS README doc/examples/* || die "dodoc failed"
newinitd "${FILESDIR}"/grossd.initd grossd || die "newinitd failed"
newconfd "${FILESDIR}"/grossd.confd grossd || die "newconfd failed"
}
|