[Dovecot] [Metadata Plugin] Q: Source Repository

2013-08-05 Thread Christoph Hintermüller
Hi I'm currently trying to package V14 of Metadata  plugin for Ubuntu
Quantal (https://launchpad.net/~privatedata/+archive/dovecot-2.2.2/) to
be installed along with dovecot 2.2.4. According to my efforts packaging
the plugin i do have some questions 

For future releases, is it possible to add a link to the current release
on the  meta data mercurial page which includes in the filename of the
tar.gz archive the current version number of the plugin
( metadata-plugin-v14.tar.gz). That would allow to add an appropriate
line in the debian/watch file to detect when a new release of the plugin
is available. Currently i have to check mercurial page manually and use
an updated version mangling entry to ensure that the packaging system
downloads the latest version. The link would help to simplify this.
Especially as the base link in my debian/watch file currently points to
tip.tar.gz and not to the archive the linke of the V14 tag points to.
The sources i got represent the tip.tar.gz downloaded on July 19th 2013
23:16 CET which likely do not exactly correspond to the contents of the
archive containing sources of V14. Therefore a versioned link to the
source archives of the latest version would simplify things a lot,
especially adding patches released for the latest version. As well as
reporting the following addition.

Further I have added a doc directory stub, containing the configuration
examples found in thread
http://dovecot.2317879.n4.nabble.com/dovecot-metadata-8-released-tp10091.html

Greetings
Christoph

diff -x .bzr -x .pc -x debian -u -N -r dovecot-metadata-0.14.0.orig/autogen.sh dovecot-metadata/autogen.sh
--- dovecot-metadata-0.14.0.orig/autogen.sh	2013-05-14 10:13:53.0 +0200
+++ dovecot-metadata/autogen.sh	2013-07-26 10:35:35.0 +0200
@@ -4,4 +4,4 @@
 test -d m4 || mkdir m4
 
 echo '+ running autoreconf ...'
-autoreconf --force --install
+autoreconf --force --install -v
diff -x .bzr -x .pc -x debian -u -N -r dovecot-metadata-0.14.0.orig/configure.ac dovecot-metadata/configure.ac
--- dovecot-metadata-0.14.0.orig/configure.ac	2013-05-14 10:13:53.0 +0200
+++ dovecot-metadata/configure.ac	2013-07-26 10:35:35.0 +0200
@@ -10,6 +10,9 @@
 AC_CONFIG_SRCDIR([src])
 
 
+AM_MAINTAINER_MODE
+
+
 AC_PROG_CC_C99
 AS_IF([test x$ac_cv_prog_cc_c99 = xno],
 	[AC_MSG_ERROR([C99 support required])]
@@ -17,6 +20,12 @@
 
 DC_DOVECOT([2.0])
 
+# Define metadata documentation install dir
+#
+
+metadata_docdir='${dovecot_docdir}/metadata'
+AC_SUBST(metadata_docdir)
+
 
 AC_ARG_ENABLE([debug],
 	[AS_HELP_STRING([--enable-debug],
@@ -24,6 +33,15 @@
 	[],
 	[enable_debug=no]
 )
+AC_ARG_WITH(docs,
+[  --with-docs Install documentation (default)],
+if test x$withval = xno; then
+want_docs=no
+else
+want_docs=yes
+fi,
+want_docs=yes)
+AM_CONDITIONAL(BUILD_DOCS, test $want_docs = yes)
 AC_MSG_CHECKING([whether to enable debugging])
 AC_MSG_RESULT([$enable_debug])
 AS_IF([test x$enable_debug = xyes],
@@ -37,5 +55,8 @@
 AC_CONFIG_FILES([
 	Makefile
 	src/Makefile
+	doc/Makefile
+	doc/example-config/Makefile
+	doc/example-config/conf.d/Makefile
 ])
 AC_OUTPUT
diff -x .bzr -x .pc -x debian -u -N -r dovecot-metadata-0.14.0.orig/doc/example-config/conf.d/10-metadata-mail.conf dovecot-metadata/doc/example-config/conf.d/10-metadata-mail.conf
--- dovecot-metadata-0.14.0.orig/doc/example-config/conf.d/10-metadata-mail.conf	1970-01-01 01:00:00.0 +0100
+++ dovecot-metadata/doc/example-config/conf.d/10-metadata-mail.conf	2013-07-27 14:16:56.0 +0200
@@ -0,0 +1,9 @@
+#stub copied form 
+# Email [Dovecot] dovecot-metadata-8 released
+# by Dennis Schridde devurandom at gmx.net 
+# on Sun Jun 12 16:55:57 EEST 2011
+#
+#use this to configure the meta data plugin
+
+#addjust the corresponding line in the 10-mail.conf file
+mail_plugins = ... metadata
diff -x .bzr -x .pc -x debian -u -N -r dovecot-metadata-0.14.0.orig/doc/example-config/conf.d/20-metadata-imap.conf dovecot-metadata/doc/example-config/conf.d/20-metadata-imap.conf
--- dovecot-metadata-0.14.0.orig/doc/example-config/conf.d/20-metadata-imap.conf	1970-01-01 01:00:00.0 +0100
+++ dovecot-metadata/doc/example-config/conf.d/20-metadata-imap.conf	2013-07-27 14:16:56.0 +0200
@@ -0,0 +1,12 @@
+#stub copied form 
+# Email [Dovecot] dovecot-metadata-8 released
+# by Dennis Schridde devurandom at gmx.net 
+# on Sun Jun 12 16:55:57 EEST 2011
+#
+#use this to configure the meta data plugin
+
+# add this to the protocol imap section in the 20-imap.conf file
+# protocol imap {
+#   mail_plugins = $mail_plugins ... imap_metadata imap_annotatemore
+#}
+
diff -x .bzr -x .pc -x debian -u -N -r dovecot-metadata-0.14.0.orig/doc/example-config/conf.d/90-metadata.conf dovecot-metadata/doc/example-config/conf.d/90-metadata.conf
--- dovecot-metadata-0.14.0.orig/doc/example-config/conf.d/90-metadata.conf	1970-01-01 01:00:00.0 +0100
+++ dovecot-metadata/doc/example-config/conf.d/90-metadata.conf	

[Dovecot] [Dovcot 2.2.2] Q: Prequisits for compiling and plugins

2013-06-14 Thread Christoph Hintermüller
Hi 

Where can i find the list of prerequisites for compiling dovocot 2.2.2
form the sources, is there a dedicated link or what terms i should best
use to search the archives of this mailing list, the documentation or
the web?

Where do I find information (links or search terms) whether plugins
available for 1.x 2.1.x series, especially the metadata plugin,  are
still needed for 2.2.2 or may even be harmful for 2.2.2 as built in.
Documentation on Dovecot webpage is rather sparse and not really
conclusive concerning metadata plugin within 2.x series. On my Ubuntu
12.X systems i still find it for 2.1.x but I have difficulties to
understand whether there exist a version for 2.2.X series, if this is
equal to the one for 2.1.X or whether it is not needed any more for
2.2.X series. Further what libraries would be required. 

Greetings
Christoph