nfd: Update to version 0.5.1

Change-Id: I18270180692f0b70ab7c08d2f929e5815ab9493b
diff --git a/nfd/debian/changelog b/nfd/debian/changelog
index 807ac2f..dde0b2b 100644
--- a/nfd/debian/changelog
+++ b/nfd/debian/changelog
@@ -1,3 +1,10 @@
+nfd (0.5.1-ppa2~DISTRO) DISTRO; urgency=low
+
+  * New version based on NFD-0.5.1 (https://github.com/named-
+    data/NFD.git)
+
+ -- Alexander Afanasyev <alexander.afanasyev@ucla.edu>  Thu, 26 Jan 2017 05:17:40 +0000
+
 nfd (0.5.0-ppa1~DISTRO) DISTRO; urgency=low
 
   * New version based on NFD-0.5.0 (https://github.com/named-
diff --git a/nfd/debian/control b/nfd/debian/control
index 1749c7e..2177ff9 100644
--- a/nfd/debian/control
+++ b/nfd/debian/control
@@ -5,7 +5,7 @@
  dh-systemd (>= 1.5),
  python (>= 2.7.0),
  pkg-config (>= 0.26),
- ndn-cxx-dev (>= 0.5.0),
+ ndn-cxx-dev (>= 0.5.1),
  python-sphinx,
  libpcap-dev,
  libboost-all-dev (>= 1.53.0)
@@ -16,29 +16,29 @@
 Vcs-Browser: http://github.com/named-data/NFD
 
 Package: nfd
-Architecture: i386 amd64
+Architecture: i386 amd64 arm64 armel armhf ppc64el
 Depends: ${shlibs:Depends}, ${misc:Depends}, ndn-cxx, sudo, procps
 Description: NFD - Named Data Networking Forwarding Daemon
  NFD is a network forwarder that implements and evolves together with the Named Data
  Networking (NDN) protocol.
 
 Package: nfd-status-http-server
-Architecture: i386 amd64
+Architecture: i386 amd64 arm64 armel armhf ppc64el
 Depends: nfd (= ${binary:Version}), ${misc:Depends}, python2.7-minimal
 Description: NFD HTTP status server
 
 Package: nfd-autoreg
-Architecture: i386 amd64
+Architecture: i386 amd64 arm64 armel armhf ppc64el
 Depends: nfd (= ${binary:Version}), ${misc:Depends}
 Description: NFD autoreg server
 
 Package: ndn-autoconfig-server
-Architecture: i386 amd64
+Architecture: i386 amd64 arm64 armel armhf ppc64el
 Depends: nfd (= ${binary:Version}), ${misc:Depends}
 Description: NDN autoconfig server
 
 Package: ndn-autoconfig-client
-Architecture: i386 amd64
+Architecture: i386 amd64 arm64 armel armhf ppc64el
 Depends: nfd (= ${binary:Version}), ${misc:Depends}
 Description: NDN autoconfig client
 
diff --git a/nfd/debian/nfd-status-http-server.service b/nfd/debian/nfd-status-http-server.service
index 3088a83..1ad2d56 100644
--- a/nfd/debian/nfd-status-http-server.service
+++ b/nfd/debian/nfd-status-http-server.service
@@ -28,6 +28,7 @@
 After=nfd.service
 
 [Service]
+Environment=HOME=/var/lib/ndn/nfd-status-http-server
 EnvironmentFile=-/etc/default/nfd-status-http-server
 ExecStart=/usr/bin/nfd-status-http-server $FLAGS
 Restart=on-failure
diff --git a/nfd/debian/rules b/nfd/debian/rules
index ece0500..2c253fc 100755
--- a/nfd/debian/rules
+++ b/nfd/debian/rules
@@ -12,12 +12,13 @@
 LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
 CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
 CXXFLAGS += -std=c++11
+LIBDIR := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 %:
 	dh $@ --parallel --with=systemd
 
 override_dh_auto_configure:
-	CXXFLAGS="$(CXXFLAGS)" ./waf configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
+	CXXFLAGS="$(CXXFLAGS)" ./waf configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --boost-libs="$(LIBDIR)"
 
 override_dh_auto_build:
 	./waf build