From 603038dfe4045b7c953159862b765ef1199b5644 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 26 Oct 2016 17:42:42 +0200 Subject: [PATCH] TT#4815 Initial working Debian packaging * Rename package from ngcp-panel-extjs-csc into ngcp-panel-csc (to avoid implementation specific package names + have Debian package name match git repository name) * Build-Depend on sencha-cmd (proprietary build tool from Sencha for Ext JS which needs to be shipped via our own repositories) * Add according build + install steps * Bump Standards-Version to 3.9.8 * Drop unneeded depends on ${perl:Depends} Change-Id: I3555ccd229f99813e2c11c1b498e75bf6ec0ebde --- debian/control | 6 +++--- debian/rules | 9 +++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/debian/control b/debian/control index 0ded175a..3eb8e92d 100644 --- a/debian/control +++ b/debian/control @@ -4,14 +4,14 @@ Priority: extra Maintainer: Sipwise Development Team Build-Depends: debhelper (>= 9~), -Standards-Version: 3.9.7 + sencha-cmd (>= 6.2.0.103-1~), +Standards-Version: 3.9.8 Homepage: https://www.sipwise.com/ -Package: ngcp-panel-extjs-csc +Package: ngcp-panel-csc Architecture: all Depends: ${misc:Depends}, - ${perl:Depends}, Description: ExtJS based frontend for endusers to configure their accounts on the Sipwise NGCP The CSC framework is used by endusers to configure their accounts on the Sipwise NGCP. diff --git a/debian/rules b/debian/rules index 8b45f989..e42694bb 100755 --- a/debian/rules +++ b/debian/rules @@ -5,3 +5,12 @@ %: dh "$@" + +override_dh_auto_build: + dh_auto_build + /opt/Sencha/Cmd/sencha app build -c + +override_dh_auto_install: + dh_auto_install + mkdir -p debian/ngcp-panel-csc/usr/share/ngcp-csc/csc/ + cp -a build/production/* debian/ngcp-panel-csc/usr/share/ngcp-csc/csc/