Koha/debian/rules
Lars Wirzenius 97232eee15 Replace old, non-functional Debian packaging with a new one.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-04-16 00:41:54 -04:00

44 lines
1.7 KiB
Makefile
Executable file

#!/usr/bin/make -f
PACKAGE = $(shell dh_listpackages)
TMP = $(CURDIR)/debian/$(PACKAGE)
# Make "perl Makefile.PL" be non-interactive.
export PERL_MM_USE_DEFAULT=1
%:
dh $@
override_dh_auto_install:
dh_auto_install
rm -r $(TMP)/var/run
rm -r $(TMP)/var/lock
rm $(TMP)/var/log/koha/README
rm $(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/lib/jquery/jquery.js
ln -s /usr/share/javascript/jquery/jquery.js \
$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/lib/jquery/jquery.js
rm $(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/lib/jquery/jquery.js
ln -s /usr/share/javascript/jquery \
$(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/lib/jquery/jquery.js
rm -r \
$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/js/tinymce
ln -s /usr/share/tinymce2/www \
$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/js/tinymce
rm -r \
$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/lib/yui
ln -s /usr/share/javascript/yui \
$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/lib/yui
rm -r \
$(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/lib/yui
ln -s /usr/share/javascript/yui \
$(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/lib/yui
ln -s ../../koha/koha-httpd.conf $(TMP)/etc/apache2/sites-available/koha
ln -s ../sites-available/koha $(TMP)/etc/apache2/sites-enabled/koha
install -m 0644 debian/koha.apache-ports $(TMP)/etc/apache2/conf.d/koha
sed -i '/^<VirtualHost 127.0.1.1:/s//<VirtualHost *:/' \
$(TMP)/etc/koha/koha-httpd.conf
mv $(TMP)/etc/koha/koha-conf.xml $(TMP)/usr/share/koha/koha-conf.xml.in
sed -i $(TMP)/usr/share/koha/koha-conf.xml.in \
-e '/^ <user>/s/>.*</>_DBC_DBUSER_</' \
-e '/^ <pass>/s/>.*</>_DBC_DBPASS_</' \