cp -r $(CURDIR)/debian/sql/* $(CURDIR)/debian/roundcube-core/usr/share/dbconfig-common/data/roundcube/upgrade/.
# Some files are executable while not being scripts or binary...
- find $(CURDIR)/debian/roundcube-core/usr/share/roundcube/program/localization -type f -print0 | xargs -0 chmod -x
+ find $(CURDIR)/debian/roundcube-core/usr/share/roundcube/program -type f -print0 | xargs -r0 chmod -x
# Remove useless file
- rm $(CURDIR)/debian/roundcube-core/usr/share/roundcube/program/lib/magic
- rm $(CURDIR)/debian/roundcube-core/usr/share/roundcube/bin/msgimport
+ rm $(CURDIR)/debian/roundcube-core/usr/share/roundcube/bin/*.sh
+ find $(CURDIR)/debian/roundcube-core -name '._*' -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/tinymce2/www usr/share/roundcube/program/js/tiny_mce
+ dh_link -proundcube-core usr/share/tinymce/www usr/share/roundcube/program/js/tiny_mce
+
+$(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
clean::
debconf-updatepo