nfd+ndn-tlv-ping: New upstart scripts for ndnpingserver, nfd-autoreg, and nfd-status-http-server

nfd-autoreg and nfd-status-http-server are separate package to install,
if the function needs to be enabled
diff --git a/nfd/debian/nfd-autoreg.postinst b/nfd/debian/nfd-autoreg.postinst
new file mode 100644
index 0000000..3d20fcf
--- /dev/null
+++ b/nfd/debian/nfd-autoreg.postinst
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+
+if [ "$1" != "configure" ]; then
+        exit 0
+fi
+
+APP=nfd-autoreg
+
+if [ ! -f /var/lib/ndn/$APP/.ndn/ndnsec-public-info.db ]; then
+    # Create HOME and generate self-signed NDN certificate
+    sudo mkdir -p /var/lib/ndn/$APP/.ndn
+    sudo chown -R ndn:ndn /var/lib/ndn/$APP
+    sudo -u ndn -g ndn HOME=/var/lib/ndn/$APP ndnsec-keygen /localhost/daemons/$APP | \
+      sudo -u ndn -g ndn HOME=/var/lib/ndn/$APP ndnsec-install-cert -
+fi
+
+#DEBHELPER#
+
+exit 0