packages: dovecot/dovecot.spec - untested config 1.2->2.0 trigger

arekm arekm at pld-linux.org
Sat Sep 18 22:14:13 CEST 2010


Author: arekm                        Date: Sat Sep 18 20:14:13 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- untested config 1.2->2.0 trigger

---- Files affected:
packages/dovecot:
   dovecot.spec (1.145 -> 1.146) 

---- Diffs:

================================================================
Index: packages/dovecot/dovecot.spec
diff -u packages/dovecot/dovecot.spec:1.145 packages/dovecot/dovecot.spec:1.146
--- packages/dovecot/dovecot.spec:1.145	Sat Sep 18 22:02:49 2010
+++ packages/dovecot/dovecot.spec	Sat Sep 18 22:14:07 2010
@@ -219,6 +219,20 @@
 echo "Configuration change default_mail_env -> mail_location"
 %{__sed} -i -e "s/^default_mail_env/mail_location/" /etc/dovecot/dovecot.conf
 
+%triggerpostun -- dovecot < 1:2.0.0
+echo "Read http://wiki2.dovecot.org/Upgrading/2.0"
+for a in /etc/dovecot/dovecot-db-example.conf \
+	/etc/dovecot/dovecot-dict-sql-example.conf \
+	/etc/dovecot/dovecot-ldap-example.conf \
+	/etc/dovecot/dovecot-sql-example.conf \
+	/etc/dovecot/dovecot.conf; do
+	if [ -f "$a" ]; then
+		echo "Trying to migrate $a config file to dovecot 2."
+		cp -a "$a" "$a-1.2.org"
+		%{_sbindir}/doveconf -n -c "$a-1.2.org" > "$a"
+	fi
+done
+
 %files
 %defattr(644,root,root,755)
 # COPYING contains some notes, not actual LGPL text
@@ -291,6 +305,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.146  2010/09/18 20:14:07  arekm
+- untested config 1.2->2.0 trigger
+
 Revision 1.145  2010/09/18 20:02:49  arekm
 - dovenull group for /var/run/dovecot/login
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/dovecot/dovecot.spec?r1=1.145&r2=1.146&f=u



More information about the pld-cvs-commit mailing list