nfd: Add nfd-dbg package with debug symbols of nfd and other binaries

Change-Id: Ic7b37f6527e4ff34418f31f09cc33b42086f3499
Refs: #11
diff --git a/nfd/debian/changelog b/nfd/debian/changelog
index ba6ab36..6f1557f 100644
--- a/nfd/debian/changelog
+++ b/nfd/debian/changelog
@@ -1,3 +1,10 @@
+nfd (0.4.0-ppa3~DISTRO) DISTRO; urgency=low
+
+  * New version based on NFD-0.4.0 (https://github.com/named-
+    data/NFD.git)
+
+ -- Alexander Afanasyev <alexander.afanasyev@ucla.edu>  Fri, 26 Feb 2016 21:31:07 +0000
+
 nfd (0.4.0-ppa2~DISTRO) DISTRO; urgency=low
 
   * New version based on NFD-0.4.0 (https://github.com/named-
diff --git a/nfd/debian/control b/nfd/debian/control
index 756084b..00d863b 100644
--- a/nfd/debian/control
+++ b/nfd/debian/control
@@ -46,3 +46,12 @@
 Architecture: any
 Depends: ${misc:Depends}, nfd, nfd-status-http-server, nfd-autoreg, ndn-autoconfig-server, ndn-autoconfig-client
 Description: NFD and all related daemons
+
+Package: nfd-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends:
+ nfd (= ${binary:Version}),
+ ${misc:Depends}
+Description: debugging symbols for nfd
diff --git a/nfd/debian/control.precise b/nfd/debian/control.precise
index f3ac452..be45fec 100644
--- a/nfd/debian/control.precise
+++ b/nfd/debian/control.precise
@@ -45,3 +45,12 @@
 Architecture: any
 Depends: ${misc:Depends}, nfd, nfd-status-http-server, nfd-autoreg, ndn-autoconfig-server, ndn-autoconfig-client
 Description: NFD and all related daemons
+
+Package: nfd-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends:
+ nfd (= ${binary:Version}),
+ ${misc:Depends}
+Description: debugging symbols for nfd
diff --git a/nfd/debian/rules b/nfd/debian/rules
index 42884d3..ece0500 100755
--- a/nfd/debian/rules
+++ b/nfd/debian/rules
@@ -50,3 +50,7 @@
 	dh_systemd_start -pndn-autoconfig-server --no-start
 	dh_systemd_start -pndn-autoconfig-client --no-start
 	dh_systemd_start -pnfd-autoreg --no-start
+
+.PHONY: override_dh_strip
+override_dh_strip:
+	dh_strip --dbg-package=nfd-dbg
diff --git a/nfd/debian/rules.precise b/nfd/debian/rules.precise
index 437c89b..7c5503a 100755
--- a/nfd/debian/rules.precise
+++ b/nfd/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=nfd-dbg