From a6f538e1c6a5c980a88ba9a9f3f502577303af26 Mon Sep 17 00:00:00 2001 From: Mason James Date: Wed, 14 Oct 2020 10:47:47 +1300 Subject: [PATCH] Bug 26741: Make rabbitmq-server a 'recommended' package Content-Type: text/plain; charset="utf-8" to test... 1/ apply patch, build new package 2/ install package with 'apt install koha-common', observe rabbitmq-server package is installed 3/ install package with 'apt install --no-install-recommends koha-common', observe rabbitmq-server package is *not* installed --- debian/control | 5 +++-- debian/control.in | 6 ++++-- debian/koha-common.postinst | 7 +++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/debian/control b/debian/control index 11daf71..92336ae 100644 --- a/debian/control +++ b/debian/control @@ -183,15 +183,15 @@ Depends: ${misc:Depends}, ${koha:Depends}, mysql-client | virtual-mysql-client, perl-doc, pwgen, - rabbitmq-server, starman, sudo, fonts-dejavu | ttf-dejavu, unzip, xmlstarlet, yaz +Recommended: rabbitmq-server Suggests: mysql-server | virtual-mysql-server, - letsencrypt, + letsencrypt Homepage: http://koha-community.org/ Description: integrated (physical) library management system Koha is an Integrated Library Management system for real-world libraries @@ -206,6 +206,7 @@ Depends: ${shlib:Depends}, ${misc:Depends}, koha-common, dbconfig-common, mysql-server | virtual-mysql-server +Recommended: rabbitmq-server Homepage: http://koha-community.org/ Description: integrated (physical) library management system Koha is an Integrated Library Management system for real-world libraries diff --git a/debian/control.in b/debian/control.in index 0984936..cf42089 100644 --- a/debian/control.in +++ b/debian/control.in @@ -35,8 +35,9 @@ Depends: ${misc:Depends}, ${koha:Depends}, unzip, xmlstarlet, yaz -Suggests: mysql-server | virtual-mysql-server, - letsencrypt, +Suggests: mysql-server | virtual-mysql-server, + letsencrypt +Recommended: rabbitmq-server Homepage: http://koha-community.org/ Description: integrated (physical) library management system Koha is an Integrated Library Management system for real-world libraries @@ -51,6 +52,7 @@ Depends: ${shlib:Depends}, ${misc:Depends}, koha-common, dbconfig-common, mysql-server | virtual-mysql-server +Recommended: rabbitmq-server Homepage: http://koha-community.org/ Description: integrated (physical) library management system Koha is an Integrated Library Management system for real-world libraries diff --git a/debian/koha-common.postinst b/debian/koha-common.postinst index f5ee256..5c4a0e8 100644 --- a/debian/koha-common.postinst +++ b/debian/koha-common.postinst @@ -258,8 +258,11 @@ done db_stop -rabbitmq-plugins enable rabbitmq_stomp -service rabbitmq-server restart +# config rmq, if rmq is installed +if dpkg-query -W -f='${db:Status-Abbrev}' rabbitmq-server | grep -q ^.i ; then + rabbitmq-plugins enable rabbitmq_stomp + service rabbitmq-server restart +fi # Bug 18250: Correct startup order of koha-common and memcached # Since the init script has been updated, we can force the order in rc.d -- 2.1.4