From c7e391177881d3f5888cdd102096c8f3f48efd2a Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Mon, 23 Jun 2014 20:42:11 +0200 Subject: [PATCH] MT#6485 add no_ngcp script to remove NGCP dependences Help external users to produce Debian packages without any NGCP dependence. --- README.md | 4 +++- debian/flavors/no_ngcp | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 debian/flavors/no_ngcp diff --git a/README.md b/README.md index 2dd626486..a0c899017 100644 --- a/README.md +++ b/README.md @@ -57,10 +57,12 @@ On a Debian System ------------------ On a Debian system, everything can be built and packaged into Debian packages -by executing `dpkg-buildpackage` (which can be found in the `dpkg-dev` package) in the main directory. +by executing `dpkg-buildpackage` (which can be found in the `dpkg-dev` package) in the main directory. This script will issue an error and stop if any of the dependency packages are not installed. +Before that, run `./debian/flavors/no_ngcp` in order to remove any NGCP dependence. + This will produce a number of `.deb` files, which can then be installed using the `dpkg -i` command. diff --git a/debian/flavors/no_ngcp b/debian/flavors/no_ngcp new file mode 100755 index 000000000..2ddf32a22 --- /dev/null +++ b/debian/flavors/no_ngcp @@ -0,0 +1,6 @@ +#!/bin/bash + +# remove ngcp-system-tools Pre-Depends +sed -i -e '/^Pre-Depends: ngcp-system-tools\s*$/d' debian/control + +exit 0