From 042a35686afb30b7bf6533d68cf6e48869eab3a8 Mon Sep 17 00:00:00 2001
From: Ivan Rako <irako@bagan.srce.hr>
Date: Mon, 15 Dec 2008 00:58:12 +0100
Subject: [PATCH] backports

---
 debian/changelog |    8 ++++++++
 debian/control   |    2 +-
 debian/postinst  |    6 ++++++
 3 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index cddc774..cf8ca1b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+dovecot-cn (1.0.15-1) stable; urgency=medium
+
+  * Ovisnost o verziji sa backports.org
+  * Tranzicijski paket za buduci prelazak na Lenny
+  * Ispravke u dovecot.conf zbog nove verzije (mail_extra_groups)
+
+ -- Ivan Rako <Ivan.Rako@CARNet.hr>  Sun, 14 Dec 2008 22:37:29 +0100
+
 dovecot-cn (1.0.rc15-3) stable; urgency=low
 
   * Ovisnost o verzijama paketa u Etchu
diff --git a/debian/control b/debian/control
index 2940ece..0f83011 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,7 @@ Standards-Version: 3.6.1
 
 Package: dovecot-cn
 Architecture: all
-Depends: dovecot-common (>= 1.0.rc15), dovecot-imapd (>= 1.0.rc15), dovecot-pop3d (>= 1.0.rc15)
+Depends: dovecot-common (>= 1:1.0.15-2.3~bpo40+1), dovecot-imapd (>= 1:1.0.15-2.3~bpo40+1), dovecot-pop3d (>=  1:1.0.15-2.3~bpo40+1)
 Description: secure mail server that supports mbox and maildir mailboxes
  Dovecot is a mail server whose major goals are security and extreme
  reliability. It tries very hard to handle all error conditions and verify
diff --git a/debian/postinst b/debian/postinst
index 554e44b..60e38cc 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -43,6 +43,12 @@ cp_check_and_sed '#quota = maildir' \
                  's/#quota = maildir/quota = fs/g' \
 		 /etc/dovecot/dovecot.conf || true
 
+# dodano zbog backward compatibility (etch->lenny)
+cp_check_and_sed 'mail_extra_groups' \
+                 's/mail_extra_groups/mail_privileged_group/g' \
+		 /etc/dovecot/dovecot.conf || true
+
+
 # restart 
 if [ -x /usr/sbin/invoke-rc.d ]; then
   [ -x /etc/init.d/dovecot ] && invoke-rc.d dovecot restart
-- 
1.7.10.4