pkgsrc-Changes archive

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

CVS commit: pkgsrc/mail/qmail-autoresponder



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Thu Sep 28 17:27:34 UTC 2017

Added Files:
        pkgsrc/mail/qmail-autoresponder: DESCR Makefile PLIST distinfo
            options.mk
        pkgsrc/mail/qmail-autoresponder/patches: patch-Makefile patch-options.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/qmail-autoresponder/DESCR \
    pkgsrc/mail/qmail-autoresponder/Makefile \
    pkgsrc/mail/qmail-autoresponder/PLIST \
    pkgsrc/mail/qmail-autoresponder/distinfo \
    pkgsrc/mail/qmail-autoresponder/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/qmail-autoresponder/patches/patch-Makefile \
    pkgsrc/mail/qmail-autoresponder/patches/patch-options.c

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

Added files:

Index: pkgsrc/mail/qmail-autoresponder/DESCR
diff -u /dev/null pkgsrc/mail/qmail-autoresponder/DESCR:1.1
--- /dev/null   Thu Sep 28 17:27:34 2017
+++ pkgsrc/mail/qmail-autoresponder/DESCR       Thu Sep 28 17:27:34 2017
@@ -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.
Index: pkgsrc/mail/qmail-autoresponder/Makefile
diff -u /dev/null pkgsrc/mail/qmail-autoresponder/Makefile:1.1
--- /dev/null   Thu Sep 28 17:27:34 2017
+++ pkgsrc/mail/qmail-autoresponder/Makefile    Thu Sep 28 17:27:34 2017
@@ -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"
Index: pkgsrc/mail/qmail-autoresponder/PLIST
diff -u /dev/null pkgsrc/mail/qmail-autoresponder/PLIST:1.1
--- /dev/null   Thu Sep 28 17:27:34 2017
+++ pkgsrc/mail/qmail-autoresponder/PLIST       Thu Sep 28 17:27:34 2017
@@ -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
Index: pkgsrc/mail/qmail-autoresponder/distinfo
diff -u /dev/null pkgsrc/mail/qmail-autoresponder/distinfo:1.1
--- /dev/null   Thu Sep 28 17:27:34 2017
+++ pkgsrc/mail/qmail-autoresponder/distinfo    Thu Sep 28 17:27:34 2017
@@ -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
Index: pkgsrc/mail/qmail-autoresponder/options.mk
diff -u /dev/null pkgsrc/mail/qmail-autoresponder/options.mk:1.1
--- /dev/null   Thu Sep 28 17:27:34 2017
+++ pkgsrc/mail/qmail-autoresponder/options.mk  Thu Sep 28 17:27:34 2017
@@ -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

Index: pkgsrc/mail/qmail-autoresponder/patches/patch-Makefile
diff -u /dev/null pkgsrc/mail/qmail-autoresponder/patches/patch-Makefile:1.1
--- /dev/null   Thu Sep 28 17:27:34 2017
+++ pkgsrc/mail/qmail-autoresponder/patches/patch-Makefile      Thu Sep 28 17:27:34 2017
@@ -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
+ 
Index: pkgsrc/mail/qmail-autoresponder/patches/patch-options.c
diff -u /dev/null pkgsrc/mail/qmail-autoresponder/patches/patch-options.c:1.1
--- /dev/null   Thu Sep 28 17:27:34 2017
+++ pkgsrc/mail/qmail-autoresponder/patches/patch-options.c     Thu Sep 28 17:27:34 2017
@@ -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