From: Jan-Pascal van Best Date: Tue, 2 Apr 2013 09:11:32 +0000 (+0200) Subject: Provide debug symbols in -dbg packages X-Git-Tag: debian/620-11 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=3cea54a1ee3606f37181afd1da630fbeb935c4b2;p=sasc-ng.git Provide debug symbols in -dbg packages --- diff --git a/debian/changelog b/debian/changelog index be295b6..88b5b8b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,12 @@ +sasc-ng (620-11) local; urgency=low + + * Provide debug symbols in -dbg packages + + -- Jan-Pascal van Best Tue, 02 Apr 2013 11:10:55 +0200 + sasc-ng (620-10) local; urgency=low - * Hardening + * Hardening (not yet complete) -- Jan-Pascal van Best Fri, 29 Mar 2013 09:06:19 +0100 diff --git a/debian/control.flavor b/debian/control.flavor index c5437f2..01b43bd 100644 --- a/debian/control.flavor +++ b/debian/control.flavor @@ -13,3 +13,19 @@ Description: softcam to help decode DVB streams This package contains the sasc-ng daemon and the dvbloopback kernel module for kernel #KERNEL#, optimised for #FLAVOR# cpus. +Package: sasc-ng-#KERNEL#-#FLAVOR#-dbg +Architecture: any +Section: debug +Priority: extra +Depends: + sasc-ng-#KERNEL#-#FLAVOR# (= ${binary:Version}), + ${misc:Depends} +Conflicts: sasc-ng-daemon-dbg +Replaces: sasc-ng-daemon-dbg +Provides: sasc-ng-daemon-dbg +Description: debugging symbols for sasc-ng + sasc-ng is a versatile SoftCAM which creates virtual DVB devices + and outputs through them. + . + This package contains the debugging symbols for sasc-ng-#KERNEL#-#FLAVOR#. + diff --git a/debian/rules b/debian/rules index 583a46f..954e407 100755 --- a/debian/rules +++ b/debian/rules @@ -93,6 +93,15 @@ override_dh_auto_build: override_dh_auto_install: build_kernel build_sasc +dh_strip_%: + VERSION="$*"; \ + FLAVOR=$${VERSION#*_}; \ + KERNEL=$${VERSION/_$$FLAVOR/}; \ + dh_strip -p sasc-ng-$$KERNEL-$$FLAVOR --dbg-package=sasc-ng-$$KERNEL-$$FLAVOR-dbg + +.PHONY: override_dh_strip +override_dh_strip: $(foreach kernel,$(KERNELS),$(foreach flav,$(FFDECSA_FLAVORS),dh_strip_$(kernel)_$(flav))) + CONTROL_FILES = debian/control.source debian/control.flavor debian/rules debian/rules.defs debian/sasc-ng.install.in comma = ,