summaryrefslogtreecommitdiff
blob: 3e8aa64faa2ede28264ba40f7e1a164e4df17f2d (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
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

DESCRIPTION="sendmail milter for amavisd-new"
HOMEPAGE="https://github.com/prehor/amavisd-milter/"
SRC_URI="https://github.com/prehor/${PN}/releases/download/${PV}/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="|| ( mail-filter/libmilter mail-mta/sendmail )
	elibc_uclibc? ( net-libs/libnsl:0= )"
RDEPEND="${DEPEND}
	mail-filter/amavisd-new"

DOCS=( AMAVISD-MILTER.md CHANGES INSTALL )

src_install() {
	default

	newinitd "${FILESDIR}/amavisd-milter.initd-r2" amavisd-milter
	newconfd "${FILESDIR}/amavisd-milter.confd" amavisd-milter
}