pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mail/opensmtpd-filter-rspamd



Module Name:    pkgsrc
Committed By:   vins
Date:           Mon Aug 28 16:26:10 UTC 2023

Added Files:
        pkgsrc/mail/opensmtpd-filter-rspamd: DESCR Makefile PLIST distinfo
            go-modules.mk
        pkgsrc/mail/opensmtpd-filter-rspamd/files: README.rspamd

Log Message:
mail/opensmtpd-filter-rspamd: import opensmtpd-filter-rspamd-0.1.8

filter-rspamd is an opensmtpd filter that passes mail through
rspamd to flag or reject spam messages at session time.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/opensmtpd-filter-rspamd/DESCR \
    pkgsrc/mail/opensmtpd-filter-rspamd/Makefile \
    pkgsrc/mail/opensmtpd-filter-rspamd/PLIST \
    pkgsrc/mail/opensmtpd-filter-rspamd/distinfo \
    pkgsrc/mail/opensmtpd-filter-rspamd/go-modules.mk
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/mail/opensmtpd-filter-rspamd/files/README.rspamd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/mail/opensmtpd-filter-rspamd/DESCR
diff -u /dev/null pkgsrc/mail/opensmtpd-filter-rspamd/DESCR:1.1
--- /dev/null   Mon Aug 28 16:26:10 2023
+++ pkgsrc/mail/opensmtpd-filter-rspamd/DESCR   Mon Aug 28 16:26:10 2023
@@ -0,0 +1,2 @@
+filter-rspamd is an opensmtpd filter that passes mail through
+rspamd to flag or reject spam messages at session time.
Index: pkgsrc/mail/opensmtpd-filter-rspamd/Makefile
diff -u /dev/null pkgsrc/mail/opensmtpd-filter-rspamd/Makefile:1.1
--- /dev/null   Mon Aug 28 16:26:10 2023
+++ pkgsrc/mail/opensmtpd-filter-rspamd/Makefile        Mon Aug 28 16:26:10 2023
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1 2023/08/28 16:26:10 vins Exp $
+
+DISTNAME=      filter-rspamd-0.1.8
+PKGNAME=       ${DISTNAME:S|^|opensmtpd-|}
+CATEGORIES=    mail
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=poolpOrg/}
+GITHUB_PROJECT=        filter-rspamd
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    vins%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/poolpOrg/filter-rspamd/
+COMMENT=       OpenSMTPD filter integration for the Rspamd daemon
+LICENSE=       isc
+
+DEPENDS+=      opensmtpd-[0-9]*:../../mail/opensmtpd
+DEPENDS+=      rspamd-[0-9]*:../../mail/rspamd
+
+SUBST_CLASSES+=                conf
+SUBST_STAGE.conf=      pre-configure
+SUBST_FILES.conf=      README.rspamd
+SUBST_VARS.conf=       PKG_SYSCONFDIR
+SUBST_MESSAGE.conf=    Replacing pkgsrc placeholders.
+
+GOPATH=        ${WRKDIR}/.gopath
+
+INSTALLATION_DIRS+=    libexec/opensmtpd ${PKGMANDIR}/man8
+INSTALLATION_DIRS+=    share/doc/opensmtpd/filters
+
+post-extract:
+       cp ${FILESDIR}/README.rspamd ${WRKSRC}
+
+do-install:
+       ${INSTALL_PROGRAM} ${GOPATH}/bin/filter-rspamd          \
+               ${DESTDIR}${PREFIX}/libexec/opensmtpd/
+       ${INSTALL_MAN} ${WRKSRC}/filter-rspamd.8                \
+               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
+
+post-install:
+       ${INSTALL_DATA} ${WRKSRC}/README.rspamd                 \
+               ${DESTDIR}${PREFIX}/share/doc/opensmtpd/filters
+
+.include "go-modules.mk"
+
+.include "../../lang/go/go-module.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/mail/opensmtpd-filter-rspamd/PLIST
diff -u /dev/null pkgsrc/mail/opensmtpd-filter-rspamd/PLIST:1.1
--- /dev/null   Mon Aug 28 16:26:10 2023
+++ pkgsrc/mail/opensmtpd-filter-rspamd/PLIST   Mon Aug 28 16:26:10 2023
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2023/08/28 16:26:10 vins Exp $
+libexec/opensmtpd/filter-rspamd
+man/man8/filter-rspamd.8
+share/doc/opensmtpd/filters/README.rspamd
Index: pkgsrc/mail/opensmtpd-filter-rspamd/distinfo
diff -u /dev/null pkgsrc/mail/opensmtpd-filter-rspamd/distinfo:1.1
--- /dev/null   Mon Aug 28 16:26:10 2023
+++ pkgsrc/mail/opensmtpd-filter-rspamd/distinfo        Mon Aug 28 16:26:10 2023
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1 2023/08/28 16:26:10 vins Exp $
+
+BLAKE2s (filter-rspamd-0.1.8.tar.gz) = 53b66d23b8f1abc6724ba2fe47779ac81233c68c2d59986b2afc93e6e2057e84
+SHA512 (filter-rspamd-0.1.8.tar.gz) = 54dc5ec496251e6a223ac05909f4d940c79ce2487e40e30a430da24fcc211983c40355fd91a609e7bb109be49051ca81f092e297f5c8c1e5a3e91a188b948f04
+Size (filter-rspamd-0.1.8.tar.gz) = 7449 bytes
+BLAKE2s (golang.org_x_sys_@v_v0.0.0-20200821140526-fda516888d29.mod) = 6b2b0a0ac9d77adff84f1aab70cc38a4dcf14418c326fcb2dde80f104fb41e9f
+SHA512 (golang.org_x_sys_@v_v0.0.0-20200821140526-fda516888d29.mod) = 0c7b940d567c7685dcb55c76c69aedeaab2170f4f3bde458994c879bf344169f34fb3f3ca899b0f138a8b0b8be5031217b57a6edf5980e6066ff5cb92d1ff9ab
+Size (golang.org_x_sys_@v_v0.0.0-20200821140526-fda516888d29.mod) = 33 bytes
+BLAKE2s (golang.org_x_sys_@v_v0.0.0-20200821140526-fda516888d29.zip) = 832044c83eb667cac7a9aeab74c741e1599491635e00606d671590d731d634c5
+SHA512 (golang.org_x_sys_@v_v0.0.0-20200821140526-fda516888d29.zip) = 6bd4e754b222d6cd1b9a331e2a761c1cadf7877c4ef3cf33502ac3c4089c013b9a5137a492e9611ad213a1247b8cf6edcb03172766584b9563e62880575ce20f
+Size (golang.org_x_sys_@v_v0.0.0-20200821140526-fda516888d29.zip) = 1487242 bytes
Index: pkgsrc/mail/opensmtpd-filter-rspamd/go-modules.mk
diff -u /dev/null pkgsrc/mail/opensmtpd-filter-rspamd/go-modules.mk:1.1
--- /dev/null   Mon Aug 28 16:26:10 2023
+++ pkgsrc/mail/opensmtpd-filter-rspamd/go-modules.mk   Mon Aug 28 16:26:10 2023
@@ -0,0 +1,4 @@
+# $NetBSD: go-modules.mk,v 1.1 2023/08/28 16:26:10 vins Exp $
+
+GO_MODULE_FILES+=      golang.org/x/sys/@v/v0.0.0-20200821140526-fda516888d29.mod
+GO_MODULE_FILES+=      golang.org/x/sys/@v/v0.0.0-20200821140526-fda516888d29.zip

Index: pkgsrc/mail/opensmtpd-filter-rspamd/files/README.rspamd
diff -u /dev/null pkgsrc/mail/opensmtpd-filter-rspamd/files/README.rspamd:1.1
--- /dev/null   Mon Aug 28 16:26:10 2023
+++ pkgsrc/mail/opensmtpd-filter-rspamd/files/README.rspamd     Mon Aug 28 16:26:10 2023
@@ -0,0 +1,18 @@
++-----------------------------------------------------------------------
+| filter-rspamd setup
++-----------------------------------------------------------------------
+
+To use the rspamd filter, you must declare it first in your OpenSMTPD 
+configuration.
+
+Edit the @PKG_SYSCONFDIR@/smtpd/smtpd.conf file to declare the filter:
+
+  filter "rspamd" proc-exec "filter-rspamd"
+
+Then add the filter to each listener that should be filtered:
+
+  listen on socket filter "rspamd"
+  listen on all filter "rspamd"
+
+The filter itself doesn't have a configuration and depends upon 
+the Rspamd daemon configuration. 



Home | Main Index | Thread Index | Old Index