pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/qremote Initial import of qremote, an experimenta...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a3c0777052e0
branches:  trunk
changeset: 441365:a3c0777052e0
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Mon Nov 02 10:24:58 2020 +0000

description:
Initial import of qremote, an experimental qmail-remote replacement with
CurveCP support.

qmail-qremote resolves IP addresses for SMTP server and then calls
either tcpclient or qmail-curvecpclient for TCP or CurveCP connections,
respectively. Once the connection is established, qmail-rsmtp executes
to send mail via SMTP.

diffstat:

 mail/qremote/DESCR                          |   7 +++++
 mail/qremote/Makefile                       |  34 +++++++++++++++++++++++++++++
 mail/qremote/PLIST                          |   5 ++++
 mail/qremote/distinfo                       |   9 +++++++
 mail/qremote/patches/patch-Makefile         |  20 +++++++++++++++++
 mail/qremote/patches/patch-nacl-20110221_do |  27 +++++++++++++++++++++++
 mail/qremote/patches/patch-qmail-remote.c   |  15 ++++++++++++
 7 files changed, 117 insertions(+), 0 deletions(-)

diffs (145 lines):

diff -r b24a54711ca0 -r a3c0777052e0 mail/qremote/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qremote/DESCR        Mon Nov 02 10:24:58 2020 +0000
@@ -0,0 +1,7 @@
+qremote is an experimental drop-in replacement for qmail's qmail-remote
+with CurveCP support.
+
+qmail-qremote resolves IP addresses for SMTP server and then calls
+either tcpclient or qmail-curvecpclient for TCP or CurveCP connections,
+respectively. Once the connection is established, qmail-rsmtp executes
+to send mail via SMTP.
diff -r b24a54711ca0 -r a3c0777052e0 mail/qremote/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qremote/Makefile     Mon Nov 02 10:24:58 2020 +0000
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1 2020/11/02 10:24:58 schmonz Exp $
+
+DISTNAME=              qremote-20131231
+CATEGORIES=            mail
+MASTER_SITES=          ${HOMEPAGE}
+EXTRACT_SUFX=          .tar.bz2
+
+MAINTAINER=            schmonz%NetBSD.org@localhost
+HOMEPAGE=              https://mojzis.com/software/qremote/
+COMMENT=               Experimental qmail-remote replacement with CurveCP support
+LICENSE=               public-domain
+
+DEPENDS+=              {ucspi-tcp6-[0-9]*,ucspi-tcp-[0-9]*}:../../net/ucspi-tcp
+
+DJB_RESTRICTED=                no
+
+USE_LANGUAGES=         c c++
+
+MAKE_JOBS_SAFE=                no
+
+BUILD_DEFS+=           QMAILDIR
+
+INSTALLATION_DIRS=     bin
+
+post-build:
+       cd ${WRKSRC} && ${MV} qmail-remote qmail-qremote
+
+do-install:
+       for i in qremote curvecpclient curvecpmessage rsmtp; do \
+         ${INSTALL_PROGRAM} ${WRKSRC}/qmail-$${i} ${DESTDIR}${PREFIX}/bin; \
+       done
+
+.include "../../mk/djbware.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r b24a54711ca0 -r a3c0777052e0 mail/qremote/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qremote/PLIST        Mon Nov 02 10:24:58 2020 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2020/11/02 10:24:58 schmonz Exp $
+bin/qmail-curvecpclient
+bin/qmail-curvecpmessage
+bin/qmail-qremote
+bin/qmail-rsmtp
diff -r b24a54711ca0 -r a3c0777052e0 mail/qremote/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qremote/distinfo     Mon Nov 02 10:24:58 2020 +0000
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1 2020/11/02 10:24:58 schmonz Exp $
+
+SHA1 (qremote-20131231.tar.bz2) = 4d47ac62f1d570b4229c6132f460f70001f244e9
+RMD160 (qremote-20131231.tar.bz2) = 770a685bd91a9392b9225cc19319a0354eff5ba4
+SHA512 (qremote-20131231.tar.bz2) = 234691baf85c2256ac4a2dcfc23a3e136fecf22ecabac2b992dd157439d8bf83813c7ee2a1a8430386bbea6ce8526469cb407b67860605cb6a09963ec96df10c
+Size (qremote-20131231.tar.bz2) = 217306 bytes
+SHA1 (patch-Makefile) = d327047caa52b974e6017eb5e7b393a82059cdd4
+SHA1 (patch-nacl-20110221_do) = 0f11d6a2d0c452de457f3b5e565527b5f4a689ec
+SHA1 (patch-qmail-remote.c) = 0fd024911347d12e854b6f7aaefd4e234262c2c1
diff -r b24a54711ca0 -r a3c0777052e0 mail/qremote/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qremote/patches/patch-Makefile       Mon Nov 02 10:24:58 2020 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-Makefile,v 1.1 2020/11/02 10:24:58 schmonz Exp $
+
+Find binaries where we built them.
+
+--- Makefile.orig      2013-04-16 06:11:06.000000000 +0000
++++ Makefile
+@@ -1199,9 +1199,9 @@ load qmail-tcpclient.o library.a socket.
+       ./load qmail-tcpclient library.a `cat socket.lib`
+ 
+ qmail-curvecpclient:
+-      test -f "nacl-20110221/build/`hostname | sed 's/\..*//' | tr -cd '[a-z][A-Z][0-9]'`/bin/curvecpclient" || ( cd nacl-20110221; ./do )
+-      cp "nacl-20110221/build/`hostname | sed 's/\..*//' | tr -cd '[a-z][A-Z][0-9]'`/bin/curvecpclient" qmail-curvecpclient
++      test -f "nacl-20110221/build/pkgsrchostname/bin/curvecpclient" || ( cd nacl-20110221; ./do )
++      cp "nacl-20110221/build/pkgsrchostname/bin/curvecpclient" qmail-curvecpclient
+ 
+ qmail-curvecpmessage:
+-      test -f "nacl-20110221/build/`hostname | sed 's/\..*//' | tr -cd '[a-z][A-Z][0-9]'`/bin/curvecpmessage" || ( cd nacl-20110221; ./do )
+-      cp "nacl-20110221/build/`hostname | sed 's/\..*//' | tr -cd '[a-z][A-Z][0-9]'`/bin/curvecpmessage" qmail-curvecpmessage
++      test -f "nacl-20110221/build/pkgsrchostname/bin/curvecpmessage" || ( cd nacl-20110221; ./do )
++      cp "nacl-20110221/build/pkgsrchostname/bin/curvecpmessage" qmail-curvecpmessage
diff -r b24a54711ca0 -r a3c0777052e0 mail/qremote/patches/patch-nacl-20110221_do
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qremote/patches/patch-nacl-20110221_do       Mon Nov 02 10:24:58 2020 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-nacl-20110221_do,v 1.1 2020/11/02 10:24:58 schmonz Exp $
+
+Taken from security/nacl:
+
+Don't bake build host into anything.
+Show build output.
+
+--- nacl-20110221/do.orig      2012-08-25 06:57:17.000000000 +0000
++++ nacl-20110221/do
+@@ -6,7 +6,7 @@
+ 
+ version=`cat version`
+ project=nacl
+-shorthostname=`hostname | sed 's/\..*//' | tr -cd '[a-z][A-Z][0-9]'`
++shorthostname='pkgsrchostname'
+ 
+ top="`pwd`/build/$shorthostname"
+ bin="$top/bin"
+@@ -38,7 +38,7 @@ mkdir -p "$bin"
+ mkdir -p "$lib"
+ mkdir -p "$include"
+ 
+-exec >"$top/log"
++exec | tee "$top/log"
+ exec 2>&1
+ exec 5>"$top/data"
+ exec </dev/null
diff -r b24a54711ca0 -r a3c0777052e0 mail/qremote/patches/patch-qmail-remote.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qremote/patches/patch-qmail-remote.c Mon Nov 02 10:24:58 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-qmail-remote.c,v 1.1 2020/11/02 10:24:58 schmonz Exp $
+
+The bundled tcpclient isn't special; use an installed one.
+
+--- qmail-remote.c.orig        2013-04-14 10:07:50.000000000 +0000
++++ qmail-remote.c
+@@ -139,7 +139,7 @@ void child(stralloc *d1, stralloc *d2, s
+         run[i++] = "-c";
+     }
+     else {
+-        run[i++] = "qmail-tcpclient";
++        run[i++] = "tcpclient";
+         run[i++] = "-T";
+         run[i++] = strtimeout;
+         run[i++] = "-HDRl0";



Home | Main Index | Thread Index | Old Index