Commit graph

81 commits

Author SHA1 Message Date
Robin Sheat
c779f2b380 Bug 6361 - make the packages work with koha 3.4
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>
2011-06-03 11:06:31 +12:00
Chris Cormack
ae70c2f790 Bug 6031 : Fix for syntax (bashism crept into a pure sh script)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-05-02 12:44:48 +12:00
Robin Sheat
dfc1038931 Bug 5509 - use an XML parser to get values from config
Using sed and regex was causing issues when LDAP connection details were
added.

See
http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454
for more information.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-04-28 13:35:25 +12:00
Chris Cormack
35b338412b Merge remote branch 'kc/new/enh/bug_5917' into kcmaster 2011-04-10 21:51:26 +12:00
Chris Cormack
bacd210c73 Bug 5917 : Updating dependencies 2011-04-10 21:50:35 +12:00
Srdjan Jankovic
7882911799 bug 6031: play with options passed on to rebuild-zebra.pl
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-04-10 20:53:00 +12:00
Robin Sheat
0645f83c22 Bug 6032: Increase zebra biblio register stores
This keeps the package versions of the zebra configuration in sync with
the makefile-installed ones.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-04-07 13:27:36 +12:00
Robin Sheat
e88cee5326 Bug 5550 - correct filename referenced in docs
Spotted by Reed Wade.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-01-01 07:43:30 +13:00
Srdjan Jankovic
1c86e93cec Bug 5510: prepend output with system name
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2010-12-19 07:10:06 +13:00
Robin Sheat
4f4c4eceb3 Bug 5313 - allow creation of libraries with hyphens
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2010-12-13 21:34:03 +13:00
Robin Sheat
eaddd603e4 Update Debian changelog for 3.2.1 release
This adds the required changelog changes to keep it current for the
3.2.1 release. It is intended to go straight into 3.2.x, and probably
should go into master also.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2010-12-13 13:47:08 +13:00
Robin Sheat
8b3a2ecebd Bug 5479 - Update package building scripts
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2010-12-12 22:45:42 +13:00
Robin Sheat
522a275905 Bug 5322 - Added pwgen dependency
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2010-10-30 20:03:53 +13:00
Robin Sheat
383ad2ed69 Update changelog and build script in preperation for 3.2.0 release
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-10-21 21:41:55 -04:00
Robin Sheat
292c618572 Bug 5288 - Update package dependencies, control source details
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-10-06 23:23:24 -04:00
Robin Sheat
7d44072156 Bug 5054 - allow the resulting .deb location to be specified
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-10-06 08:12:31 -04:00
Robin Sheat
18a1c3db11 Bug 5139 - packages now do email and other cron jobs
By default the packages now set up the cron jobs to handle things like
overdues and email etc. By default, email is off, 'koha-email-enable'
and 'koha-email-disable' can manage this.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-10-06 08:12:14 -04:00
Robin Sheat
57d11aee2c Bug 5077 - ensure rebuild_zebra will run somewhere it can read
This prevents it leaving files lying around in /tmp

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-10-06 08:00:17 -04:00
Robin Sheat
a1616127bd Bug 5046 - fix the zebra authorities configuration
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-07-27 20:37:49 -04:00
Robin Sheat
a1011ad76a Bug 5034 - update the maintainer details, correctly
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-07-19 10:19:39 -04:00
Robin Sheat
618b092a5e bug 4953 - make the debian package copy in YUI images
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-07-07 12:05:20 -04:00
Robin Sheat
8dcfa1ec4c bug 4952 - make the koha-remove script stop zebra for the instance
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-07-07 12:05:18 -04:00
Robin Sheat
5d2a1c7916 bug4929 - amended the instructions
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-07-02 07:55:50 -04:00
02b9e03567 applied paranoia
RM note: we've had our fun; next patch will be to trim
the comment to something that makes sense in context.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-06-09 08:33:19 -04:00
Lars Wirzenius
604d871d27 Build with pdebuild, not debuild.
This checks build dependency declarations more thoroughly.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-06-09 08:31:40 -04:00
Lars Wirzenius
73152b7ac4 Remove dependencies on perl-base.
perl-base is a required package, so it is always installed on a Debian
system, and Debian packages should not depend on it, unless they need
it a specific version, and I don't think we do.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-06-09 08:31:38 -04:00
Lars Wirzenius
cb9ccd6cf3 Disable a new site created with --request-db.
This way, the various cron jobs will not try to do things to it.
They can't, since it is not yet really created.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-06-03 07:51:36 -04:00
Lars Wirzenius
79d5a0fce8 Update FSF address in debian/copyright.
This makes lintian be a bit more quiet.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-06-02 07:14:43 -04:00
Lars Wirzenius
5b12c69f27 Upgrade Koha instance database schema when package is upgraded.
If the new version of Koha requires a newer version of the database
schema, the Koha instances will work immediately after the package
is upgraded, rather than after the sysadmin has run koha-upgrade-schema
manually.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-06-02 07:14:42 -04:00
Lars Wirzenius
6858a1feda Fix bug 4818: Add note to koha README.Debian to maybe disable default vhost.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-06-02 07:14:40 -04:00
Lars Wirzenius
204ee9e854 Add missing build-dependencies (python, python-debian).
Also, debian/control gets re-generated, from debian/control.in and
PerlDependencies.pm.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-06-02 07:14:37 -04:00
Lars Wirzenius
2fcc4fe94e Add tools to update debian/control's build dependencies.
The canonical list of Perl module dependencies are in
C4::Installer::PerlDependencies::PERL_DEPS now. Add a script
(debian/list-deps) to turn that into a list of Debian package names.

