nlsr: Update to version 0.3.1

Change-Id: If60e8c15b411b031bbfe3331957fc851cb19f012
diff --git a/nlsr/Makefile b/nlsr/Makefile
index 8866636..dc18de1 100644
--- a/nlsr/Makefile
+++ b/nlsr/Makefile
@@ -2,13 +2,13 @@
 GIT_URL=https://github.com/named-data/NLSR
 
 # Tag name or commit hash for checkout
-GIT_VERSION=2b057af9e1a695bb72a662b22cc1e8be200356f3
+GIT_VERSION=NLSR-0.3.1
 
 # Package name
 NAME=nlsr
 
 # Package version
-VERSION=0.3.0-13-g2b057af
+VERSION=0.3.1
 
 # PPA version
 PPA_VERSION=1
diff --git a/nlsr/debian/changelog b/nlsr/debian/changelog
index 326c6f2..960f6cb 100644
--- a/nlsr/debian/changelog
+++ b/nlsr/debian/changelog
@@ -1,3 +1,9 @@
+nlsr (0.3.1-ppa1~DISTRO) DISTRO; urgency=low
+
+  * New version based on NLSR-0.3.1 (https://github.com/named-data/NLSR)
+
+ -- Alexander Afanasyev <alexander.afanasyev@ucla.edu>  Thu, 26 Jan 2017 05:20:46 +0000
+
 nlsr (0.3.0-13-g2b057af-ppa1~DISTRO) DISTRO; urgency=low
 
   * New version based on 2b057af9e1a695bb72a662b22cc1e8be200356f3
diff --git a/nlsr/debian/control b/nlsr/debian/control
index 1370de3..0391ddc 100644
--- a/nlsr/debian/control
+++ b/nlsr/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),
  liblog4cxx10-dev (>= 0.10.0),
  libcrypto++-dev (>= 5.6.1),
  protobuf-compiler (>= 2.4.0),
@@ -19,6 +19,6 @@
 Vcs-Browser: http://github.com/named-data/NLSR
 
 Package: nlsr
-Architecture: i386 amd64
-Depends: ${shlibs:Depends}, ${misc:Depends} , ndn-cxx
+Architecture: i386 amd64 arm64 armel armhf ppc64el
+Depends: ${shlibs:Depends}, ${misc:Depends}, ndn-cxx
 Description: A link state routing protocol for Named Data Networking
diff --git a/nlsr/debian/rules b/nlsr/debian/rules
index 9cb89e5..b94084a 100755
--- a/nlsr/debian/rules
+++ b/nlsr/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)" LINKFLAGS="$(LDFLAGS)" ./waf configure --prefix=/usr
+	CXXFLAGS="$(CXXFLAGS)" LINKFLAGS="$(LDFLAGS)" ./waf configure --prefix=/usr --boost-libs="$(LIBDIR)"
 
 override_dh_auto_build:
 	./waf build