[packages/dovecot-antispam] - use new DOVECOT_ABI_VERSION macro

baggins baggins at pld-linux.org
Tue Jul 23 20:20:12 CEST 2013


commit 88d409c1cf6c7f23cac180e00a896949181beb9d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Jul 23 20:19:49 2013 +0200

    - use new DOVECOT_ABI_VERSION macro

 dovecot-2.2.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/dovecot-2.2.patch b/dovecot-2.2.patch
index 7fef91e..8e7e881 100644
--- a/dovecot-2.2.patch
+++ b/dovecot-2.2.patch
@@ -39,3 +39,14 @@ diff -ur dovecot-antispam-2.0/dovecot-version.c dovecot-antispam-2.0-2.2/dovecot
  		min = 0;
  
  	printf("#define ANTISPAM_STORAGE			"
+--- dovecot-antispam-2.0/antispam-plugin.c~	2011-11-07 10:49:47.000000000 +0100
++++ dovecot-antispam-2.0/antispam-plugin.c	2013-07-23 20:19:25.951626755 +0200
+@@ -392,4 +392,8 @@
+ }
+ 
+ /* put dovecot version we built against into plugin for checking */
++#ifdef DOVECOT_ABI_VERSION
++const char *PLUGIN_FUNCTION(version) = DOVECOT_ABI_VERSION;
++#else
+ const char *PLUGIN_FUNCTION(version) = PACKAGE_VERSION;
++#endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dovecot-antispam.git/commitdiff/88d409c1cf6c7f23cac180e00a896949181beb9d



More information about the pld-cvs-commit mailing list