View | Details | Raw Unified | Return to bug 153282
Collapse All | Expand All

(-)/usr/ports/mail/dovecot-antispam/Makefile (-2 / +1 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	dovecot-antispam
8
PORTNAME=	dovecot-antispam
9
PORTVERSION=	1.2
9
PORTVERSION=	1.3
10
PORTREVISION=	7
11
PORTEPOCH=	1
10
PORTEPOCH=	1
12
CATEGORIES=	mail
11
CATEGORIES=	mail
13
MASTER_SITES=	http://johannes.sipsolutions.net/download/dovecot-antispam/ \
12
MASTER_SITES=	http://johannes.sipsolutions.net/download/dovecot-antispam/ \
(-)/usr/ports/mail/dovecot-antispam/distinfo (-3 / +2 lines)
Lines 1-3 Link Here
1
MD5 (dovecot-antispam-1.2.tar.bz2) = 4def8bf968a94b3c2cb81bd751b4737c
1
SIZE (dovecot-antispam-1.3.tar.bz2) = 26733
2
SHA256 (dovecot-antispam-1.2.tar.bz2) = 28b3a7819d58a66e86d5432c135c4c9486c4f08226e726d5df0d25ea578b9c15
2
SHA256 (dovecot-antispam-1.3.tar.bz2) = b745f13a791c080b49266e262f0c212503b9b9e0180746e78df3cca6b1ffc7a0
3
SIZE (dovecot-antispam-1.2.tar.bz2) = 26595
(-)/usr/ports/mail/dovecot-antispam/files/patch-antispam-plugin.h (-41 lines)
Lines 1-41 Link Here
1
From af0f8f8de27901e2efb9560a1fc66c7af3cd810b Mon Sep 17 00:00:00 2001
2
From: Johannes Berg <johannes@sipsolutions.net>
3
Date: Thu, 2 Jul 2009 14:17:54 +0200
4
Subject: [PATCH 1/1] make it compile with dovecot 1.2
5
6
---
7
 antispam-plugin.h |   13 +++++++++++++
8
 1 files changed, 13 insertions(+), 0 deletions(-)
9
10
diff --git a/antispam-plugin.h b/antispam-plugin.h
11
index df59e88..493fd1e 100644
12
--- antispam-plugin.h
13
+++ antispam-plugin.h
14
@@ -113,11 +113,24 @@ o_stream_create_from_fd(int fd, pool_t pool ATTR_UNUSED)
15
 	return o_stream_create_fd(fd, 0, TRUE);
16
 }
17
 
18
+#if DOVECOT_VERSION_CODE(1, 2) == DOVECOT_VERSION
19
+static inline struct dict *
20
+string_dict_init(const char *uri, const char *username)
21
+{
22
+	const char *base_dir;
23
+
24
+	base_dir = getenv("BASE_DIR");
25
+	if (base_dir == NULL)
26
+		base_dir = "/var/run/dovecot";
27
+	return dict_init(uri, DICT_DATA_TYPE_STRING, username, base_dir);
28
+}
29
+#else /* 1.1 */
30
 static inline struct dict *
31
 string_dict_init(const char *uri, const char *username)
32
 {
33
 	return dict_init(uri, DICT_DATA_TYPE_STRING, username);
34
 }
35
+#endif
36
 #elif DOVECOT_VERSION_CODE(1, 0) == DOVECOT_VERSION
37
 #define ME(err)
38
 #define PLUGIN_ID
39
-- 
40
1.6.3.3
41

Return to bug 153282