X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debian%2Frules;h=721060c9949958bbc55ed0cd84625bf29c6a197b;hb=1eff995c385238bb5729149a2ac5a8fb7afc6b55;hp=9b7dccb4266a016d25e0e4a2ef2f0ab6f18cb18e;hpb=bae6b172c0970ef76abbe851c4c5a3ffb8857195;p=roundcube.git diff --git a/debian/rules b/debian/rules index 9b7dccb..721060c 100755 --- a/debian/rules +++ b/debian/rules @@ -1,32 +1,18 @@ #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk -include /usr/share/cdbs/1/rules/patchsys-quilt.mk DEB_INSTALL_CHANGELOGS_ALL=CHANGELOG -# In order to regenerate 'debian/control' : -# DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean -# Then check manually if everything's ok - binary-install/roundcube-core:: - # Remove plugins - rm -rf $(CURDIR)/debian/roundcube-core/usr/share/roundcube/plugins - - # Symlink all that is in /usr/share/roundcube to /var/lib/roundcube - find debian/roundcube-core/usr/share/roundcube -maxdepth 1 -mindepth 1 | \ - while read i; do \ - if [ ! -L "$$i" ]; then \ - dh_link -proundcube-core "`echo "$$i" | sed -e s#debian/roundcube-core/##`" \ - "`echo "$$i" | sed -e s#debian/roundcube-core/usr/share/roundcube/#var/lib/roundcube/#`"; \ - fi \ - done # 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/roundcube/htaccess var/lib/roundcube/.htaccess # Database related files # Install empty tables and updates for each db type @@ -40,16 +26,32 @@ binary-install/roundcube-core:: # Some files are executable while not being scripts or binary... find $(CURDIR)/debian/roundcube-core/usr/share/roundcube -type f -print0 | xargs -r0 chmod -x # Remove useless file - rm $(CURDIR)/debian/roundcube-core/usr/share/roundcube/bin/*.sh - rm $(CURDIR)/debian/roundcube-core/usr/share/roundcube/bin/decrypt.php + rm -rf $(CURDIR)/debian/roundcube-core/usr/share/roundcube/bin find $(CURDIR)/debian/roundcube-core -name '._*' -print0 | xargs -r0 rm find $(CURDIR)/debian/roundcube-core -name '*.js.src' -print0 | xargs -r0 rm # Remove files shipped in tinymce package rm -rf $(CURDIR)/debian/roundcube-core/usr/share/roundcube/program/js/tiny_mce dh_link -proundcube-core usr/share/tinymce/www usr/share/roundcube/program/js/tiny_mce # Remove jquery as well - 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 + 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 " \ + $(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)