nfd: Create and chown log directory only if it doesn't exist

Otherwise, any update of nfd would break nlsr daemon, which uses a
subdirectory in the same log folder, but using different user.
diff --git a/nfd/Makefile b/nfd/Makefile
index bd86a8e..f68b325 100644
--- a/nfd/Makefile
+++ b/nfd/Makefile
@@ -11,6 +11,6 @@
 VERSION=0.2.0~rc2
 
 # PPA version
-PPA_VERSION=2
+PPA_VERSION=3
 
 include ../packaging.mk
diff --git a/nfd/debian/changelog b/nfd/debian/changelog
index acf06b0..9c64516 100644
--- a/nfd/debian/changelog
+++ b/nfd/debian/changelog
@@ -1,3 +1,10 @@
+nfd (0.2.0~rc2-ppa3~DISTRO) DISTRO; urgency=low
+
+  * New version based on NFD-0.2.0-rc2 (https://github.com/named-
+    data/NFD.git)
+
+ -- Alexander Afanasyev <alexander.afanasyev@ucla.edu>  Sun, 10 Aug 2014 18:16:09 -0700
+
 nfd (0.2.0~rc2-ppa2~DISTRO) DISTRO; urgency=low
 
   * New version based on NFD-0.2.0-rc2 (https://github.com/named-
diff --git a/nfd/debian/nfd.postinst b/nfd/debian/nfd.postinst
index d608129..8c4c667 100644
--- a/nfd/debian/nfd.postinst
+++ b/nfd/debian/nfd.postinst
@@ -4,8 +4,11 @@
         exit 0
 fi
 
-mkdir -p /var/log/ndn
-chown -R ndn:ndn /var/log/ndn
+
+if [ ! -d /var/log/ndn ]; then
+    mkdir -p /var/log/ndn
+    chown -R ndn:ndn /var/log/ndn
+fi
 
 if [ ! -f /etc/ndn/certs/localhost_daemons_nrd.ndncert ]; then
     # Create HOME and generate self-signed NDN certificate for nfd