From 61e2c36a2ade8df3ec5239ba9c069e14e64f0b56 Mon Sep 17 00:00:00 2001
From: Ivan Rako <ivan.rako@srce.hr>
Date: Sat, 14 Jul 2018 23:37:06 +0200
Subject: [PATCH] izmjene za stretch

---
 debian/changelog |    6 ++++++
 debian/compat    |    2 +-
 debian/control   |    6 +++---
 debian/postinst  |    6 +-----
 4 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index a8d3f4c..ece34fd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+dovecot-cn (1:2.2.27~cn0) stable; urgency=medium
+
+  * Prva verzija za stretch
+
+ -- Ivan Rako <Ivan.Rako@CARNet.hr>  Sun, 08 Jul 2018 00:36:31 +0200
+
 dovecot-cn (1:2.2.13~cn1) stable; urgency=medium
 
   * Postavlja ssl = yes u 10-auth.conf
diff --git a/debian/compat b/debian/compat
index 45a4fb7..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-8
+9
diff --git a/debian/control b/debian/control
index 0eb4014..52083e8 100644
--- a/debian/control
+++ b/debian/control
@@ -2,12 +2,12 @@ Source: dovecot-cn
 Section: net
 Priority: optional
 Maintainer: Ivan Rako <Ivan.Rako@CARNet.hr>
-Build-Depends: debhelper (>= 8)
-Standards-Version: 3.9.6
+Build-Depends: debhelper (>= 9)
+Standards-Version: 3.9.8
 
 Package: dovecot-cn
 Architecture: all
-Depends: ${misc:Depends}, dovecot-core (>= 1:2.2.13), dovecot-imapd (>= 1:2.2.13), dovecot-pop3d (>= 1:2.2.13), carnet-tools-cn (>= 2)
+Depends: ${misc:Depends}, dovecot-core (>= 1:2.2.27), dovecot-imapd (>= 1:2.2.27), dovecot-pop3d (>= 1:2.2.27), carnet-tools-cn (>= 3)
 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 2afcf7a..dd1bf13 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -68,11 +68,7 @@ cp_check_and_sed '#ssl_protocols =' \
 		 /etc/dovecot/conf.d/10-ssl.conf || true
 
 # restart 
-if [ -x /usr/sbin/invoke-rc.d ]; then
-  [ -x /etc/init.d/dovecot ] && invoke-rc.d dovecot restart
-else
-  [ -x /etc/init.d/dovecot ] && /etc/init.d/dovecot restart
-fi
+service dovecot restart || true
 
 #DEBHELPER#
 
-- 
1.7.10.4