summaryrefslogtreecommitdiff
blob: 28c0b53c9642c48259a420d3f012f57791a280f8 (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit eutils multilib toolchain-funcs

DESCRIPTION="Deleted to trash IMAP plugin for Dovecot"
HOMEPAGE="https://github.com/lexbrugman/dovecot_deleted_to_trash"
SRC_URI="https://github.com/lexbrugman/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="ZLIB"
KEYWORDS="~amd64 ~x86"
SLOT="0"

RDEPEND="=net-mail/dovecot-2.2*
	!!<net-mail/dovecot-2.2.0
	!!<=mail-filter/dovecot_deleted_to_trash-0.3
	"
DEPEND="${RDEPEND}"

src_prepare() {
	tc-export CC
	sed -i \
		-e "/DOVECOT_IMAP_PLUGIN_PATH/s:lib/dovecot/modules:$(get_libdir)/dovecot:" \
		-e "/PLUGIN_NAME/s/lib/lib99/" \
		Makefile || die
	epatch_user
}

src_install() {
	default
	insinto /etc/dovecot/conf.d
	doins "${FILESDIR}"/29-delete-to-trash.conf
}