1 # Copyright 2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="OpenSMTPD filter for putting emails through rspamd"
9 HOMEPAGE="https://github.com/poolpOrg/filter-rspamd"
10 SRC_URI="https://github.com/poolpOrg/filter-rspamd/releases/download/0.1.5/filter-rspamd-0.1.5.tar.gz -> ${P}.tar.gz"
14 KEYWORDS="~amd64 ~x86"
18 RDEPEND="${DEPEND} mail-mta/opensmtpd"
21 S=${WORKDIR}/${P#opensmtpd-}
25 go build -ldflags="-s -w" -buildmode=pie filter-rspamd.go || die
30 exeinto /usr/libexec/opensmtpd