diff mbox

[MERGED] osmo-pcap[master]: debian: Add -dbg packages for the osmo-pcap-client and osmo-...

Message ID 20170323073027.A23FB2E965@lists.osmocom.org
State New
Headers show

Commit Message

gerrit-no-reply@lists.osmocom.org March 23, 2017, 7:30 a.m. UTC
Holger Freyther has submitted this change and it was merged.

Change subject: debian: Add -dbg packages for the osmo-pcap-client and osmo-pcap-server
......................................................................


debian: Add -dbg packages for the osmo-pcap-client and osmo-pcap-server

Currently looking at a weird issue. Make it possible to install the
-dbg packages.

Change-Id: I7d6c8e491be459151c1531b86f28bb1dc2ee8bb4
---
M debian/changelog
M debian/control
M debian/rules
3 files changed, 15 insertions(+), 0 deletions(-)

Approvals:
  Max: Looks good to me, but someone else must approve
  Jenkins Builder: Verified
  Holger Freyther: Looks good to me, approved
diff mbox

Patch

diff --git a/debian/changelog b/debian/changelog
index 6e4df55..13bce30 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@ 
 osmo-pcap (0.0.11) UNRELEASED; urgency=medium
 
   * Add "source ip A.B.C.D" option to use specific address.
+  * Add osmo-pcap-client-dbg/osmo-pcap-server-dbg package
 
  -- Holger Hans Peter Freyther <holger@moiji-mobile.com>  Tue, 17 Jan 2017 09:12:52 +0100
 
diff --git a/debian/control b/debian/control
index 3364e34..2677bc0 100644
--- a/debian/control
+++ b/debian/control
@@ -17,3 +17,13 @@ 
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Collect traces from other systems.
+
+Package: osmo-pcap-client-dbg
+Architecture: any
+Depends: osmo-pcap-client (= ${binary:Version})
+Description: Debug symbols of osmo-pcap-client-dbg
+
+Package: osmo-pcap-server-dbg
+Architecture: any
+Depends: osmo-pcap-server (= ${binary:Version})
+Description: Debug symbols of osmo-pcap-server-dbg
diff --git a/debian/rules b/debian/rules
index 78ddc43..872097c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -39,3 +39,7 @@ 
 
 	install -d -m 0755 $(CURDIR)/debian/osmo-pcap-server/etc/cron.daily/
 	install -m 0755 $(CURDIR)/contrib/osmo_pcap_clean_old $(CURDIR)/debian/osmo-pcap-server/etc/cron.daily/
+
+override_dh_strip:
+	dh_strip -posmo-pcap-client --dbg-package=osmo-pcap-client-dbg
+	dh_strip -posmo-pcap-server --dbg-package=osmo-pcap-server-dbg