3 # Migrate script from pre courier-authlib versions of Courier.
5 # $Id: authmigrate.in,v 1.4 2009/02/22 16:58:27 mrsam Exp $
7 # Copyright 2004-2009 Double Precision, Inc. See COPYING for
8 # distribution information.
11 exec_prefix=@exec_prefix@
20 for dir in /etc/courier \
21 /etc/courier/authlib \
23 /usr/lib/courier/etc \
24 /usr/lib/courier-imap/etc \
26 /usr/local/etc/courier \
27 /usr/local/courier/etc \
28 /usr/local/lib/courier/etc \
29 /usr/local/lib/courier-imap/etc \
30 /usr/local/share/sqwebmail \
31 /usr/local/etc/courier-imap
35 if test -r "$dir/$file"
37 echo "Obsolete: $dir/$file""(.dist)?"
44 if test -r "$dir/$file"
46 echo "Obsolete: $dir/$file""(.dist)?"
51 if test ! -r $dir/$file
56 if test -f "$dir/$file"
58 if test "$file" = "userdb"
62 if test "`sed -n 1p $dir/$file | sed -n '/^##VERSION/p'`" = ""
69 echo "$dir/$file => $dstfile"
70 cp -pr "$dir/$file" "$dstfile"
76 chk_file authdaemonrc ${DESTDIR}@authdaemonrc@
77 chk_file authmysqlrc ${DESTDIR}@authmysqlrc@
78 chk_file authpgsqlrc ${DESTDIR}@authpgsqlrc@
79 chk_file authldaprc ${DESTDIR}@authldaprc@
80 chk_file userdb ${DESTDIR}@userdb@