more plugin fixups
[diogenes.git] / debian / rules
... / ...
CommitLineData
1#!/usr/bin/make -f
2include /usr/share/cdbs/1/rules/debhelper.mk
3include /usr/share/cdbs/1/class/makefile.mk
4
5# definitions
6SCRIPTDIR := usr/share/diogenes/scripts
7
8# documentation
9DEB_INSTALL_DOCS_ALL :=
10DEB_INSTALL_DOCS_diogenes := AUTHORS README
11DEB_INSTALL_DOCS_libphp-diogenes := include/diogenes/AUTHORS
12
13# changelogs
14DEB_INSTALL_CHANGELOGS_ALL :=
15DEB_INSTALL_CHANGELOGS_diogenes := ChangeLog
16DEB_INSTALL_CHANGELOGS_libphp-diogenes := include/diogenes/ChangeLog
17
18#directories
19DEB_INSTALL_DIRS_diogenes := etc/diogenes var/lib/diogenes var/spool/diogenes/templates_c var/spool/diogenes/diogenes_c
20
21binary-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
42binary-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