pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/dovecot2-antispam-plugin Add dovecot2-antispam-pl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4e34c66e1b24
branches:  trunk
changeset: 641814:4e34c66e1b24
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Wed Nov 19 03:37:14 2014 +0000

description:
Add dovecot2-antispam-plugin for training antispam systems by moving
messages into (or out of) a designated IMAP "spam" folder.

Consider the following scenario. Your mailbox is flooded with tons
of mail. They are delivered to the configured folders based on the
arbitrary spam system judgement. This judgement is not always correct
or not always what you would like it to be, however. This is where
this plugin comes into play.

All you have to do is move the mail into the correct folder. All
the rest in order to let the spam system know it made an error will
be done automatically by this plugin.

diffstat:

 mail/dovecot2-antispam-plugin/DESCR                        |   9 ++
 mail/dovecot2-antispam-plugin/Makefile                     |  34 +++++++++
 mail/dovecot2-antispam-plugin/PLIST                        |   3 +
 mail/dovecot2-antispam-plugin/distinfo                     |   7 +
 mail/dovecot2-antispam-plugin/patches/patch-buildsys.mk.in |  15 ++++
 mail/dovecot2-antispam-plugin/patches/patch-m4_buildsys.m4 |  51 ++++++++++++++
 6 files changed, 119 insertions(+), 0 deletions(-)

diffs (143 lines):

