4546ede3e2286f31106f4987b4b06e326f764427
[pazpar2-moved-to-github.git] / debian / rules
1 #!/usr/bin/make -f
2 export DH_VERBOSE=1
3
4 %:
5         dh $@ --without python-support
6
7 override_dh_auto_test:
8         true
9
10 override_dh_auto_configure:
11         dh_auto_configure -- --with-yaz=/usr/bin
12
13 override_dh_strip:
14         dh_strip --dbg-package=pazpar2-dbg
15
16 override_dh_auto_install:
17         dh_auto_install
18         mkdir -p debian/pazpar2-doc/usr/share/doc
19         mv debian/tmp/usr/share/doc/pazpar2 debian/pazpar2-doc/usr/share/doc/pazpar2-doc
20 # pazpar2 package
21         cp etc/server.xml debian/pazpar2/etc/pazpar2/server.xml
22         cp etc/default.xml debian/pazpar2/etc/pazpar2/services-available/
23         cp etc/mkc.xml debian/pazpar2/etc/pazpar2/services-available/
24         cp etc/services/*.xml debian/pazpar2/etc/pazpar2/services-available
25         cp etc/settings/*.xml debian/pazpar2/etc/pazpar2/settings/
26         cp -r etc/settings/mkc debian/pazpar2/etc/pazpar2/settings
27 # pazpar2-apache2 package
28         cp debian/ap2pazpar2.cfg debian/pazpar2-apache2/etc/pazpar2
29 # pazpar2-test1 package
30         cp www/test1/index.html debian/pazpar2-test1/usr/share/pazpar2/test1/
31         cp www/test1/search.js debian/pazpar2-test1/usr/share/pazpar2/test1/
32 # pazpar2-jsdemo package
33         cp www/jsdemo/*.html debian/pazpar2-jsdemo/usr/share/pazpar2/jsdemo/
34         cp www/jsdemo/*.js debian/pazpar2-jsdemo/usr/share/pazpar2/jsdemo/
35         cp www/jsdemo/*.png debian/pazpar2-jsdemo/usr/share/pazpar2/jsdemo/
36         cp www/jsdemo/*.css debian/pazpar2-jsdemo/usr/share/pazpar2/jsdemo/
37 # pazpar2-js package
38         cp debian/ap2pazpar2-js.cfg debian/pazpar2-js/etc/pazpar2
39         mv debian/tmp/usr/share/pazpar2/js/pz2.js debian/pazpar2-js/usr/share/pazpar2/js/
40 # pazpar2-xsl package
41         cp  etc/xsl/*.xsl debian/pazpar2-xsl/usr/share/pazpar2/xsl
42
43 override_dh_installchangelogs:
44         dh_installchangelogs NEWS
45
46 override_dh_installdocs:
47         dh_installdocs -A README