Koha/debian
Jared Camins-Esakov 297d22459f Bug 6913: More options for koha-create and koha-remove
This commit makes koha-create more flexible by adding a number of command-line
and configuration options.

The biggest change is to add support for pre-determined MySQL credentials using
a file in /etc/koha/passwd (for security reasons, if you use this feature, make
sure the file is not world-readable). The configuration file has the following
format:
instance:user:password:database
The database is optional, but the other two are both required if you want to
specify MySQL credentials. If no credentials are specified for a given instance,
the standard koha_instance username and an auto-generated password are used.

The following additional command line options are now available:
* --use-db - use a pre-existing database, see also --database
* --database - specify the name of the mysql database (still defaults to
  koha_instance)
* --passwdfile - specify a custom (Koha) passwd file for MySQL credentials

The following additional variables are now available (for use in
koha-sites.conf or a custom config file):
* OPACPORT (previously added but not documented) - port on which the OPAC
  should be served
* OPACPREFIX - prefix for the OPAC's virtual host
* OPACSUFFIX - suffix for the OPAC's virtual host

This commit also adds the --keep-mysql option to koha-remove, which, if
specified, will prevent koha-remove from deleting the database or MySQL user
when removing an instance.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2012-02-02 09:15:20 +01:00
..
docs Bug 6913: More options for koha-create and koha-remove 2012-02-02 09:15:20 +01:00
scripts Bug 6913: More options for koha-create and koha-remove 2012-02-02 09:15:20 +01:00
source
templates Bug 7028 - updated the koha-conf.xml template 2011-12-08 17:49:53 +01:00
bd-to-depends Add missing build-dependencies (python, python-debian). 2010-06-02 07:14:37 -04:00
build-git-snapshot Bug 7091 - [MASTER] - update the build version for packages from master 2011-11-24 11:47:04 +01:00
changelog Bug 7091 - [MASTER/3.6.x/3.4.x] - update the changelogs for the 3.4 series 2011-11-24 11:47:45 +01:00
compat
control Bug 6836: Adding dependency on Modern::Perl 2012-01-27 11:33:16 +01:00
control.in Bug 4877 [ENH] [SIGNED-OFF] install generated man pages with build process 2011-09-16 13:51:26 +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
koha-common.dirs
koha-common.docs Bug 7197 - add a Spanish readme file to the packages 2011-12-14 15:38:04 +01: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 4877 [ENH] [SIGNED-OFF] install generated man pages with build process 2011-09-16 13:51:26 +12:00
koha-common.logrotate
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
koha.apache-ports
koha.config
koha.dirs
koha.install
koha.postinst
koha.postrm
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 4877 [ENH] [SIGNED-OFF] install generated man pages with build process 2011-09-16 13:51:26 +12:00
unavailable.html
update-control

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.