Koha/debian
Magnus Enger b3b6278e20 Bug 6517 - [REVISED] koha-create wants "use database" in DEFAULTSQL
The revised patch quotes the variable $mysqldb, as suggested by Frère
Sébastien Marie.

This patch makes sure that pointing DEFAULTSQL in /etc/koha/koha-sites.conf
to any (gzip'ed) file produced by mysqldump works, by adding the name of the
database to the end of the call to mysql, when the specified SQL file is
loaded. Files produced with koha-dump-defaults should still work too.

To test:
- Apply the patch
- Create a new package with build-git-snapshot
- Install the package
- Create an SQL file from an existing installation with mysqldump
- gzip the SQL file
- point DEFAULTSQL to the file in /etc/koha/koha-sites.conf
- create a new site with koha-create --create-db

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-09-12 10:10:46 +12:00
..
scripts Bug 6517 - [REVISED] koha-create wants "use database" in DEFAULTSQL 2011-09-12 10:10:46 +12:00
source Switch to native source format. 2010-05-25 07:57:37 -04:00
templates Bug 6540 - Make ZEBRA_MARC_FORMAT and ZEBRA_LANGUAGE configurable for koha-create 2011-07-28 14:17:10 +12:00
bd-to-depends Add missing build-dependencies (python, python-debian). 2010-06-02 07:14:37 -04:00
build-git-snapshot Bug 6722: [SIGNED-OFF] Cause build output to appear on the screen 2011-09-04 20:14:08 +12:00
changelog Bug 6361 - make the packages work with koha 3.4 2011-06-03 11:06:31 +12:00
compat
control Bug 6626 - add sudo as a package dependency 2011-08-14 19:47:19 +12:00
control.in Bug 6626 - add sudo as a package dependency 2011-08-14 19:47:19 +12:00
copyright Update FSF address in debian/copyright. 2010-06-02 07:14:43 -04:00
koha-common.config Bug 6361 - make the packages work with koha 3.4 2011-06-03 11:06:31 +12:00
koha-common.cron.d Bug 5139 - packages now do email and other cron jobs 2010-10-06 08:12:14 -04:00
koha-common.cron.daily Bug 6275 - allow automated backups for packages 2011-08-11 12:45:53 +12:00
koha-common.cron.hourly Add koha-foreach, a script to run a command for each Koha instance. 2010-05-25 07:59:45 -04:00
koha-common.dirs Split off koha-common. 2010-05-25 07:58:56 -04:00
koha-common.init Bug 4873 - Ensure that the required directories exist on init 2011-07-28 14:05:58 +12:00
koha-common.install Bug 6486 - make koha-mysql get installed with the packages 2011-08-18 21:20:57 +12:00
koha-common.logrotate Split off koha-common. 2010-05-25 07:58:56 -04:00
koha-common.postinst Bug 6361 - make the packages work with koha 3.4 2011-06-03 11:06:31 +12:00
koha-common.README.Debian Bug 5139 - packages now do email and other cron jobs 2010-10-06 08:12:14 -04:00
koha-common.templates Bug 6361 - make the packages work with koha 3.4 2011-06-03 11:06:31 +12:00
koha-post-install-setup Add koha-post-install-setup, a script to be run by sysadmin post-install. 2010-05-25 07:59:19 -04:00
koha.apache-ports
koha.config
koha.dirs
koha.install Split off koha-common. 2010-05-25 07:58:56 -04:00
koha.postinst Bug 4817: Point to README.Debian in koha package description, postinst output. 2010-05-27 05:19:03 -04:00
koha.postrm When purging, remove /var/log/koha. 2010-04-22 06:15:31 -04:00
koha.prerm
koha.README.Debian Bug 5550 - correct filename referenced in docs 2011-01-01 07:43:30 +13:00
list-deps applied paranoia 2010-06-09 08:33:19 -04:00
README.build Bug 5602: Changes to account for the version update. 2011-08-04 10:26:39 +12:00
rules Bug 6361 - make the packages work with koha 3.4 2011-06-03 11:06:31 +12:00
unavailable.html Add koha-disable, a script to disable a Koha instance. 2010-05-25 07:59:29 -04:00
update-control Add tools to update debian/control's build dependencies. 2010-06-02 07:14:36 -04:00

In order to build .deb packages, following debian packages need to be present
(installed): 
devscripts
pbuilder
dh-make
fakeroot

As root (or sudo) execute:
pbuilder create

Executing build-git-snapshot without any arguments will leave package and the
rest in some pbuilder dir, eg. /var/cache/pbuilder/result It is highly
recommended that --buildresult option is used.