]> git.donarmstrong.com Git - roundcube.git/commitdiff
Add plugins. Closes: #550454.
authorVincent Bernat <bernat@debian.org>
Sun, 13 Feb 2011 15:07:42 +0000 (15:07 +0000)
committerJérémy Bobbio <lunar@debian.org>
Sat, 18 Jun 2011 19:31:22 +0000 (21:31 +0200)
debian/changelog
debian/control
debian/roundcube-plugins.README.Debian [new file with mode: 0644]
debian/roundcube-plugins.dirs [new file with mode: 0644]
debian/roundcube-plugins.install [new file with mode: 0644]
debian/rules

index 235dfa8f16c1196e5379b4889e7619d32b6615c1..1e878faf82409ba390a2bb9e9d244d1812f6827d 100644 (file)
@@ -1,3 +1,9 @@
+roundcube (0.5.1-2) unstable; urgency=low
+
+  * Add plugins. Closes: #550454.
+
+ -- Vincent Bernat <bernat@debian.org>  Sun, 13 Feb 2011 15:25:45 +0100
+
 roundcube (0.5.1-1) unstable; urgency=low
 
   * New upstream version. Some bugs are corrected in this release or in a
index 19ebae7fd29e3a3e961a975457dbc45b9ad4fab8..fbc7162204144ae927555a21de8103c3fd7883bf 100644 (file)
@@ -20,7 +20,7 @@ Depends: dbconfig-common, debconf | debconf-2.0, ucf,
  libmagic1,
  roundcube-sqlite (= ${source:Version}) | roundcube-mysql (= ${source:Version}) | roundcube-pgsql (= ${source:Version}),
  ${misc:Depends}
-Suggests: php-auth-sasl (>= 1.0.3)
+Suggests: php-auth-sasl (>= 1.0.3), roundcube-plugins
 Replaces: roundcube
 Breaks: roundcube (<< 0.1~rc2-2)
 Description: skinnable AJAX based webmail solution for IMAP servers
@@ -72,3 +72,17 @@ Description: metapackage providing sqlite dependencies for RoundCube
  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: skinnable AJAX based webmail solution for IMAP servers - plugins
+ RoundCube Webmail is a browser-based multilingual IMAP client with an
+ application-like user interface. It provides full functionality
+ expected from an e-mail client, including MIME support, address book,
+ folder manipulation and message filters.
+ .
+ The user interface is fully skinnable using XHTML and CSS 2.
+ .
+ This package provides several plugins for Roundcube. They should be
+ enabled in the configuration of Roundcube.
diff --git a/debian/roundcube-plugins.README.Debian b/debian/roundcube-plugins.README.Debian
new file mode 100644 (file)
index 0000000..7262f25
--- /dev/null
@@ -0,0 +1,11 @@
+This package ships several plugins. To use them, you need to enable
+them by adding them to $rcmail_config['plugins'] array in your
+`/etc/roundcube/main.inc.php' file.
+
+Some plugins need to be configured directly in
+`/etc/roundcube/main.inc.php' while some others have specific
+configuration files. For the later, look at
+`/etc/roundcube/plugins'. You will find empty files that you can
+modify to configure the corresponding plugin.
+
+ -- Vincent Bernat <bernat@debian.org>, Sun, 13 Feb 2011 15:50:48 +0100
diff --git a/debian/roundcube-plugins.dirs b/debian/roundcube-plugins.dirs
new file mode 100644 (file)
index 0000000..17c7d77
--- /dev/null
@@ -0,0 +1 @@
+etc/roundcube/plugins
diff --git a/debian/roundcube-plugins.install b/debian/roundcube-plugins.install
new file mode 100644 (file)
index 0000000..777ed51
--- /dev/null
@@ -0,0 +1,19 @@
+plugins/additional_message_headers/ usr/share/roundcube/plugins
+plugins/archive/ usr/share/roundcube/plugins
+plugins/autologon/ usr/share/roundcube/plugins
+plugins/database_attachments/ usr/share/roundcube/plugins
+plugins/debug_logger/ usr/share/roundcube/plugins
+plugins/emoticons/ usr/share/roundcube/plugins
+plugins/help/ usr/share/roundcube/plugins
+plugins/http_authentication/ usr/share/roundcube/plugins
+plugins/managesieve/ usr/share/roundcube/plugins
+plugins/markasjunk/ usr/share/roundcube/plugins
+plugins/new_user_dialog/ usr/share/roundcube/plugins
+plugins/new_user_identity/ usr/share/roundcube/plugins
+plugins/password/ usr/share/roundcube/plugins
+plugins/squirrelmail_usercopy/ usr/share/roundcube/plugins
+plugins/subscriptions_option/ usr/share/roundcube/plugins
+plugins/userinfo/ usr/share/roundcube/plugins
+plugins/vcard_attachments/ usr/share/roundcube/plugins
+plugins/virtuser_file/ usr/share/roundcube/plugins
+plugins/virtuser_query/ usr/share/roundcube/plugins
index 49ef123b5624e3fd7fa87998910e8a2f7ff44775..721060c9949958bbc55ed0cd84625bf29c6a197b 100755 (executable)
@@ -36,6 +36,23 @@ binary-install/roundcube-core::
        rm $(CURDIR)/debian/roundcube-core/usr/share/roundcube/program/js/jquery-1.4.min.js
        dh_link -proundcube-core usr/share/javascript/jquery/jquery.min.js usr/share/roundcube/program/js/jquery-1.4.min.js
 
+binary-install/roundcube-plugins::
+       # Plugins are in usr/share/roundcube/plugins, for each plugin
+       # if there is config.inc.php.dist, we symlink a config.inc.php
+       # in /etc/roundcube/plugins with some dummy content.
+       for plugin in $(CURDIR)/debian/roundcube-plugins/usr/share/roundcube/plugins/*; do \
+               dh_link -proundcube-plugins usr/share/roundcube/plugins/$${plugin##*/} \
+                       var/lib/roundcube/plugins/$${plugin##*/} ; \
+               if [ ! -f $${plugin}/config.inc.php.dist ]; then continue; fi ; \
+               dh_installdirs -proundcube-plugins etc/roundcube/plugins/$${plugin##*/} ; \
+               (echo "<?php" ; \
+                echo "// Empty configuration for $${plugin##*/}" ; \
+                echo "// See /usr/share/roundcube/plugins/$${plugin##*/}/config.inc.php.dist for instructions") > \
+                       $(CURDIR)/debian/roundcube-plugins/etc/roundcube/plugins/$${plugin##*/}/config.inc.php ; \
+               dh_link -proundcube-plugins etc/roundcube/plugins/$${plugin##*/}/config.inc.php \
+                       usr/share/roundcube/plugins/$${plugin##*/}/config.inc.php ; \
+       done
+
 $(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