| 1 | #!/usr/bin/make -f |
| 2 | include /usr/share/cdbs/1/rules/debhelper.mk |
| 3 | include /usr/share/cdbs/1/class/makefile.mk |
| 4 | |
| 5 | # definitions |
| 6 | SCRIPTDIR := usr/share/diogenes/scripts |
| 7 | |
| 8 | # documentation |
| 9 | DEB_INSTALL_DOCS_ALL := |
| 10 | DEB_INSTALL_DOCS_diogenes := AUTHORS README |
| 11 | DEB_INSTALL_DOCS_libphp-diogenes := include/diogenes/AUTHORS |
| 12 | |
| 13 | # changelogs |
| 14 | DEB_INSTALL_CHANGELOGS_ALL := |
| 15 | DEB_INSTALL_CHANGELOGS_diogenes := ChangeLog |
| 16 | DEB_INSTALL_CHANGELOGS_libphp-diogenes := include/diogenes/ChangeLog |
| 17 | |
| 18 | #directories |
| 19 | DEB_INSTALL_DIRS_diogenes := etc/diogenes var/lib/diogenes var/spool/diogenes/templates_c var/spool/diogenes/diogenes_c |
| 20 | |
| 21 | binary-install/diogenes:: |
| 22 | # config |
| 23 | dh_install -X.arch-ids -pdiogenes debian/diogenes.debian.inc.php \ |
| 24 | debian/diogenes.config.inc.php \ |
| 25 | config/apache.conf \ |
| 26 | usr/share/diogenes/config |
| 27 | |
| 28 | # files for db installation |
| 29 | dh_install -X.arch-ids -pdiogenes config/updatedb.php $(SCRIPTDIR) |
| 30 | cat debian/prefix.sql config/db/diogenes.sql > debian/diogenes/$(SCRIPTDIR)/diogenes.tables.sql.in |
| 31 | cat debian/prefix.sql config/db/diogenes.logactions.sql > debian/diogenes/$(SCRIPTDIR)/diogenes.logactions.sql.in |
| 32 | |
| 33 | # PHP files, templates, locales et al. |
| 34 | dh_install -X.arch-ids -pdiogenes -Xdiogenes.globals.inc.php.in \ |
| 35 | cvs.pl style.css \ |
| 36 | htdocs include locale plugins templates \ |
| 37 | usr/share/diogenes |
| 38 | |
| 39 | # remove library files |
| 40 | rm -rf debian/diogenes/usr/share/diogenes/include/diogenes |
| 41 | |
| 42 | binary-install/libphp-diogenes:: |
| 43 | |
| 44 | # PHP files and templates |
| 45 | dh_install -X.arch-ids -plibphp-diogenes include/diogenes/*.php usr/share/php/diogenes |
| 46 | dh_install -X.arch-ids -plibphp-diogenes include/diogenes/templates usr/share/php/diogenes |
| 47 | |