mail-filter/opensmtpd-filter-rspamd: add new package
authorJason A. Donenfeld <zx2c4@gentoo.org>
Wed, 5 Feb 2020 13:25:21 +0000 (14:25 +0100)
committerJason A. Donenfeld <zx2c4@gentoo.org>
Wed, 5 Feb 2020 13:27:04 +0000 (14:27 +0100)
Package-Manager: Portage-2.3.86, Repoman-2.3.20
Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
mail-filter/opensmtpd-filter-rspamd/Manifest [new file with mode: 0644]
mail-filter/opensmtpd-filter-rspamd/metadata.xml [new file with mode: 0644]
mail-filter/opensmtpd-filter-rspamd/opensmtpd-filter-rspamd-0.1.5.ebuild [new file with mode: 0644]

diff --git a/mail-filter/opensmtpd-filter-rspamd/Manifest b/mail-filter/opensmtpd-filter-rspamd/Manifest
new file mode 100644 (file)
index 0000000..1915454
--- /dev/null
@@ -0,0 +1 @@
+DIST opensmtpd-filter-rspamd-0.1.5.tar.gz 4829 BLAKE2B 1a08431b11501ce30631e9db812e5742180bee8b995d8b07eacd35efd385a5213bb735218143a78ae8e8a9f4c6f791653f7e8f19cdb174236949364d587741d2 SHA512 9f11f5fa319e8f0e13e7f6b2cefe1a3018715be494e9bef51e017320ba99f75f1f65833b2c03a283cbfade49e8dfcd6255ea89d9486cd266ea78614c8482ce63
diff --git a/mail-filter/opensmtpd-filter-rspamd/metadata.xml b/mail-filter/opensmtpd-filter-rspamd/metadata.xml
new file mode 100644 (file)
index 0000000..915f002
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>zx2c4@gentoo.org</email>
+               <name>Jason A. Donenfeld</name>
+       </maintainer>
+</pkgmetadata>
diff --git a/mail-filter/opensmtpd-filter-rspamd/opensmtpd-filter-rspamd-0.1.5.ebuild b/mail-filter/opensmtpd-filter-rspamd/opensmtpd-filter-rspamd-0.1.5.ebuild
new file mode 100644 (file)
index 0000000..e55019d
--- /dev/null
@@ -0,0 +1,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
+}