--- courier-imap-4.2.1/Makefile.am.alt-p5 2007-11-05 18:15:33 +1000 +++ courier-imap-4.2.1/Makefile.am 2007-11-05 18:15:33 +1000 @@ -145,10 +145,10 @@ install-exec-local: install-exec-hook: chmod 444 $(DESTDIR)$(sysconfdir)/@PACKAGE@/quotawarnmsg.example - mkdir -p $(DESTDIR)$(sysconfdir)/@PACKAGE@/shared - chmod 755 $(DESTDIR)$(sysconfdir)/@PACKAGE@/shared - mkdir -p $(DESTDIR)$(sysconfdir)/@PACKAGE@/shared.tmp - chmod 755 $(DESTDIR)$(sysconfdir)/@PACKAGE@/shared.tmp + mkdir -p $(DESTDIR)$(localstatedir)/@PACKAGE@/shared + chmod 755 $(DESTDIR)$(localstatedir)/@PACKAGE@/shared + mkdir -p $(DESTDIR)$(localstatedir)/@PACKAGE@/shared.tmp + chmod 755 $(DESTDIR)$(localstatedir)/@PACKAGE@/shared.tmp install-data-local: install-man test -d $(DESTDIR)/etc/pam.d || exit 0 ; \ --- courier-imap-4.2.1/Makefile.in.alt-p5 2007-11-05 18:15:33 +1000 +++ courier-imap-4.2.1/Makefile.in 2007-11-05 18:15:33 +1000 @@ -1128,10 +1128,10 @@ install-exec-local: install-exec-hook: chmod 444 $(DESTDIR)$(sysconfdir)/@PACKAGE@/quotawarnmsg.example - mkdir -p $(DESTDIR)$(sysconfdir)/@PACKAGE@/shared - chmod 755 $(DESTDIR)$(sysconfdir)/@PACKAGE@/shared - mkdir -p $(DESTDIR)$(sysconfdir)/@PACKAGE@/shared.tmp - chmod 755 $(DESTDIR)$(sysconfdir)/@PACKAGE@/shared.tmp + mkdir -p $(DESTDIR)$(localstatedir)/@PACKAGE@/shared + chmod 755 $(DESTDIR)$(localstatedir)/@PACKAGE@/shared + mkdir -p $(DESTDIR)$(localstatedir)/@PACKAGE@/shared.tmp + chmod 755 $(DESTDIR)$(localstatedir)/@PACKAGE@/shared.tmp install-data-local: install-man test -d $(DESTDIR)/etc/pam.d || exit 0 ; \ --- courier-imap-4.2.1/imap/imapd.dist.in.alt-p5 2007-11-05 18:15:33 +1000 +++ courier-imap-4.2.1/imap/imapd.dist.in 2007-11-05 18:15:33 +1000 @@ -263,7 +263,7 @@ IMAP_USELOCKS=0 # you know what you're doing. See README.sharedfolders for additional # information. -IMAP_SHAREDINDEXFILE=@sysconfdir@/@PACKAGE@/shared/index +IMAP_SHAREDINDEXFILE=@localstatedir@/@PACKAGE@/shared/index ##NAME: IMAP_ENHANCEDIDLE:0 # --- courier-imap-4.2.1/maildir/sharedindexinstall.in.alt-p5 2007-11-05 18:15:33 +1000 +++ courier-imap-4.2.1/maildir/sharedindexinstall.in 2007-11-05 18:15:33 +1000 @@ -9,9 +9,9 @@ prefix="@prefix@" sysconfdir="@sysconfdir@" -shareddir="$sysconfdir/@PACKAGE@/shared" # Where the shared index files are kept +shareddir="@localstatedir@/@PACKAGE@/shared" # Where the shared index files are kept -newshareddir="$sysconfdir/@PACKAGE@/shared.tmp" # Updated shared index +newshareddir="@localstatedir@/@PACKAGE@/shared.tmp" # Updated shared index if test `ls "$newshareddir" | wc -l` = 0 then