From 76fb12f92056204388832339dfad8acd58cd0efd Mon Sep 17 00:00:00 2001
From: Vincent Bernat <bernat@debian.org>
Date: Sat, 8 Jan 2011 15:00:02 +0000
Subject: [PATCH] Move .htaccess to /etc/roundcube and use a symlink (Closes:
 #591369).

---
 debian/changelog | 1 +
 debian/rules     | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8cb64f2..76cb398 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,7 @@ roundcube (0.5~rc-1) UNRELEASED; urgency=low
        use of Mail_Mime 1.8.0 in place of 1.8.1 which is not available in
        Debian. We depends on jQuery 1.4.2 because 1.4.4 is not available in
        Debian.
+  * Move .htaccess to /etc/roundcube and use a symlink (Closes: #591369).
 
  -- Vincent Bernat <bernat@debian.org>  Sat, 08 Jan 2011 15:15:56 +0100
 
diff --git a/debian/rules b/debian/rules
index 1b31316..d521ef1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,9 +23,11 @@ binary-install/roundcube-core::
 	# Install config files
 	install -m 0640 $(CURDIR)/config/db.inc.php.dist $(CURDIR)/debian/roundcube-core/etc/roundcube/db.inc.php
 	install -m 0640 $(CURDIR)/config/main.inc.php.dist $(CURDIR)/debian/roundcube-core/usr/share/roundcube
+	install -m 0640 $(CURDIR)/.htaccess $(CURDIR)/debian/roundcube-core/etc/roundcube/htaccess
 	for c in $(CURDIR)/debian/roundcube-core/etc/roundcube/*.php; do \
 		dh_link -proundcube-core etc/roundcube/$$(basename $$c) var/lib/roundcube/config/$$(basename $$c) ; \
 	done
+	dh_link -proundcube-core etc/roundube/htaccess var/lib/roundcube/.htaccess
 
 	# Database related files
 	# Install empty tables and updates for each db type
-- 
2.39.5