Package: roundcube
Version: 0.3-2
Severity: wishlist
Tags: patch

Hi,

It would be great to have the plugins packaged as roundcube-plugins.

I attach an initial patch imlplementing this. It needs however some
more work as plugins can have their own settings, which can be modified
by the system administrator. These files should hence be conffiles.

Not sure what is the best for this. Maybe ucf is the right thing to do.
However, it would also be great to support 3rd party plugins, which could
be installed separately, hence installing the plugins in /etc/roundcube/plugins
might be the best thing to do.

Cheers,
Julien

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (150, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -urN /tmp/roundcube-0.3/debian/changelog roundcube-0.3/debian/changelog
--- /tmp/roundcube-0.3/debian/changelog	2009-10-10 11:18:55.000000000 +0200
+++ roundcube-0.3/debian/changelog	2009-10-09 20:52:49.174211803 +0200
@@ -1,3 +1,10 @@
+roundcube (0.3-2~lenny.2) stable; urgency=low
+
+  * Non-maintainer upload.
+  * Add the roundcube-plugins package
+
+ -- Julien Valroff <jul...@kirya.net>  Fri, 09 Oct 2009 20:42:52 +0200
+
 roundcube (0.3-2) unstable; urgency=low
 
   * Really fix #544579 since the default value is null without
diff -urN /tmp/roundcube-0.3/debian/control roundcube-0.3/debian/control
--- /tmp/roundcube-0.3/debian/control	2009-10-10 11:18:55.000000000 +0200
+++ roundcube-0.3/debian/control	2009-10-09 20:38:14.497835877 +0200
@@ -63,3 +63,12 @@
  This package provides sqlite dependencies for RoundCube Webmail, a
  skinnable AJAX based webmail solution for IMAP servers. Install this
  one if you want to use a sqlite database with RoundCube.
+
+Package: roundcube-plugins
+Architecture: all
+Depends: roundcube-core (= ${source:Version}), ${misc:Depends}
+Description: plugins for RoundCube Webmail
+ This package provides additional plugins for RoundCube Webmail, a
+ skinnable AJAX based webmail solution for IMAP servers.
+ .
+ Install this one if you want to use a extra-features with RoundCube.
diff -urN /tmp/roundcube-0.3/debian/control.in roundcube-0.3/debian/control.in
--- /tmp/roundcube-0.3/debian/control.in	2009-10-10 11:18:55.000000000 +0200
+++ roundcube-0.3/debian/control.in	2009-10-09 20:40:33.434906687 +0200
@@ -63,3 +63,13 @@
  This package provides sqlite dependencies for RoundCube Webmail, a
  skinnable AJAX based webmail solution for IMAP servers. Install this
  one if you want to use a sqlite database with RoundCube.
+
+Package: roundcube-plugins
+Architecture: all
+Depends: roundcube-core (= ${source:Version}), ${misc:Depends}
+Description: plugins for RoundCube Webmail
+ This package provides additional plugins for RoundCube Webmail, a
+ skinnable AJAX based webmail solution for IMAP servers.
+ .
+ Install this one if you want to use a extra-features with RoundCube.
+
diff -urN /tmp/roundcube-0.3/debian/roundcube-plugins.dirs roundcube-0.3/debian/roundcube-plugins.dirs
--- /tmp/roundcube-0.3/debian/roundcube-plugins.dirs	1970-01-01 01:00:00.000000000 +0100
+++ roundcube-0.3/debian/roundcube-plugins.dirs	2009-10-09 20:41:46.583232786 +0200
@@ -0,0 +1 @@
+var/lib/roundcube/plugins
diff -urN /tmp/roundcube-0.3/debian/roundcube-plugins.install roundcube-0.3/debian/roundcube-plugins.install
--- /tmp/roundcube-0.3/debian/roundcube-plugins.install	1970-01-01 01:00:00.000000000 +0100
+++ roundcube-0.3/debian/roundcube-plugins.install	2009-10-09 20:39:02.383447291 +0200
@@ -0,0 +1 @@
+plugins var/lib/roundcube
diff -urN /tmp/roundcube-0.3/debian/rules roundcube-0.3/debian/rules
--- /tmp/roundcube-0.3/debian/rules	2009-10-10 11:18:55.000000000 +0200
+++ roundcube-0.3/debian/rules	2009-10-09 20:48:45.042387614 +0200
@@ -50,6 +50,10 @@
 	rm $(CURDIR)/debian/roundcube-core/usr/share/roundcube/program/js/jquery-1.3.min.js
 	dh_link -proundcube-core usr/share/javascript/jquery/jquery.min.js usr/share/roundcube/program/js/jquery-1.3.min.js
 
+binary-install/roundcube-plugins::
+	# Remove plugin already in the -core package
+	rm -rf $(CURDIR)/debian/roundcube-plugins/var/lib/roundcube/plugins/filesystem_attachments/
+
 $(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/% :
 	install -d $(CURDIR)/debian/$(cdbs_curpkg)/usr/share/bug/$(cdbs_curpkg)
 	install -m 644 $(CURDIR)/debian/bug.control $(CURDIR)/debian/$(cdbs_curpkg)/usr/share/bug/$(cdbs_curpkg)/control

Reply via email to