summaryrefslogtreecommitdiff
path: root/mail-filter/mapson/mapson-3.3.1.ebuild
blob: 2dff71fa38e781c15199dcb0f7179590341e86d7 (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
44
45
46
47
48
49
50
51
52
53
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools

DESCRIPTION="A challenge/response-based white-list spam filter"
HOMEPAGE="http://mapson.sourceforge.net/"
SRC_URI="https://downloads.sourceforge.net/mapson/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="debug"

RDEPEND="
	acct-user/mail
	virtual/mta
"
DEPEND="${RDEPEND}"

PATCHES=(
	"${FILESDIR}"/${PN}-3.3-respect-AR.patch
)

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	econf $(use_with debug)
}

src_install() {
	emake DESTDIR="${ED}" install

	dodoc AUTHORS INSTALL NEWS README
	doman doc/mapson.1

	docinto html
	dodoc doc/mapson.html

	insinto /etc/mapson
	newins sample-config mapson.config

	insinto /usr/share/mapson
	newins sample-challenge-template challenge-template

	rm -f "${ED}"/etc/sample-config || die
	rm -f "${ED}"/usr/share/{mapson.html,sample-challenge-template} || die
}