diff -r 7dd2a9cbc7a7 -r 4e34c66e1b24 mail/dovecot2-antispam-plugin/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dovecot2-antispam-plugin/DESCR       Wed Nov 19 03:37:14 2014 +0000
@@ -0,0 +1,9 @@
+Consider the following scenario. Your mailbox is flooded with tons
+of mail. They are delivered to the configured folders based on the
+arbitrary spam system judgement. This judgement is not always correct
+or not always what you would like it to be, however. This is where
+this plugin comes into play.
+
+All you have to do is move the mail into the correct folder. All
+the rest in order to let the spam system know it made an error will
+be done automatically by this plugin.
diff -r 7dd2a9cbc7a7 -r 4e34c66e1b24 mail/dovecot2-antispam-plugin/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dovecot2-antispam-plugin/Makefile    Wed Nov 19 03:37:14 2014 +0000
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1 2014/11/19 03:37:14 schmonz Exp $
+
+DISTNAME=              dovecot-antispam-plugin-20130429
+CATEGORIES=            mail
+MASTER_SITES=          http://olgeni.olgeni.com/~olgeni/distfiles/ \
+                       http://distcache.FreeBSD.org/local-distfiles/olgeni/
+EXTRACT_SUFX=          .tar.bz2
+
+MAINTAINER=            schmonz%NetBSD.org@localhost
+HOMEPAGE=              http://hg.dovecot.org/dovecot-antispam-plugin/
+COMMENT=               Dovecot 2.x plugin for training antispam systems
+LICENSE=               gnu-gpl-v2
+
+WRKSRC=                        ${WRKDIR}/dovecot-antispam-plugin-5ebc6aae4d7c
+
+USE_TOOLS+=            aclocal autoheader automake autoconf gmake gawk gsed
+AUTOCONF_REQD=         2.54
+GNU_CONFIGURE=         yes
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+SUFX=                  bundle
+.else
+SUFX=                  so
+.endif
+
+PLIST_SUBST+=          SUFX=${SUFX:Q}
+
+pre-configure:
+       cd ${WRKSRC} && aclocal -I m4 && autoheader && autoconf
+
+.include "../../mail/dovecot2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 7dd2a9cbc7a7 -r 4e34c66e1b24 mail/dovecot2-antispam-plugin/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dovecot2-antispam-plugin/PLIST       Wed Nov 19 03:37:14 2014 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2014/11/19 03:37:14 schmonz Exp $
+lib/dovecot/lib90_antispam_plugin.${SUFX}
+man/man7/dovecot-antispam.7
diff -r 7dd2a9cbc7a7 -r 4e34c66e1b24 mail/dovecot2-antispam-plugin/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dovecot2-antispam-plugin/distinfo    Wed Nov 19 03:37:14 2014 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2014/11/19 03:37:14 schmonz Exp $
+
+SHA1 (dovecot-antispam-plugin-20130429.tar.bz2) = 50c7b35467c9e07eb033cd15850ce051d1b8aa6d
+RMD160 (dovecot-antispam-plugin-20130429.tar.bz2) = e63e79e27ae14fd634ecf20b7061f0f4114cb522
+Size (dovecot-antispam-plugin-20130429.tar.bz2) = 56340 bytes
+SHA1 (patch-buildsys.mk.in) = 85cd1d42e743cd548c078ec2107cda4549fa2a32
+SHA1 (patch-m4_buildsys.m4) = 71a9f28161dfb7b47c6ce6ed862e7326aae7899e
diff -r 7dd2a9cbc7a7 -r 4e34c66e1b24 mail/dovecot2-antispam-plugin/patches/patch-buildsys.mk.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dovecot2-antispam-plugin/patches/patch-buildsys.mk.in        Wed Nov 19 03:37:14 2014 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-buildsys.mk.in,v 1.1 2014/11/19 03:37:14 schmonz Exp $
+
+Use the configured rpath linker flags.
+
+--- buildsys.mk.in.orig        2013-04-29 12:59:26.000000000 +0000
++++ buildsys.mk.in
+@@ -285,7 +285,7 @@ ${PLUGIN} ${PLUGIN_NOINST}: ${EXT_DEPS} 
+               done; \
+               cd ..; \
+       done; \
+-      if ${LD} -o $@ $$objs ${PLUGIN_LDFLAGS} ${LDFLAGS} ${LIBS}; then \
++      if ${LD} -o $@ $$objs ${PLUGIN_LDFLAGS} ${LDFLAGS} ${LDFLAGS_RPATH} ${LIBS}; then \
+               ${LINK_OK}; \
+       else \
+               ${LINK_FAILED}; \
diff -r 7dd2a9cbc7a7 -r 4e34c66e1b24 mail/dovecot2-antispam-plugin/patches/patch-m4_buildsys.m4
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dovecot2-antispam-plugin/patches/patch-m4_buildsys.m4        Wed Nov 19 03:37:14 2014 +0000
@@ -0,0 +1,51 @@
+$NetBSD: patch-m4_buildsys.m4,v 1.1 2014/11/19 03:37:14 schmonz Exp $
+
+Correct path to dovecot plugins.
+
+--- m4/buildsys.m4.orig        2013-04-29 12:59:26.000000000 +0000
++++ m4/buildsys.m4
+@@ -103,7 +103,7 @@ AC_DEFUN([BUILDSYS_SHARED_LIB], [
+                       LIB_LDFLAGS='-dynamiclib -current_version ${LIB_MAJOR}.${LIB_MINOR} -compatibility_version ${LIB_MAJOR}'
+                       LIB_PREFIX='lib'
+                       LIB_SUFFIX='.dylib'
+-                      LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
++                      LDFLAGS_RPATH='-Wl,-rpath,${libdir}/dovecot'
+                       PLUGIN_CFLAGS='-fPIC -DPIC'
+                       PLUGIN_LDFLAGS='-bundle -undefined dynamic_lookup'
+                       PLUGIN_SUFFIX='.bundle'
+@@ -117,7 +117,7 @@ AC_DEFUN([BUILDSYS_SHARED_LIB], [
+                       LIB_LDFLAGS='-shared -Wl,-soname=${SHARED_LIB}.${LIB_MAJOR}.${LIB_MINOR}'
+                       LIB_PREFIX='lib'
+                       LIB_SUFFIX='.so'
+-                      LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
++                      LDFLAGS_RPATH='-Wl,-rpath,${libdir}/dovecot'
+                       PLUGIN_CFLAGS='-fPIC -DPIC'
+                       PLUGIN_LDFLAGS='-shared'
+                       PLUGIN_SUFFIX='.so'
+@@ -131,7 +131,7 @@ AC_DEFUN([BUILDSYS_SHARED_LIB], [
+                       LIB_LDFLAGS='-shared'
+                       LIB_PREFIX='lib'
+                       LIB_SUFFIX='.so.${LIB_MAJOR}.${LIB_MINOR}'
+-                      LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
++                      LDFLAGS_RPATH='-Wl,-rpath,${libdir}/dovecot'
+                       PLUGIN_CFLAGS='-fPIC -DPIC'
+                       PLUGIN_LDFLAGS='-shared'
+                       PLUGIN_SUFFIX='.so'
+@@ -145,7 +145,7 @@ AC_DEFUN([BUILDSYS_SHARED_LIB], [
+                       LIB_LDFLAGS='-shared -Wl,--out-implib,${SHARED_LIB}.a'
+                       LIB_PREFIX='lib'
+                       LIB_SUFFIX='.dll'
+-                      LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
++                      LDFLAGS_RPATH='-Wl,-rpath,${libdir}/dovecot'
+                       PLUGIN_CFLAGS=''
+                       PLUGIN_LDFLAGS='-shared'
+                       PLUGIN_SUFFIX='.dll'
+@@ -159,7 +159,7 @@ AC_DEFUN([BUILDSYS_SHARED_LIB], [
+                       LIB_LDFLAGS='-shared -Wl,-soname=${SHARED_LIB}.${LIB_MAJOR}'
+                       LIB_PREFIX='lib'
+                       LIB_SUFFIX='.so'
+-                      LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
++                      LDFLAGS_RPATH='-Wl,-rpath,${libdir}/dovecot'
+                       PLUGIN_CFLAGS='-fPIC -DPIC'
+                       PLUGIN_LDFLAGS='-shared'
+                       PLUGIN_SUFFIX='.so'



Home | Main Index | Thread Index | Old Index