Because that is a slow process, and the output rarely changes, do
not do that at build time. Also, doing it at build time would require
modifying debian/control in evil ways.

Instead, add another tool, debian/update-control, which reads the
new file debian/control.in, and adds the output of debian/list-deps to
Build-Depends and creates a new debian/control.

debian/control.in is the master file. If changes are needed, that should
be edited. For performance and convenience reasons, the output is also kept
in git, but don't edit debian/control directly, please. Such changes
might get lost by the next commit by someone else.

Whenever PERL_DEPS changes, debian/update-control should be run as well
and the result committed to git.

This is not quite as automatic as it might be, but should be good enough.
It avoids keeping the list of Perl modules in two places.

Note that since it seems impossible to automatically figure out the Debian
package version that corresponds to a Perl module version, I have not
tried to do that at all.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-06-02 07:14:36 -04:00
Lars Wirzenius
79a0c93ddd Bug 4817: Point to README.Debian in koha package description, postinst output.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-27 05:19:03 -04:00
Lars Wirzenius
fe418ea607 Set upload target to squeeze-dev.
Since we're uploading a git snapshot, this is not meant for
production, and thus it should not be uploaded to squeeze,
but for squeeze-dev.

Documentation for the pockets will appear in the apt
repository or the wiki once it is ready.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-26 08:28:24 -04:00
Lars Wirzenius
6fb9a6036d Update README.Debian for koha-common with post-install setup.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-26 08:28:15 -04:00
Lars Wirzenius
14ad5059ab Update README.Debian for koha.deb package.
One bug fix (three steps, not two, are automated in koha-post-install-setup).
Also add a note about the need to possibly edit ports.conf.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-26 08:28:11 -04:00
Lars Wirzenius
fc769cd052 Use a native Debian package.
Since the packaging is part of the upstream source, there's no point
in having a Debian version.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-26 08:28:05 -04:00
Lars Wirzenius
b27ef1280a Add dependency on apache2-mpm-itk for koha-common.
The way things are set up, each Koha instance runs under its own
user account. At least for now, this requires apache2-mpm-itk.
Later we can investigate other possibilities.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-26 08:28:03 -04:00
Lars Wirzenius
d57e9486d7 Make sure the temporary version number comes before 3.2.
This way, upgrades from the temporary ones to the final release
will happen automatically.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-26 08:28:00 -04:00
Lars Wirzenius
a9f918a8ae Install the admin scripts.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-25 08:04:32 -04:00
Lars Wirzenius
50503da119 Make koha-create be able to handle manual database creation.
This is necessary if we do not have access to DB server with sufficient
permissions. The DB server is used for other things, that may well be
the case.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-25 08:04:32 -04:00
Lars Wirzenius
df6767467b Add support for a remote mysql server.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-25 08:04:32 -04:00
Lars Wirzenius
2ae1e3c21d Use /etc/mysql/koha-common.cnf instead of the Debian one.
koha-common.postinst now creates a symlink to the Debian one.
The sysadmin may replace that manually with something that allows
Koha to access a remote mysql server.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-25 08:04:32 -04:00
Lars Wirzenius
cfd5fae5a3 Add koha-foreach, a script to run a command for each Koha instance.
Use script to enable the build_Holds_queue.pl cron job.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-25 07:59:45 -04:00
Lars Wirzenius
b25fa64cd6 Centralize creation of Koha instance dirs.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-25 07:59:42 -04:00
Lars Wirzenius
2e626be90c Add scripts to start, stop, restart Zebra, and rebuild its indexes.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-25 07:59:39 -04:00
Lars Wirzenius
439989924d Add koha-upgrade-schema, a script to upgrade the database schema.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-25 07:59:35 -04:00
Lars Wirzenius
b69b670d63 Add koha-dump-defaults, a script to dump a defaults file.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-25 07:59:34 -04:00
Lars Wirzenius
5789aea5bb Add koha-reset-passwd, a script for resetting a user's password.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-25 07:59:32 -04:00
Lars Wirzenius
321300b4f7 Add koha-enable, a script to re-enable a Koha instance.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-05-25 07:59:31 -04:00