summaryrefslogtreecommitdiff
blob: 09af6b16b2664ec0e4f855d21c72ed803222f840 (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
42
43
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="DKIM filter for Courier-MTA"
HOMEPAGE="https://www.tana.it/sw/zdkimfilter"
SRC_URI="https://www.tana.it/sw/zdkimfilter/${P}.tar.gz"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="debug"

DEPEND="net-libs/gnutls
	mail-mta/courier
	dev-db/opendbx
	dev-libs/nettle:=
	net-dns/libidn2:=
	dev-libs/libunistring:=
	dev-libs/libbsd"
RDEPEND="${DEPEND}"

# Tests don't work with portage sandbox
RESTRICT="test"

src_configure() {
	econf $(use_enable debug)
}

src_compile() {
	emake AR=$(tc-getAR)
}

src_install() {
	emake DESTDIR="${D}" install
	diropts -o mail -g mail
	dodir /etc/courier/filters/keys
	dodoc release-notes-*.txt README ChangeLog
	dodoc odbx_example.{conf,sql}
}