c779f2b380
This commit does the following: * Merge the changelog from the releases of 3.2 * Adds a command 'koha-upgrade-to-3.4' that does the MARC item splitting stuff. * Adds a debconf note to make sure people know that they need to run the above command. * Fixes the inclusion of jQuery in the packages. * Makes build-git-snapshot build packages with a 3.5 version. Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
95 lines
5 KiB
Makefile
Executable file
95 lines
5 KiB
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
TMP = $(CURDIR)/debian/tmp
|
|
|
|
# Make "perl Makefile.PL" be non-interactive.
|
|
export PERL_MM_USE_DEFAULT=1
|
|
|
|
%:
|
|
dh $@ --fail-missing
|
|
|
|
override_dh_gencontrol:
|
|
debian/bd-to-depends >> debian/koha-common.substvars
|
|
dh_gencontrol
|
|
|
|
override_dh_auto_install:
|
|
dh_auto_install
|
|
rm $(TMP)/etc/koha/README.txt
|
|
rm -r $(TMP)/usr/share/koha/doc
|
|
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/jquery.js \
|
|
# $(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
|
|
install -d $(TMP)/etc/apache2/sites-available
|
|
install -d $(TMP)/etc/apache2/sites-enabled
|
|
install -d $(TMP)/etc/apache2/conf.d
|
|
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_</'
|
|
install -m 0644 koha-tmpl/opac-tmpl/prog/en/lib/yui/skin.css \
|
|
koha-tmpl/opac-tmpl/prog/en/lib/yui/reset-fonts-grids.css \
|
|
$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/css
|
|
install -m 0644 koha-tmpl/opac-tmpl/prog/en/lib/yui/skin.css \
|
|
koha-tmpl/opac-tmpl/prog/en/lib/yui/reset-fonts-grids.css \
|
|
$(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/css
|
|
install -m 0644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/menu-button-arrow-disabled.png \
|
|
$(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/css
|
|
install -m 0644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/menu-button-arrow-disabled.png \
|
|
$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/css
|
|
install -m 0644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/menu-button-arrow.png \
|
|
$(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/css
|
|
install -m 0644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/menu-button-arrow.png \
|
|
$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/css
|
|
install -m 0644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-active.png \
|
|
$(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/css
|
|
install -m 0644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-active.png \
|
|
$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/css
|
|
install -m 0644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-disabled.png \
|
|
$(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/css
|
|
install -m 0644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-disabled.png \
|
|
$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/css
|
|
install -m 0644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-focus.png \
|
|
$(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/css
|
|
install -m 0644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-focus.png \
|
|
$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/css
|
|
install -m 0644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-hover.png \
|
|
$(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/css
|
|
install -m 0644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow-hover.png \
|
|
$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/css
|
|
install -m 0644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow.png \
|
|
$(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/css
|
|
install -m 0644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/split-button-arrow.png \
|
|
$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/css
|
|
install -m 0644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/sprite.png \
|
|
$(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/css
|
|
install -m 0644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/sprite.png \
|
|
$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/css
|
|
sed -i -e 's:url(.*/reset-fonts-grids.css.*):url(reset-fonts-grids.css):' \
|
|
-e 's:url(.*/skin.css.*):url(skin.css):' \
|
|
$(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/css/opac.css \
|
|
$(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/css/sco.css \
|
|
$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/css/staff-global*.css
|
|
|