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 ofmipd-with-user-cdb, a wrapper to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cb51f1beafc6
branches:  trunk
changeset: 324629:cb51f1beafc6
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Wed Oct 24 16:28:28 2018 +0000

description:
Add ofmipd-with-user-cdb, a wrapper to let ofmipd users control their
own CDB of address rewriting rules. Ride previous bump.

diffstat:

 mail/qmail-run/MESSAGE                       |   5 ++++-
 mail/qmail-run/Makefile                      |   9 ++++++---
 mail/qmail-run/PLIST                         |   3 ++-
 mail/qmail-run/files/ofmipd-with-user-cdb.sh |  16 ++++++++++++++++
 4 files changed, 28 insertions(+), 5 deletions(-)

diffs (85 lines):

diff -r fa42850253c6 -r cb51f1beafc6 mail/qmail-run/MESSAGE
--- a/mail/qmail-run/MESSAGE    Wed Oct 24 15:51:38 2018 +0000
+++ b/mail/qmail-run/MESSAGE    Wed Oct 24 16:28:28 2018 +0000
@@ -1,5 +1,5 @@
 ===========================================================================
-$NetBSD: MESSAGE,v 1.8 2018/10/24 15:46:54 schmonz Exp $
+$NetBSD: MESSAGE,v 1.9 2018/10/24 16:28:28 schmonz Exp $
 
 Please read ${PREFIX}/share/doc/qmail-run/README.pkgsrc.
 
@@ -28,6 +28,9 @@
 Filtering outgoing submissions:
 - List qmail-qfilter programs in ${PKG_SYSCONFDIR}/control/ofmipfilters
 
+User-controlled ofmipd address rewriting:
+- Set qmailofmipd_ofmipdcmd=${PREFIX}/bin/ofmipd-with-user-cdb in /etc/rc.conf
+
 Fetching Maildirs via POP3:
 - Set qmailpop3d=YES in /etc/rc.conf
 
diff -r fa42850253c6 -r cb51f1beafc6 mail/qmail-run/Makefile
--- a/mail/qmail-run/Makefile   Wed Oct 24 15:51:38 2018 +0000
+++ b/mail/qmail-run/Makefile   Wed Oct 24 16:28:28 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.49 2018/10/24 15:46:54 schmonz Exp $
+# $NetBSD: Makefile,v 1.50 2018/10/24 16:28:28 schmonz Exp $
 #
 
 DISTNAME=              qmail-run-20181024
@@ -61,6 +61,7 @@
 SUBST_CLASSES+=                paths
 SUBST_STAGE.paths=     pre-configure
 SUBST_FILES.paths=     mailer.conf
+SUBST_FILES.paths+=    ofmipd-with-user-cdb
 SUBST_FILES.paths+=    qmail-isspam-* qmail-procmail qmail-qread-client
 SUBST_FILES.paths+=    tcp.*
 SUBST_VARS.paths=      PKGNAME PKG_SYSCONFDIR PREFIX
@@ -73,13 +74,15 @@
                tcp.ofmip tcp.pop3 tcp.smtp; do \
                ${CP} ${FILESDIR}/$$f ${WRKDIR}/$$f; \
        done; \
-       for f in qmail-isspam-rspamd qmail-isspam-spamassassin \
+       for f in ofmipd-with-user-cdb \
+               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-isspam-rspamd qmail-isspam-spamassassin \
+       for f in ofmipd-with-user-cdb \
+               qmail-isspam-rspamd qmail-isspam-spamassassin \
                qmail-procmail qmail-qread-client; do \
                ${INSTALL_SCRIPT} ${WRKDIR}/$$f ${DESTDIR}${PREFIX}/bin; \
        done
diff -r fa42850253c6 -r cb51f1beafc6 mail/qmail-run/PLIST
--- a/mail/qmail-run/PLIST      Wed Oct 24 15:51:38 2018 +0000
+++ b/mail/qmail-run/PLIST      Wed Oct 24 16:28:28 2018 +0000
@@ -1,4 +1,5 @@
-@comment $NetBSD: PLIST,v 1.12 2018/10/24 15:46:54 schmonz Exp $
+@comment $NetBSD: PLIST,v 1.13 2018/10/24 16:28:28 schmonz Exp $
+bin/ofmipd-with-user-cdb
 bin/qmail-isspam-rspamd
 bin/qmail-isspam-spamassassin
 bin/qmail-procmail
diff -r fa42850253c6 -r cb51f1beafc6 mail/qmail-run/files/ofmipd-with-user-cdb.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qmail-run/files/ofmipd-with-user-cdb.sh      Wed Oct 24 16:28:28 2018 +0000
@@ -0,0 +1,16 @@
+#!@SH@
+#
+# $NetBSD: ofmipd-with-user-cdb.sh,v 1.1 2018/10/24 16:28:28 schmonz Exp $
+#
+# @PKGNAME@ wrapper to let ofmipd users control their own CDB
+# of address rewriting rules.
+# Requires qmail-acceptutils.
+#
+
+user_cdb="$HOME/.ofmipd/rules.cdb"
+
+if [ -f "${user_cdb}" ]; then
+       exec @PREFIX@/bin/ofmipd "${user_cdb}" "$@"
+else
+       exec @PREFIX@/bin/ofmipd "$@"
+fi



Home | Main Index | Thread Index | Old Index