From dd5ad66b8c061986f1d05c16e3ef5ba55f91680e Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 30 Aug 2011 13:57:53 +0000 Subject: [PATCH] Make metapackages a single-source multi-binary package While at it do some lintian cleanups (like providing debian/source/format and line-wrapping long description) and raise copyright year information from 2010 to 2011. From: Michael Prokop --- debian/changelog | 9 +++++ debian/compat | 1 + debian/control | 94 ++++++++++++++++++++++++++++++++++++++++++++ debian/copyright | 23 +++++++++++ debian/rules | 68 ++++++++++++++++++++++++++++++++ debian/source/format | 1 + 6 files changed, 196 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..6125f72 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,9 @@ +ngcp-metapackages (2.4.0~beta1) UNRELEASED; urgency=low + + * Initial release of single-source multi-binary package. + This source package now provides all the platform packages + for ngcp-config, ngcp-ngcp, ngcp-nth, ngcp-services and + ngcp-templates. + + -- Michael Prokop Tue, 30 Aug 2011 15:45:48 +0200 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..d1954cd --- /dev/null +++ b/debian/control @@ -0,0 +1,94 @@ +Source: ngcp-metapackages +Section: utils +Priority: extra +Maintainer: Jon Bonilla +Build-Depends: debhelper (>= 5) +Standards-Version: 3.9.2 +Homepage: http://sipwise.com/ + +Package: ngcp-config-pro +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, ngcp-templates-pro, ngcp-ngcpcfg, ngcp-ngcpcfg-ha, ngcp-templates-pro-config +Conflicts: ngcp-config-ce +Description: Metapackage for NGCP platform configuration system + This metapackage installs the ngcp configuration system for the + NGCP sip:provider PRO platform. + +Package: ngcp-config-ce +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, ngcp-templates-ce, ngcp-ngcpcfg, ngcp-templates-ce-config +Conflicts: ngcp-config-pro +Description: Metapackage for NGCP platform configuration system + This metapackage installs the ngcp configuration system for the + NGCP sip:provider CE platform. + +Package: ngcp-ngcp-pro +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, ngcp-config-pro, ngcp-services-pro, ngcp-nth-pro, ngcp-keyring +Conflicts: ngcp-ngcp-ce +Description: Metapackage for Sipwise's NGCP platform + This metapackage installs all the packages needed in a NGCP + sip:provider PRO platform environment. + +Package: ngcp-ngcp-ce +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, ngcp-config-ce, ngcp-services-ce, ngcp-nth-ce, ngcp-keyring +Conflicts: ngcp-ngcp-pro +Description: Metapackage for Sipwise's NGCP platform + This metapackage installs all the packages needed in a NGCP + sip:provider CE platform environment. + +Package: ngcp-nth-pro +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, ifenslave, vlan, ngrep-sip, screen, strace, vim, tcpdump, perl-doc, iftop, ifrename, rsync, libtemplate-perl, host, mytop, less, irqbalance, lsof, telnet +Description: Metapackage for Nice To Have tools in NGCP platforms + This metapackage installs several nice to have tools in a NGCP + sip:provider PRO platform. + +Package: ngcp-nth-ce +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, ifenslave, vlan, ngrep-sip, screen, strace, vim, tcpdump, perl-doc, iftop, ifrename, rsync, libtemplate-perl, host, mytop, less, irqbalance, lsof, telnet +Description: Metapackage for Nice To Have tools in NGCP platforms + This metapackage installs several nice to have tools in a NGCP + sip:provider CE platform. + +Package: ngcp-services-pro +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, kamailio, kamailio-mysql-modules, kamailio-xml-modules, percona-server-client-5.1, percona-server-server-5.1, ntp, rsyslog-mysql, ngcp-mediaproxy-ng, ngcp-asterisk, ngcp-cdr-exporter, ngcp-check-tools, ngcp-system-tools-pro, ngcp-mediator, ngcp-ossbss-apache, ngcp-ossbss-billing, ngcp-ossbss-common, ngcp-ossbss-voip, ngcp-ossbss-system, ngcp-ossbss-xmldispatcher, ngcp-reminder, ngcp-sems-ha, ngcp-www-admin, ngcp-www-csc, ngcp-rate-o-mat, glusterfs-server, glusterfs-client, mpt-status, ngcp-vmnotify, ngcp-monitoring-tools, ngcp-rsyslog-tools, ngcp-cleanup-tools, exim4, bzip2, ssh, python, snmpd, redis-server, monit, heartbeat-2 +Conflicts: ngcp-services-ce +Description: Metapackage for NGCP platform services + This metapackage installs the required services in a NGCP + sip:provider PRO platform. + +Package: ngcp-services-pro-ha-v3 +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, kamailio, kamailio-mysql-modules, kamailio-xml-modules, percona-server-client-5.1, percona-server-server-5.1, ntp, rsyslog-mysql, ngcp-mediaproxy-ng, ngcp-asterisk, ngcp-cdr-exporter, ngcp-check-tools, ngcp-system-tools-pro, ngcp-mediator, ngcp-ossbss-apache, ngcp-ossbss-billing, ngcp-ossbss-common, ngcp-ossbss-voip, ngcp-ossbss-system, ngcp-ossbss-xmldispatcher, ngcp-reminder, ngcp-sems-ha, ngcp-www-admin, ngcp-www-csc, ngcp-rate-o-mat, glusterfs-server, glusterfs-client, mpt-status, ngcp-vmnotify, ngcp-monitoring-tools, ngcp-rsyslog-tools, ngcp-cleanup-tools, exim4, pacemaker, corosync, bzip2, ssh, python, snmpd, redis-server +Conflicts: ngcp-services-ce +Description: Metapackage for NGCP platform services + This metapackage installs the required services in a NGCP + sip:provider PRO platform, using Linux HA v3. + +Package: ngcp-services-ce +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, kamailio, kamailio-mysql-modules, kamailio-xml-modules, percona-server-client-5.1, percona-server-server-5.1, ntp, rsyslog-mysql, ngcp-mediaproxy-ng, ngcp-asterisk, ngcp-cdr-exporter, ngcp-mediator, ngcp-ossbss-apache, ngcp-ossbss-billing, ngcp-ossbss-common, ngcp-ossbss-voip, ngcp-ossbss-system, ngcp-ossbss-xmldispatcher, ngcp-reminder, ngcp-sems, ngcp-www-admin, ngcp-www-csc, ngcp-rate-o-mat, ngcp-vmnotify, ngcp-check-tools, ngcp-system-tools-ce, ngcp-rsyslog-tools, ngcp-cleanup-tools, mailx, ssh, bzip2, python +Conflicts: ngcp-services-pro +Description: Metapackage for NGCP platform services + This metapackage installs the required services in a NGCP + sip:provider CE platform. + +Package: ngcp-templates-pro +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, ngcp-templates-pro-asterisk, ngcp-templates-pro-glusterfs, ngcp-templates-pro-kamailio, ngcp-templates-pro-mediator, ngcp-templates-pro-monitoring-tools, ngcp-templates-pro-check-tools, ngcp-templates-pro-mysql, ngcp-templates-pro-odbc, ngcp-templates-pro-ossbss, ngcp-templates-pro-sems, ngcp-templates-pro-system, ngcp-templates-pro-reminder, ngcp-templates-pro-cdr-exporter, ngcp-templates-pro-vmnotify, ngcp-templates-pro-www-admin, ngcp-templates-pro-www-csc, ngcp-templates-pro-rate-o-mat, ngcp-templates-pro-cleanup-tools, ngcp-templates-pro-lsb, ngcp-templates-pro-mediaproxy-ng, ngcp-templates-pro-redis, ngcp-templates-pro-monit, ngcp-templates-pro-heartbeat2 +Conflicts: ngcp-templates-ce +Description: Metapackage for NGCP platform config templates + This metapackage installs the required configuration templates + for the NGCP sip:provider PRO platform's configuration + framework. + +Package: ngcp-templates-ce +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, ngcp-templates-ce-asterisk, ngcp-templates-ce-kamailio, ngcp-templates-ce-mediator, ngcp-templates-ce-check-tools, ngcp-templates-ce-mysql, ngcp-templates-ce-odbc, ngcp-templates-ce-ossbss, ngcp-templates-ce-sems, ngcp-templates-ce-system, ngcp-templates-ce-reminder, ngcp-templates-ce-cdr-exporter, ngcp-templates-ce-vmnotify, ngcp-templates-ce-www-admin, ngcp-templates-ce-www-csc, ngcp-templates-ce-rate-o-mat, ngcp-templates-ce-cleanup-tools, ngcp-templates-ce-lsb, ngcp-templates-ce-mediaproxy-ng +Conflicts: ngcp-templates-pro +Description: Metapackage for NGCP platform config templates + This metapackage installs the required configuration templates + for the NGCP sip:provider CE platform's configuration framework. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..5b78764 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,23 @@ +Upstream Author: The Sipwise Team - http://sipwise.com +Copyright: 2007-2011, 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 package; if not, write to the Free + Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301 USA + . + 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/rules b/debian/rules new file mode 100755 index 0000000..b05bce1 --- /dev/null +++ b/debian/rules @@ -0,0 +1,68 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +b=$(CURDIR)/debian/build + +build: build-stamp + +build-stamp: + dh_testdir + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -rf $(b) build-stamp + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + +%: + @echo "--- Building: $@" + dh_installdirs -p$@ -P$(b)/$@ + dh_link -p$@ -P$(b)/$@ + dh_installdocs -p$@ -P$(b)/$@ + dh_installchangelogs -p$@ -P$(b)/$@ + dh_install -p$@ -P$(b)/$@ + dh_strip -p$@ -P$(b)/$@ + dh_compress -p$@ -P$(b)/$@ + test -f debian/overrides.$(@) && \ + ( mkdir -p $(b)/$(@)/usr/share/lintian/overrides/ && \ + cp -av debian/overrides.$(@) $(b)/$(@)/usr/share/lintian/overrides/$(@) ) || echo "No overrides found for $@" + dh_fixperms -p$@ -P$(b)/$@ + dh_makeshlibs -p$@ -P$(b)/$@ -V + dh_installdeb -p$@ -P$(b)/$@ + dh_shlibdeps -p$@ -P$(b)/$@ + dh_installdebconf -p$@ -P$(b)/$@ + dh_gencontrol -p$@ -P$(b)/$@ + dh_md5sums -p$@ -P$(b)/$@ + dh_builddeb -p$@ -P$(b)/$@ + +binary-all: build install + +binary-indep: build install \ + ngcp-config-ce \ + ngcp-config-pro \ + ngcp-ngcp-ce \ + ngcp-ngcp-pro \ + ngcp-nth-ce \ + ngcp-nth-pro \ + ngcp-services-ce \ + ngcp-services-pro \ + ngcp-services-pro-ha-v3 \ + ngcp-templates-ce \ + ngcp-templates-pro + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +1.0