From 50593926e3c9905ff50f43ade726d55f54cb157d Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Tue, 22 Dec 2015 18:38:39 +0100 Subject: [PATCH] MT#14675 Add debian packaging [gjover@sipwise.com: Finished up the packaging. ] Change-Id: I1062b358b5f999db581f6a91598d0dfa55551248 --- debian/changelog | 5 +++ debian/compat | 1 + debian/control | 54 ++++++++++++++++++++++++++ debian/copyright | 23 +++++++++++ debian/ngcp-billing-tools.install | 3 ++ debian/ngcp-provisioning-tools.install | 8 ++++ debian/ngcp-provisioning-tools.links | 3 ++ debian/rules | 7 ++++ 8 files changed, 104 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/ngcp-billing-tools.install create mode 100644 debian/ngcp-provisioning-tools.install create mode 100644 debian/ngcp-provisioning-tools.links create mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..4d4606d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +ngcp-api-tools (1.0.0.0+0~mr4.3.0.0) unstable; urgency=medium + + * Initial revision + + -- Kirill Solomko Wed, 22 Dec 2015 18:21:34 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..deb7750 --- /dev/null +++ b/debian/control @@ -0,0 +1,54 @@ +Source: ngcp-api-tools +Section: admin +Priority: extra +Maintainer: Sipwise Development Team +Build-Depends: debhelper (>= 9~), +Standards-Version: 3.9.6 +Homepage: https://www.sipwise.com/ + +Package: ngcp-api-tools +Architecture: all +Depends: + ngcp-panel, + perl, + ${misc:Depends}, +Provides: ngcp-api-tools +Conflicts: + ngcp-ossbss, + ngcp-www-admin (<= 2), +Replaces: ngcp-ossbss +Description: NGCP REST API related tools + This package contains files needed by all interface modules on + NGCP management hosts. + +Package: ngcp-billing-tools +Architecture: all +Depends: + perl, + ngcp-templates-ce-ngcp-billing-tools | ngcp-templates-pro-ngcp-billing-tools, + ngcp-panel, + ${misc:Depends}, +Provides: ngcp-api-tools +Conflicts: + ngcp-ossbss, + ngcp-www-admin (<= 2), +Replaces: ngcp-ossbss +Description: NGCP Billing related tools + This package contains files needed by all interface modules on + NGCP management hosts. + +Package: ngcp-provisioning-tools +Architecture: all +Depends: + perl, + ngcp-panel, + ngcp-templates-ce-ngcp-provisioning-tools | ngcp-templates-pro-ngcp-provisioning-tools, + ${misc:Depends}, +Provides: ngcp-api-tools +Conflicts: + ngcp-ossbss, + ngcp-www-admin (<= 2), +Replaces: ngcp-ossbss +Description: NGCP Provisioning related tools + This package contains files needed by all interface modules on + NGCP management hosts. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..298f1a5 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,23 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://www.sipwise.com/ +Upstream-Contact: Sipwise Development Team + +Files: * +Copyright: + Copyright © 2007-2015 Sipwise GmbH, Austria +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . +Comment: + On Debian systems, the full text of the GNU General Public License + version 3 can be found in the file '/usr/share/common-licenses/GPL-3'. diff --git a/debian/ngcp-billing-tools.install b/debian/ngcp-billing-tools.install new file mode 100644 index 0000000..b3a3b0a --- /dev/null +++ b/debian/ngcp-billing-tools.install @@ -0,0 +1,3 @@ +bin/ngcp-credit-warning usr/sbin/ +bin/ngcp-fraud-auto-lock usr/sbin/ +bin/ngcp-fraud-daily-lock usr/sbin/ diff --git a/debian/ngcp-provisioning-tools.install b/debian/ngcp-provisioning-tools.install new file mode 100644 index 0000000..43731d3 --- /dev/null +++ b/debian/ngcp-provisioning-tools.install @@ -0,0 +1,8 @@ +bin/ngcp-api_ping usr/bin/ +bin/ngcp-create_customer usr/bin/ +bin/ngcp-create_domain usr/bin/ +bin/ngcp-create_subscriber usr/bin/ +bin/ngcp-delete_domain usr/bin/ +bin/ngcp-get_customer usr/bin/ +bin/ngcp-terminate_customer usr/bin/ +bin/ngcp-terminate_subscriber usr/bin/ diff --git a/debian/ngcp-provisioning-tools.links b/debian/ngcp-provisioning-tools.links new file mode 100644 index 0000000..23f673c --- /dev/null +++ b/debian/ngcp-provisioning-tools.links @@ -0,0 +1,3 @@ +/usr/bin/ngcp-terminate_customer /usr/bin/ngcp-delete_voip_account +/usr/bin/ngcp-get_customer /usr/bin/ngcp-get_voip_account +/usr/bin/ngcp-terminate_subscriber /usr/bin/ngcp-delete_subscriber diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8b45f98 --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +# export DH_VERBOSE=1 + +%: + dh "$@"