From d0a64e25ef1528660f11d78fa2f8d325341acb5f Mon Sep 17 00:00:00 2001
From: Mason James <mtj@kohaaloha.com>
Date: Thu, 15 Oct 2020 01:21:13 +0000
Subject: [PATCH] Bug 26672: Add koha-core and koha-full definitions to
 debian/control files
Content-Type: text/plain; charset="utf-8"

---
 debian/control    | 46 ++++++++++++++++++++++++++++++++++++++++++----
 debian/control.in | 50 +++++++++++++++++++++++++++++++++++++++++++++-----
 2 files changed, 87 insertions(+), 9 deletions(-)

diff --git a/debian/control b/debian/control
index 85d04bb..8e91974 100644
--- a/debian/control
+++ b/debian/control
@@ -114,7 +114,6 @@ Build-Depends: libalgorithm-checkdigits-perl,
  libpdf-table-perl,
  libplack-middleware-logwarn-perl,
  libplack-middleware-reverseproxy-perl,
- libppi-perl,
  libreadonly-perl,
  libreadonly-xs-perl,
  libscalar-list-utils-perl,
@@ -126,6 +125,7 @@ Build-Depends: libalgorithm-checkdigits-perl,
  libstring-random-perl,
  libsys-cpu-perl,
  libtemplate-perl,
+ libtemplate-plugin-gettext-perl,
  libtemplate-plugin-htmltotext-perl,
  libtemplate-plugin-json-escape-perl,
  libtemplate-plugin-stash-perl,
@@ -178,7 +178,6 @@ Depends: ${misc:Depends}, ${koha:Depends},
  daemon,
  debconf,
  idzebra-2.0,
- libnet-stomp-perl,
  memcached,
  mysql-client | virtual-mysql-client,
  perl-doc,
@@ -227,7 +226,6 @@ Depends: ${misc:Depends},
  daemon,
  debconf,
  idzebra-2.0,
- libnet-stomp-perl,
  mysql-client | virtual-mysql-client,
  mysql-server | virtual-mysql-server,
  perl-doc,
@@ -353,7 +351,6 @@ Depends: libalgorithm-checkdigits-perl,
  libpdf-table-perl,
  libplack-middleware-logwarn-perl,
  libplack-middleware-reverseproxy-perl,
- libppi-perl,
  libreadonly-perl,
  libreadonly-xs-perl,
  libscalar-list-utils-perl,
@@ -365,6 +362,7 @@ Depends: libalgorithm-checkdigits-perl,
  libstring-random-perl,
  libsys-cpu-perl,
  libtemplate-perl,
+ libtemplate-plugin-gettext-perl,
  libtemplate-plugin-htmltotext-perl,
  libtemplate-plugin-json-escape-perl,
  libtemplate-plugin-stash-perl,
@@ -411,3 +409,43 @@ Description: Perl dep. for koha
  .
  This meta-package contains perl dependencies packages for koha (all
  perl lib).
+
+Package: koha-core
+Architecture: all
+Description: integrated (physical) library management system
+ Koha is an Integrated Library Management system for real-world libraries
+ (the kinds with books).
+ .
+ This package provides a version of Koha identical to that of koha-full,
+ but without third-party systems such as MariaDB, RabbitMQ, et cetera.
+Depends: ${misc:Depends}, ${koha:Depends},
+ at,
+ cron-daemon,
+ daemon,
+ debconf,
+ mysql-client | virtual-mysql-client,
+ perl-doc,
+ pwgen,
+ starman,
+ sudo,
+ fonts-dejavu | ttf-dejavu,
+ unzip,
+ xmlstarlet,
+ yaz
+
+Package: koha-full
+Depends:
+ koha-core,
+ apache2,
+ apache2-mpm-itk | libapache2-mpm-itk,
+ idzebra-2.0,
+ memcached,
+ mysql-server | virtual-mysql-server,
+ rabbitmq-server,
+Architecture: all
+Description: integrated (physical) library management system
+ Koha is an Integrated Library Management system for real-world libraries
+ (the kinds with books).
+ .
+ This metapackage provides a version of Koha with the complete set of third-party
+ systems such as MariaDB, RabbitMQ, et cetera.
diff --git a/debian/control.in b/debian/control.in
index d262c4f..3ab35ec 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -24,7 +24,7 @@ Depends: ${misc:Depends}, ${koha:Depends},
  debconf,
  idzebra-2.0,
  memcached,
- mysql-client | virtual-mysql-client,
+ mysql-client | default-mysql-client | virtual-mysql-client,
  perl-doc,
  pwgen,
  rabbitmq-server,
@@ -34,7 +34,7 @@ Depends: ${misc:Depends}, ${koha:Depends},
  unzip,
  xmlstarlet,
  yaz
-Suggests: mysql-server | virtual-mysql-server,
+Suggests: mysql-server | default-mysql-server | virtual-mysql-server,
  letsencrypt,
 Homepage: http://koha-community.org/
 Description: integrated (physical) library management system
@@ -49,7 +49,7 @@ Architecture: all
 Depends: ${shlib:Depends}, ${misc:Depends},
  koha-common,
  dbconfig-common,
- mysql-server | virtual-mysql-server
+ mysql-server | default-mysql-server | virtual-mysql-server
 Homepage: http://koha-community.org/
 Description: integrated (physical) library management system
  Koha is an Integrated Library Management system for real-world libraries
@@ -71,8 +71,8 @@ Depends: ${misc:Depends},
  daemon,
  debconf,
  idzebra-2.0,
- mysql-client | virtual-mysql-client,
- mysql-server | virtual-mysql-server,
+ mysql-client | default-mysql-client | virtual-mysql-client,
+ mysql-server | default-mysql-server | virtual-mysql-server,
  perl-doc,
  pwgen,
  rabbitmq-server,
@@ -99,3 +99,43 @@ Description: Perl dep. for koha
  .
  This meta-package contains perl dependencies packages for koha (all
  perl lib).
+
+Package: koha-core
+Architecture: all
+Description: integrated (physical) library management system
+ Koha is an Integrated Library Management system for real-world libraries
+ (the kinds with books).
+ .
+ This package provides a version of Koha identical to that of koha-full,
+ but without third-party systems such as MariaDB, RabbitMQ, et cetera.
+Depends: ${misc:Depends}, ${koha:Depends},
+ at,
+ cron-daemon,
+ daemon,
+ debconf,
+ mysql-client | default-mysql-client | virtual-mysql-client,
+ perl-doc,
+ pwgen,
+ starman,
+ sudo,
+ fonts-dejavu | ttf-dejavu,
+ unzip,
+ xmlstarlet,
+ yaz
+
+Package: koha-full
+Depends:
+ koha-core,
+ apache2,
+ apache2-mpm-itk | libapache2-mpm-itk,
+ idzebra-2.0,
+ memcached,
+ mysql-server | default-mysql-server | virtual-mysql-server,
+ rabbitmq-server,
+Architecture: all
+Description: integrated (physical) library management system
+ Koha is an Integrated Library Management system for real-world libraries
+ (the kinds with books).
+ .
+ This metapackage provides a version of Koha with the complete set of third-party
+ systems such as MariaDB, RabbitMQ, et cetera.
-- 
2.1.4