3 include /usr/share/cdbs/1/rules/debhelper.mk
4 include /usr/share/cdbs/1/rules/patchsys-quilt.mk
6 DEB_INSTALL_CHANGELOGS_ALL=CHANGELOG
8 # In order to regenerate 'debian/control' :
9 # DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean
10 # Then check manually if everything's ok
12 binary-install/roundcube-core::
13 # Symlink all that is in /usr/share/roundcube to /var/lib/roundcube
14 find debian/roundcube-core/usr/share/roundcube -maxdepth 1 -mindepth 1 | \
16 if [ ! -L "$$i" ]; then \
17 dh_link -proundcube-core "`echo "$$i" | sed -e s#debian/roundcube-core/##`" \
18 "`echo "$$i" | sed -e s#debian/roundcube-core/usr/share/roundcube/#var/lib/roundcube/#`"; \
21 # Install config/db.inc.php.dist
22 install -m 0640 $(CURDIR)/config/db.inc.php.dist $(CURDIR)/debian/roundcube-core/etc/roundcube/db.inc.php
23 install -m 0640 $(CURDIR)/config/main.inc.php.dist $(CURDIR)/debian/roundcube-core/usr/share/roundcube
25 # Database related files
26 # Install empty tables and updates for each db type
27 install -m 0644 $(CURDIR)/SQL/mysql.initial.sql $(CURDIR)/debian/roundcube-core/usr/share/dbconfig-common/data/roundcube/install/mysql
28 install -m 0644 $(CURDIR)/SQL/postgres.initial.sql $(CURDIR)/debian/roundcube-core/usr/share/dbconfig-common/data/roundcube/install/pgsql
29 install -m 0644 $(CURDIR)/SQL/sqlite.initial.sql $(CURDIR)/debian/roundcube-core/usr/share/dbconfig-common/data/roundcube/install/sqlite
31 # Old database upgrades
32 cp -r $(CURDIR)/debian/sql/* $(CURDIR)/debian/roundcube-core/usr/share/dbconfig-common/data/roundcube/upgrade/.
34 # Some files are executable while not being scripts or binary...
35 find $(CURDIR)/debian/roundcube-core/usr/share/roundcube/program -type f -print0 | xargs -r0 chmod -x
37 rm $(CURDIR)/debian/roundcube-core/usr/share/roundcube/bin/*.sh
38 find $(CURDIR)/debian/roundcube-core -name '._*' -print0 | xargs -r0 rm
39 find $(CURDIR)/debian/roundcube-core -name '.htaccess' -print0 | xargs -r0 rm
40 # Remove files shipped in tinymce package
41 rm -rf $(CURDIR)/debian/roundcube-core/usr/share/roundcube/program/js/tiny_mce
42 dh_link -proundcube-core usr/share/tinymce/www usr/share/roundcube/program/js/tiny_mce
44 $(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/% :
45 install -d $(CURDIR)/debian/$(cdbs_curpkg)/usr/share/bug/$(cdbs_curpkg)
46 install -m 644 $(CURDIR)/debian/bug.control $(CURDIR)/debian/$(cdbs_curpkg)/usr/share/bug/$(cdbs_curpkg)/control