blob: e55019d353a244097de43c1a68d2b820cc0c149d (
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
|
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit golang-base
DESCRIPTION="OpenSMTPD filter for putting emails through rspamd"
HOMEPAGE="https://github.com/poolpOrg/filter-rspamd"
SRC_URI="https://github.com/poolpOrg/filter-rspamd/releases/download/0.1.5/filter-rspamd-0.1.5.tar.gz -> ${P}.tar.gz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND} mail-mta/opensmtpd"
BDEPEND=""
S=${WORKDIR}/${P#opensmtpd-}
DOCS=( README.md )
src_compile() {
go build -ldflags="-s -w" -buildmode=pie filter-rspamd.go || die
}
src_install() {
default
exeinto /usr/libexec/opensmtpd
doexe filter-rspamd
}
|