pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/qmail-run Add scripts to wrap spamc and rspamc, s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/53ffdbf0e1d0
branches:  trunk
changeset: 312663:53ffdbf0e1d0
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Mon Sep 10 09:07:49 2018 +0000

description:
Add scripts to wrap spamc and rspamc, suitable for use in .qmail files
with e.g. condtomaildir(1). Bump version.

diffstat:

 mail/qmail-run/Makefile                           |  25 +++++++++-------------
 mail/qmail-run/PLIST                              |   4 ++-
 mail/qmail-run/files/qmail-isspam-rspamd.sh       |   6 +++++
 mail/qmail-run/files/qmail-isspam-spamassassin.sh |   6 +++++
 4 files changed, 25 insertions(+), 16 deletions(-)

diffs (84 lines):

diff -r 2955729a276c -r 53ffdbf0e1d0 mail/qmail-run/Makefile
--- a/mail/qmail-run/Makefile   Mon Sep 10 08:34:06 2018 +0000
+++ b/mail/qmail-run/Makefile   Mon Sep 10 09:07:49 2018 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.47 2018/08/01 07:15:21 schmonz Exp $
+# $NetBSD: Makefile,v 1.48 2018/09/10 09:07:49 schmonz Exp $
 #
 
-DISTNAME=              qmail-run-20180801
+DISTNAME=              qmail-run-20180910
 CATEGORIES=            mail
 MASTER_SITES=          # empty
 DISTFILES=             # empty
@@ -49,18 +49,11 @@
 .endif
 
 SUBST_CLASSES+=                paths
-SUBST_FILES.paths=     mailer.conf qmail-procmail
+SUBST_STAGE.paths=     pre-configure
+SUBST_FILES.paths=     mailer.conf qmail-isspam-* qmail-procmail
 SUBST_FILES.paths+=    qmail-qread-client spamdyke-ofmipd.conf
-SUBST_SED.paths+=      -e 's,@PREFIX@,${PREFIX},g'
-SUBST_SED.paths+=      -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
-SUBST_SED.paths+=      -e 's,@ECHO@,${ECHO},g'
-SUBST_SED.paths+=      -e 's,@SORT@,${SORT},g'
-SUBST_SED.paths+=      -e 's,@CAT@,${CAT},g'
-SUBST_SED.paths+=      -e 's,@SH@,${SH},g'
-SUBST_SED.paths+=      -e 's,@SED@,${SED},g'
-SUBST_SED.paths+=      -e 's,@PKGNAME@,${PKGNAME},g'
-SUBST_SED.paths+=      -e 's,@TRUE@,${TRUE},g'
-SUBST_STAGE.paths=     pre-configure
+SUBST_VARS.paths=      PKGNAME PKG_SYSCONFDIR PREFIX
+SUBST_VARS.paths+=     CAT ECHO GREP SED SH SORT TRUE
 
 .include "options.mk"
 
@@ -68,12 +61,14 @@
        for f in README.pkgsrc mailer.conf spamdyke-ofmipd.conf stunnel.conf; do \
            ${CP} ${FILESDIR}/$$f ${WRKDIR}/$$f;                        \
        done
-       for f in qmail-procmail qmail-qread-client; do \
+       for f in qmail-isspam-rspamd qmail-isspam-spamassassin \
+               qmail-procmail qmail-qread-client; do \
            ${CP} ${FILESDIR}/$$f.sh ${WRKDIR}/$$f;                     \
        done
 
 do-install:
-       for f in qmail-procmail qmail-qread-client; do \
+       for f in qmail-isspam-rspamd qmail-isspam-spamassassin \
+               qmail-procmail qmail-qread-client; do \
            ${INSTALL_SCRIPT} ${WRKDIR}/$$f ${DESTDIR}${PREFIX}/bin;    \
        done
        ${INSTALL_DATA} ${WRKDIR}/README.pkgsrc \
diff -r 2955729a276c -r 53ffdbf0e1d0 mail/qmail-run/PLIST
--- a/mail/qmail-run/PLIST      Mon Sep 10 08:34:06 2018 +0000
+++ b/mail/qmail-run/PLIST      Mon Sep 10 09:07:49 2018 +0000
@@ -1,4 +1,6 @@
-@comment $NetBSD: PLIST,v 1.10 2017/07/21 04:08:15 schmonz Exp $
+@comment $NetBSD: PLIST,v 1.11 2018/09/10 09:07:49 schmonz Exp $
+bin/qmail-isspam-rspamd
+bin/qmail-isspam-spamassassin
 bin/qmail-procmail
 bin/qmail-qread-client
 share/doc/qmail-run/README.pkgsrc
diff -r 2955729a276c -r 53ffdbf0e1d0 mail/qmail-run/files/qmail-isspam-rspamd.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qmail-run/files/qmail-isspam-rspamd.sh       Mon Sep 10 09:07:49 2018 +0000
@@ -0,0 +1,6 @@
+#!@SH@
+#
+# example usage from .qmail:
+# | condtomaildir ./Maildir/.Spam qmail-isspam-rspamd
+
+@PREFIX@/bin/rspamc --mime | @GREP@ -q '^X-Spam: yes$'
diff -r 2955729a276c -r 53ffdbf0e1d0 mail/qmail-run/files/qmail-isspam-spamassassin.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qmail-run/files/qmail-isspam-spamassassin.sh Mon Sep 10 09:07:49 2018 +0000
@@ -0,0 +1,6 @@
+#!@SH@
+#
+# example usage from .qmail:
+# | condtomaildir ./Maildir/.Spam qmail-isspam-spamassassin
+
+@PREFIX@/bin/except @PREFIX@/bin/spamc -c



Home | Main Index | Thread Index | Old Index