View | Details | Raw Unified | Return to bug 6361
Collapse All | Expand All

(-)a/debian/build-git-snapshot (-1 / +1 lines)
Lines 30-36 latest_sha1() { Link Here
30
}
30
}
31
31
32
newversion() {
32
newversion() {
33
    printf '3.3-1~git%s.%s' $(date +%Y%m%d%H%M%S) $(latest_sha1)
33
    printf '3.5-1~git%s.%s' $(date +%Y%m%d%H%M%S) $(latest_sha1)
34
}
34
}
35
35
36
adjust_debian_changelog() {
36
adjust_debian_changelog() {
(-)a/debian/changelog (+40 lines)
Lines 1-3 Link Here
1
koha (3.2.9-1) squeeze; urgency=high
2
3
  * New upstream release (3.02.09)
4
  * This is a security release, see
5
    http://lists.katipo.co.nz/pipermail/koha/2011-May/029046.html
6
7
 -- Robin Sheat <robin@catalyst.net.nz>  Tue, 17 May 2011 16:09:09 +1200
8
9
koha (3.2.7-1) squeeze; urgency=low
10
11
  * New upstream release (3.02.07) 
12
13
 -- Robin Sheat <robin@catalyst.net.nz>  Tue, 19 Apr 2011 14:35:49 +1200
14
15
koha (3.2.6-1) squeeze; urgency=low
16
17
  * New upstream release (3.02.06) 
18
19
 -- Robin Sheat <robin@catalyst.net.nz>  Tue, 29 Mar 2011 14:38:28 +1300
20
21
koha (3.2.5-1) squeeze; urgency=high
22
23
  * New upstream release (3.02.05)
24
  * This is a security release, see
25
    http://lists.katipo.co.nz/pipermail/koha/2011-February/027771.html
26
27
 -- Robin Sheat <robin@catalyst.net.nz>  Fri, 25 Feb 2011 11:39:21 +1300
28
29
koha (3.2.3-1) squeeze; urgency=low
30
31
  * New upstream release (3.02.03) 
32
33
 -- Robin Sheat <robin@catalyst.net.nz>  Tue, 08 Feb 2011 10:50:10 +1300
34
35
koha (3.2.2-1) squeeze; urgency=low
36
37
  * New upstream release (3.02.02) 
38
39
 -- Robin Sheat <robin@catalyst.net.nz>  Sun, 09 Jan 2011 19:42:04 +1300
40
1
koha (3.2.1-1) squeeze; urgency=low
41
koha (3.2.1-1) squeeze; urgency=low
2
42
3
  * New upstream release. 
43
  * New upstream release. 
(-)a/debian/control (-1 / +3 lines)
Lines 6-12 Standards-Version: 3.8.4 Link Here
6
# NOTA BENE: Build dependencies end up as runtime dependencies as well.
6
# NOTA BENE: Build dependencies end up as runtime dependencies as well.
7
# See debian/rules, the override_dh_gencontrol rules. 
7
# See debian/rules, the override_dh_gencontrol rules. 
8
# There are some exceptions.
8
# There are some exceptions.
9
Build-Depends: libalgorithm-checkdigits-perl,
9
Build-Depends: libcgi-session-driver-memcached-perl,
10
 libalgorithm-checkdigits-perl,
10
 libauthen-cas-client-perl,
11
 libauthen-cas-client-perl,
11
 libbiblio-endnotestyle-perl,
12
 libbiblio-endnotestyle-perl,
12
 libbusiness-isbn-perl,
13
 libbusiness-isbn-perl,
Lines 86-91 Depends: ${misc:Depends}, ${koha:Depends}, Link Here
86
 apache2-mpm-itk,
87
 apache2-mpm-itk,
87
 at,
88
 at,
88
 daemon,
89
 daemon,
90
 debconf,
89
 idzebra-2.0,
91
 idzebra-2.0,
90
 libjs-jquery,
92
 libjs-jquery,
91
 libjs-yui,
93
 libjs-yui,
(-)a/debian/control.in (+1 lines)
Lines 16-21 Depends: ${misc:Depends}, ${koha:Depends}, Link Here
16
 apache2-mpm-itk,
16
 apache2-mpm-itk,
17
 at,
17
 at,
18
 daemon,
18
 daemon,
19
 debconf,
19
 idzebra-2.0,
20
 idzebra-2.0,
20
 libjs-jquery,
21
 libjs-jquery,
21
 libjs-yui,
22
 libjs-yui,
(-)a/debian/koha-common.config (+26 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# koha-common.config - ensures that debconf stuff is all handled properly
4
#
5
# Copyright 2011  Catalyst IT, Ltd
6
# 
7
# This program is free software: you can redistribute it and/or modify
8
# it under the terms of the GNU General Public License as published by
9
# the Free Software Foundation, either version 3 of the License, or
10
# (at your option) any later version.
11
# 
12
# This program is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
# GNU General Public License for more details.
16
# 
17
# You should have received a copy of the GNU General Public License
18
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
20
set -e
21
22
. /usr/share/debconf/confmodule
23
24
db_input high koha-common/3.2-3.4-upgrade-notice || true
25
db_go
26
(-)a/debian/koha-common.install (+1 lines)
Lines 25-28 debian/scripts/koha-restore usr/sbin Link Here
25
debian/scripts/koha-start-zebra             usr/sbin
25
debian/scripts/koha-start-zebra             usr/sbin
26
debian/scripts/koha-stop-zebra              usr/sbin
26
debian/scripts/koha-stop-zebra              usr/sbin
27
debian/scripts/koha-upgrade-schema          usr/sbin
27
debian/scripts/koha-upgrade-schema          usr/sbin
28
debian/scripts/koha-upgrade-to-3.4          usr/sbin
28
debian/scripts/*.8                          usr/share/man/man8
29
debian/scripts/*.8                          usr/share/man/man8
(-)a/debian/koha-common.postinst (+6 lines)
Lines 2-7 Link Here
2
2
3
set -e
3
set -e
4
4
5
. /usr/share/debconf/confmodule
6
5
conf=/etc/mysql/koha-common.cnf
7
conf=/etc/mysql/koha-common.cnf
6
if [ ! -e "$conf" ] && [ ! -L "$conf" ]
8
if [ ! -e "$conf" ] && [ ! -L "$conf" ]
7
then
9
then
Lines 11-13 fi Link Here
11
#DEBHELPER#
13
#DEBHELPER#
12
14
13
koha-upgrade-schema $(koha-list)
15
koha-upgrade-schema $(koha-list)
16
17
db_stop
18
19
exit 0
(-)a/debian/koha-common.templates (+10 lines)
Line 0 Link Here
1
Template: koha-common/3.2-3.4-upgrade-notice
2
Type: note
3
Description: koha-common upgrade actions required
4
 If you are upgrading from a Koha 3.2 to 3.4 release, you must run:
5
  sudo /usr/sbin/koha-upgrade-to-3.4
6
 .
7
 For large catalogues, running this may take a while. Your Koha installation
8
 should be largely operational during the process, but some things,
9
 particularly to do with items, may appear strange until the upgrade and
10
 re-index is complete.
(-)a/debian/rules (-6 / +6 lines)
Lines 19-30 override_dh_auto_install: Link Here
19
	rm -r $(TMP)/var/run
19
	rm -r $(TMP)/var/run
20
	rm -r $(TMP)/var/lock
20
	rm -r $(TMP)/var/lock
21
	rm $(TMP)/var/log/koha/README
21
	rm $(TMP)/var/log/koha/README
22
	rm $(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/lib/jquery/jquery.js
22
#	rm $(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/lib/jquery/jquery.js
23
	ln -s /usr/share/javascript/jquery/jquery.js \
23
#	ln -s /usr/share/javascript/jquery/jquery.js \
24
	   $(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/lib/jquery/jquery.js
24
#	   $(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/lib/jquery/jquery.js
25
	rm $(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/lib/jquery/jquery.js
25
#	rm $(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/lib/jquery/jquery.js
26
	ln -s /usr/share/javascript/jquery/jquery.js \
26
#	ln -s /usr/share/javascript/jquery/jquery.js \
27
	   $(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/lib/jquery/jquery.js
27
#	   $(TMP)/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/lib/jquery/jquery.js
28
	rm -r \
28
	rm -r \
29
		$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/js/tinymce
29
		$(TMP)/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/js/tinymce
30
	ln -s /usr/share/tinymce2/www \
30
	ln -s /usr/share/tinymce2/www \
(-)a/debian/scripts/koha-upgrade-to-3.4 (-1 / +49 lines)
Line 0 Link Here
0
- 
1
#!/bin/sh
2
#
3
# koha-upgrade-to-3.4 - performs the necessary changes to upgrade a Koha
4
# system from 3.2 to 3.4
5
#
6
# Copyright 2011  Catalyst IT, Ltd
7
# 
8
# This program is free software: you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License as published by
10
# the Free Software Foundation, either version 3 of the License, or
11
# (at your option) any later version.
12
# 
13
# This program is distributed in the hope that it will be useful,
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
# GNU General Public License for more details.
17
# 
18
# You should have received a copy of the GNU General Public License
19
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
21
TO_UPGRADE=$@
22
23
if [ -z "$TO_UPGRADE" ] ;
24
then
25
    TO_UPGRADE=`koha-list`
26
fi
27
28
if [ -z "$TO_UPGRADE" ] ;
29
then
30
    echo "No Koha instances were found to upgrade."
31
    exit
32
fi
33
34
cat <<EOH
35
Koha will be upgraded for the following instances: $TO_UPGRADE
36
37
This may take some time to run. Go make a coffee.
38
EOH
39
40
for name in "$TO_UPGRADE"
41
do
42
    echo "Upgrading $name..."
43
    sudo -u "$name-koha" -H \
44
        env PERL5LIB=/usr/share/koha/lib \
45
        KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml" \
46
        /usr/share/koha/bin/maintenance/remove_items_from_biblioitems.pl --run
47
    echo "Rebuilding zebra for $name..."
48
    koha-rebuild-zebra --full -v -u $name
49
done

Return to bug 6361