From aeca696b318d913f4f11b56e7455ad261a258466 Mon Sep 17 00:00:00 2001
From: Alexander Lutay <alutay@sipwise.com>
Date: Thu, 9 Nov 2017 12:04:52 +0100
Subject: [PATCH] TT#24405 Install ngcp-installer and ngcp-upgrade on
 CE/PRO/Carrier by default

We are going to add new scripts into ngcp-upgrade-* packages to allow
the support team prepare upgrade better, like check list of supported release
and perform the pre-upgrade checks. It means the package must be installed out of the box.

Also good to ensure proper ngcp-installer-* is also installed as it is necessary for iPXE.
The package ngcp-installer was installed only because user/deployment.sh did it manually.

Maybe ngcp-nth-* is better place for such packages, but
we have to add them into ngcp-service-* as ngcp-nth-carrier doesn't
exist and list of added packages is different for PRO/Carrier.

+ wrap-and-sort -sat

Change-Id: I541a6f81e730327ef39913a00088eb052b5031ea
---
 debian/control | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/debian/control b/debian/control
index e8d67ca..7c28949 100644
--- a/debian/control
+++ b/debian/control
@@ -85,8 +85,8 @@ Depends:
  ngcp-cloudpbx-firmwares-panasonic-pro,
  ngcp-cloudpbx-firmwares-polycom-pro,
  ngcp-cloudpbx-firmwares-yealink-pro,
- ngcp-sems-pbx,
  ngcp-sems-modules,
+ ngcp-sems-pbx,
  ngcp-templates-pro | ngcp-templates,
  ${misc:Depends},
 Provides:
@@ -159,12 +159,12 @@ Package: ngcp-nth-pro
 Architecture: all
 Depends:
  apt-transport-https,
+ bind9-host | host,
  bootlogd,
  debian-goodies,
  dstat,
  etckeeper,
  gdb,
- bind9-host | host,
  ifenslave,
  ifrename,
  iftop,
@@ -204,12 +204,12 @@ Package: ngcp-nth-ce
 Architecture: all
 Depends:
  apt-transport-https,
+ bind9-host | host,
  bootlogd,
  debian-goodies,
  dstat,
  etckeeper,
  gdb,
- bind9-host | host,
  ifenslave,
  ifrename,
  iftop,
@@ -279,6 +279,7 @@ Depends:
  ngcp-comx-fileshare-service,
  ngcp-fauditd-pro,
  ngcp-faxserver-pro,
+ ngcp-installer-pro,
  ngcp-kamailio,
  ngcp-kamailio-extra-modules,
  ngcp-kamailio-lcrrate-modules,
@@ -306,6 +307,7 @@ Depends:
  ngcp-snmp-agent,
  ngcp-status,
  ngcp-system-tools-pro,
+ ngcp-upgrade-pro,
  ngcp-vmnotify,
  ngcp-voisniff-ng,
  nginx-light,
@@ -345,6 +347,7 @@ Depends:
  ngcp-cdr-exporter,
  ngcp-check-tools,
  ngcp-cleanup-tools-ce,
+ ngcp-installer-ce,
  ngcp-kamailio,
  ngcp-kamailio-extra-modules,
  ngcp-kamailio-lcrrate-modules,
@@ -368,6 +371,7 @@ Depends:
  ngcp-sems,
  ngcp-status,
  ngcp-system-tools-ce,
+ ngcp-upgrade-ce,
  ngcp-vmnotify,
  nginx-light,
  ntp,
@@ -409,8 +413,8 @@ Depends:
  mariadb-client,
  mariadb-server,
  monit,
- mytop | mariadb-client-10.1,
  mysql-cluster,
+ mytop | mariadb-client-10.1,
  net-tools,
  ngcp-api-tools,
  ngcp-asterisk-voicemail-odbcstorage,
@@ -424,6 +428,7 @@ Depends:
  ngcp-comx-fileshare-service,
  ngcp-fauditd-pro,
  ngcp-faxserver-pro,
+ ngcp-installer-carrier,
  ngcp-kamailio,
  ngcp-kamailio-extra-modules,
  ngcp-kamailio-lcrrate-modules,
@@ -451,6 +456,7 @@ Depends:
  ngcp-snmp-agent,
  ngcp-status,
  ngcp-system-tools-pro,
+ ngcp-upgrade-pro,
  ngcp-vmnotify,
  ngcp-voisniff-ng,
  nginx-light,