3 TMP
= $(CURDIR
)/debian
/tmp
5 # Make "perl Makefile.PL" be non-interactive.
6 export PERL_MM_USE_DEFAULT
=1
9 dh
$@
--fail-missing
--with bash-completion
11 override_dh_gencontrol
:
12 debian
/bd-to-depends
>> debian
/koha-common.substvars
15 override_dh_auto_install
:
17 rm $(TMP
)/etc
/koha
/README.txt
18 rm $(TMP
)/etc
/koha
/SIPconfig.xml
19 rm -r
$(TMP
)/usr
/share
/koha
/doc
22 rm $(TMP
)/var
/log
/koha
/README
24 $(TMP
)/usr
/share
/koha
/intranet
/htdocs
/intranet-tmpl
/lib
/tiny_mce
25 ln
-s
/usr
/share
/tinymce
/www \
26 $(TMP
)/usr
/share
/koha
/intranet
/htdocs
/intranet-tmpl
/lib
/tiny_mce
27 ln
-s
/usr
/share
/javascript
/yui \
28 $(TMP
)/usr
/share
/koha
/opac
/htdocs
/opac-tmpl
/lib
/yui
29 install -d
$(TMP
)/etc
/apache2
/sites-available
30 install -d
$(TMP
)/etc
/apache2
/sites-enabled
31 install -d
$(TMP
)/etc
/apache2
/conf.d
32 ln
-s ..
/..
/koha
/koha-httpd.conf
$(TMP
)/etc
/apache2
/sites-available
/koha
33 ln
-s ..
/sites-available
/koha
$(TMP
)/etc
/apache2
/sites-enabled
/koha
34 install -m
0644 debian
/koha.apache-ports
$(TMP
)/etc
/apache2
/conf.d
/koha
35 sed
-i
'/^<VirtualHost 127.0.1.1:/s//<VirtualHost *:/' \
36 $(TMP
)/etc
/koha
/koha-httpd.conf
37 mv
$(TMP
)/etc
/koha
/koha-conf.xml
$(TMP
)/usr
/share
/koha
/koha-conf.xml.in
38 sed
-i
$(TMP
)/usr
/share
/koha
/koha-conf.xml.in \
39 -e
'/^ <user>/s/>.*</>_DBC_DBUSER_</' \
40 -e
'/^ <pass>/s/>.*</>_DBC_DBPASS_</'
41 mkdir
-p
$(TMP
)/debian
/tmp_docbook
42 xt
/verify-debian-docbook.t
43 xsltproc
--output
$(TMP
)/debian
/tmp_docbook
/ \
44 /usr
/share
/xml
/docbook
/stylesheet
/docbook-xsl
/manpages
/docbook.xsl \
48 # exclude history.txt from compression as about.pl needs it uncompressed
49 dh_compress
--exclude
=history.txt