ndn-cxx: Add ndn-cxx-dbg package with debug symbols of ndn-cxx

Change-Id: Ia506b9a972ce368e80271fe649956c46958b79a6
Refs: #11
diff --git a/ndn-cxx/Makefile b/ndn-cxx/Makefile
index 7e2cdb1..7d07154 100644
--- a/ndn-cxx/Makefile
+++ b/ndn-cxx/Makefile
@@ -11,6 +11,6 @@
 VERSION=0.4.0
 
 # PPA version
-PPA_VERSION=1
+PPA_VERSION=2
 
 include ../packaging.mk
diff --git a/ndn-cxx/debian/changelog b/ndn-cxx/debian/changelog
index 2ea18bd..4a2b599 100644
--- a/ndn-cxx/debian/changelog
+++ b/ndn-cxx/debian/changelog
@@ -1,3 +1,10 @@
+ndn-cxx (0.4.0-ppa2~DISTRO) DISTRO; urgency=low
+
+  * New version based on ndn-cxx-0.4.0 (https://github.com/named-
+    data/ndn-cxx.git)
+
+ -- Alexander Afanasyev <alexander.afanasyev@ucla.edu>  Sat, 27 Feb 2016 00:57:44 +0000
+
 ndn-cxx (0.4.0-ppa1~DISTRO) DISTRO; urgency=low
 
   * New version based on ndn-cxx-0.4.0 (https://github.com/named-
diff --git a/ndn-cxx/debian/control b/ndn-cxx/debian/control
index ac8f52b..39c4e10 100644
--- a/ndn-cxx/debian/control
+++ b/ndn-cxx/debian/control
@@ -33,3 +33,12 @@
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: NDN C++ library with eXperimental eXtensions and security tools
 Conflicts: ndn.cxx-security-tools
+
+Package: ndn-cxx-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends:
+ ndn-cxx (= ${binary:Version}),
+ ${misc:Depends}
+Description: debugging symbols for ndn-cxx
diff --git a/ndn-cxx/debian/control.precise b/ndn-cxx/debian/control.precise
index fbcdfb8..90ad398 100644
--- a/ndn-cxx/debian/control.precise
+++ b/ndn-cxx/debian/control.precise
@@ -33,3 +33,12 @@
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: NDN C++ library with eXperimental eXtensions and security tools
 Conflicts: ndn.cxx-security-tools
+
+Package: ndn-cxx-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends:
+ ndn-cxx (= ${binary:Version}),
+ ${misc:Depends}
+Description: debugging symbols for ndn-cxx
diff --git a/ndn-cxx/debian/rules b/ndn-cxx/debian/rules
index 002775d..d879ec1 100755
--- a/ndn-cxx/debian/rules
+++ b/ndn-cxx/debian/rules
@@ -36,3 +36,7 @@
 	rm -f docs/*.pyc
 
 override_dh_auto_test:
+
+.PHONY: override_dh_strip
+override_dh_strip:
+	dh_strip --dbg-package=ndn-cxx-dbg
diff --git a/ndn-cxx/debian/rules.precise b/ndn-cxx/debian/rules.precise
index 9bec68e..22f5679 100755
--- a/ndn-cxx/debian/rules.precise
+++ b/ndn-cxx/debian/rules.precise
@@ -36,3 +36,7 @@
 	rm -f docs/*.pyc
 
 override_dh_auto_test:
+
+.PHONY: override_dh_strip
+override_dh_strip:
+	dh_strip --dbg-package=ndn-cxx-dbg