pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/qmail-autoresponder Add qmail-autoresponder, a ra...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fe1a26743494
branches:  trunk
changeset: 369348:fe1a26743494
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Thu Sep 28 17:27:34 2017 +0000

description:
Add qmail-autoresponder, a rate-limited autoresponder for qmail.

Features:

- Limits rate of automatic responses (defaults to a maximum of one
  message every hour).
- Will not respond to nearly every type of mailing list or bulk email.
- Will not respond to bounce messages or MAILER-DAEMON.
- Bounces looping messages.
- Can insert the original subject into the response.
- Can copy original message into response.
- Can use links in the rate-limiting data directory to limit inode usage
  to a single inode.
- Can limit responses to a certain date/time range.

diffstat:

 mail/qmail-autoresponder/DESCR                   |  12 +++++++
 mail/qmail-autoresponder/Makefile                |  26 ++++++++++++++++
 mail/qmail-autoresponder/PLIST                   |   5 +++
 mail/qmail-autoresponder/distinfo                |   8 +++++
 mail/qmail-autoresponder/options.mk              |  13 ++++++++
 mail/qmail-autoresponder/patches/patch-Makefile  |  37 ++++++++++++++++++++++++
 mail/qmail-autoresponder/patches/patch-options.c |  12 +++++++
 7 files changed, 113 insertions(+), 0 deletions(-)

diffs (141 lines):

