Only use XDR when doing CORS
[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         cp etc/*.xsl debian/pazpar2/etc/pazpar2/
28 # pazpar2-apache2 package
29         cp debian/ap2pazpar2.cfg debian/pazpar2-apache2/etc/pazpar2
30 # pazpar2-test1 package
31         cp www/test1/index.html debian/pazpar2-test1/usr/share/pazpar2/test1/
32         cp www/test1/search.js debian/pazpar2-test1/usr/share/pazpar2/test1/
33 # pazpar2-jsdemo package
34         cp www/jsdemo/*.html debian/pazpar2-jsdemo/usr/share/pazpar2/jsdemo/
35         cp www/jsdemo/*.js debian/pazpar2-jsdemo/usr/share/pazpar2/jsdemo/
36         cp www/jsdemo/*.png debian/pazpar2-jsdemo/usr/share/pazpar2/jsdemo/
37         cp www/jsdemo/*.css debian/pazpar2-jsdemo/usr/share/pazpar2/jsdemo/
38 # pazpar2-js package
39         cp debian/ap2pazpar2-js.cfg debian/pazpar2-js/etc/pazpar2
40         mv debian/tmp/usr/share/pazpar2/js/pz2.js debian/pazpar2-js/usr/share/pazpar2/js/
41
42 override_dh_installchangelogs:
43         dh_installchangelogs NEWS
44
45 override_dh_installdocs:
46         dh_installdocs -A README