diff -r 1fcfcb2b746b -r fe1a26743494 mail/qmail-autoresponder/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qmail-autoresponder/DESCR    Thu Sep 28 17:27:34 2017 +0000
@@ -0,0 +1,12 @@
+This is a simple program to automatically respond to emails. Features:
+
+- Limits rate of automatic responses (defaults to a maximum of one
+  message every hour).
+- Will not respond to nearly every type of mailing list or bulk email.
+- Will not respond to bounce messages or MAILER-DAEMON.
+- Bounces looping messages.
+- Can insert the original subject into the response.
+- Can copy original message into response.
+- Can use links in the rate-limiting data directory to limit inode usage
+  to a single inode.
+- Can limit responses to a certain date/time range.
diff -r 1fcfcb2b746b -r fe1a26743494 mail/qmail-autoresponder/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qmail-autoresponder/Makefile Thu Sep 28 17:27:34 2017 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2017/09/28 17:27:34 schmonz Exp $
+
+DISTNAME=              qmail-autoresponder-1.0
+CATEGORIES=            mail
+MASTER_SITES=          ${HOMEPAGE}
+
+MAINTAINER=            schmonz%NetBSD.org@localhost
+HOMEPAGE=              http://untroubled.org/qmail-autoresponder/
+COMMENT=               Rate-limited autoresponder for qmail
+LICENSE=               gnu-gpl-v2
+
+DEPENDS+=              qmail-[0-9]*:../../mail/qmail
+
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
+INSTALL_ENV+=          install_prefix=${DESTDIR:Q}
+
+DJB_RESTRICTED=                no
+DJB_MAKE_TARGETS=      no
+BUILD_TARGET=          all
+
+pre-configure:
+       ${TOUCH} ${WRKSRC}/conf-bgincs ${WRKSRC}/conf-bglibs
+
+.include "../../devel/bglibs/buildlink3.mk"
+.include "../../mk/djbware.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 1fcfcb2b746b -r fe1a26743494 mail/qmail-autoresponder/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qmail-autoresponder/PLIST    Thu Sep 28 17:27:34 2017 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2017/09/28 17:27:34 schmonz Exp $
+bin/qmail-autoresponder
+${PLIST.mysql}bin/qmail-autoresponder-mysql
+man/man1/qmail-autoresponder-mysql.1
+man/man1/qmail-autoresponder.1
diff -r 1fcfcb2b746b -r fe1a26743494 mail/qmail-autoresponder/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qmail-autoresponder/distinfo Thu Sep 28 17:27:34 2017 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2017/09/28 17:27:34 schmonz Exp $
+
+SHA1 (qmail-autoresponder-1.0.tar.gz) = dbe0138cebe08133c63447a2de189be0b01adef6
+RMD160 (qmail-autoresponder-1.0.tar.gz) = 81a98a33662487bcdcc48cd7f034f7954685ed7b
+SHA512 (qmail-autoresponder-1.0.tar.gz) = 32562b9a19f11536dcc63c918c14b0485bd7ed9e02d646891e81091bfe30f029406c6c3a73a470a2e42f2eb768af3c51e334c60d1616616cc20f692a1a81f245
+Size (qmail-autoresponder-1.0.tar.gz) = 33830 bytes
+SHA1 (patch-Makefile) = 6db92ac78fb8c498436264f1fb88213a8fec2c86
+SHA1 (patch-options.c) = b232156cf689d4ec1a1a98709c6dc283dff4bcc9
diff -r 1fcfcb2b746b -r fe1a26743494 mail/qmail-autoresponder/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qmail-autoresponder/options.mk       Thu Sep 28 17:27:34 2017 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1 2017/09/28 17:27:34 schmonz Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.qmail-autoresponder
+PKG_SUPPORTED_OPTIONS+=                mysql
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=                   mysql
+.if !empty(PKG_OPTIONS:Mmysql)
+.  include "../../mk/mysql.buildlink3.mk"
+BUILD_TARGET+=                 mysql
+PLIST.mysql=                   yes
+.endif
diff -r 1fcfcb2b746b -r fe1a26743494 mail/qmail-autoresponder/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qmail-autoresponder/patches/patch-Makefile   Thu Sep 28 17:27:34 2017 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-Makefile,v 1.1 2017/09/28 17:27:34 schmonz Exp $
+
+Link with bglibs 2.
+
+--- Makefile.orig      2017-08-22 23:38:24.000000000 +0000
++++ Makefile
+@@ -14,11 +14,12 @@ clean: TARGETS
+ clean-spac: clean AUTOFILES
+       rm -f `cat AUTOFILES`
+ 
+-compile: conf-cc
+-      ( echo '#!/bin/sh'; \
++compile: conf-cc conf-bgincs
++      ( bgincs=`head -n 1 conf-bgincs`; \
++        echo '#!/bin/sh'; \
+         echo 'source=$$1; shift'; \
+         echo 'base=`echo "$$source" | sed -e s:\\\\.c$$::`'; \
+-        echo exec `head -n 1 conf-cc` -I.  '-o $${base}.o -c $$source $${1+"$$@"}'; \
++        echo exec `head -n 1 conf-cc` -I. "-I'$${bgincs}'" '-o $${base}.o -c $$source $${1+"$$@"}'; \
+       ) >compile
+       chmod 755 compile
+ 
+@@ -33,10 +34,11 @@ install: INSTHIER conf-bin conf-man
+ 
+ libraries: 
+ 
+-load: conf-ld
+-      ( echo '#!/bin/sh';\
++load: conf-ld conf-bglibs
++      ( bglibs=`head -n 1 conf-bglibs`; \
++        echo '#!/bin/sh';\
+         echo 'main="$$1"; shift';\
+-        echo exec `head -n 1 conf-ld` -L. '-o "$$main" "$$main.o" $${1+"$$@"}'; \
++        echo exec `head -n 1 conf-ld` -L. "-L'$${bglibs}'" "-Wl,-R'$${bglibs}'" '-o "$$main" "$$main.o" $${1+"$$@"}'; \
+       ) >load
+       chmod 755 load
+ 
diff -r 1fcfcb2b746b -r fe1a26743494 mail/qmail-autoresponder/patches/patch-options.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/qmail-autoresponder/patches/patch-options.c  Thu Sep 28 17:27:34 2017 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-options.c,v 1.1 2017/09/28 17:27:34 schmonz Exp $
+
+Remove unneeded include.
+
+--- options.c.orig     2017-08-22 23:38:24.000000000 +0000
++++ options.c
+@@ -1,5 +1,4 @@
+ #define _XOPEN_SOURCE
+-#include <mysql/mysql.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <time.h>



Home | Main Index | Thread Index | Old Index