repo-ng: Build fixes
diff --git a/repo-ng/Makefile b/repo-ng/Makefile
index 1b12edb..3c08cb1 100644
--- a/repo-ng/Makefile
+++ b/repo-ng/Makefile
@@ -11,6 +11,6 @@
 VERSION=0.0.6
 
 # PPA version
-PPA_VERSION=1
+PPA_VERSION=3
 
 include ../packaging.mk
diff --git a/repo-ng/debian/changelog b/repo-ng/debian/changelog
index 1a3e7f4..7112655 100644
--- a/repo-ng/debian/changelog
+++ b/repo-ng/debian/changelog
@@ -1,3 +1,17 @@
+repo-ng (0.0.6-ppa3~DISTRO) DISTRO; urgency=low
+
+  * New version based on 595b2bd4020e8c43baf54396eb2c08e1e26fe1ce
+    (https://github.com/named-data/repo-ng)
+
+ -- Alexander Afanasyev <alexander.afanasyev@ucla.edu>  Thu, 18 Dec 2014 23:03:44 -0800
+
+repo-ng (0.0.6-ppa2~DISTRO) DISTRO; urgency=low
+
+  * New version based on 595b2bd4020e8c43baf54396eb2c08e1e26fe1ce
+    (https://github.com/named-data/repo-ng)
+
+ -- Alexander Afanasyev <alexander.afanasyev@ucla.edu>  Thu, 18 Dec 2014 22:59:20 -0800
+
 repo-ng (0.0.6-ppa1~DISTRO) DISTRO; urgency=low
 
   * New version based on 595b2bd4020e8c43baf54396eb2c08e1e26fe1ce
diff --git a/repo-ng/debian/rules b/repo-ng/debian/rules
index 1450368..0d3817e 100755
--- a/repo-ng/debian/rules
+++ b/repo-ng/debian/rules
@@ -10,12 +10,14 @@
 # export DH_VERBOSE=1
 
 LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
+CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
+CXXFLAGS += -std=c++11
 
 %:
 	dh $@ --parallel
 
 override_dh_auto_configure:
-	./waf configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
+	CXXFLAGS="$(CXXFLAGS)" LINKFLAGS="$(LDFLAGS)" ./waf configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
 
 override_dh_auto_build:
 	./waf build
diff --git a/repo-ng/debian/rules.precise b/repo-ng/debian/rules.precise
new file mode 100755
index 0000000..5fa0a0c
--- /dev/null
+++ b/repo-ng/debian/rules.precise
@@ -0,0 +1,38 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+# export DH_VERBOSE=1
+
+LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
+CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
+CXXFLAGS += -std=c++0x
+
+%:
+	dh $@ --parallel
+
+override_dh_auto_configure:
+	CXXFLAGS="$(CXXFLAGS)" LINKFLAGS="$(LDFLAGS)" ./waf configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
+
+override_dh_auto_build:
+	./waf build
+
+override_dh_auto_install:
+	./waf install --destdir=debian/tmp
+
+override_dh_auto_clean:
+	./waf distclean
+
+override_dh_clean:
+	dh_clean
+	./waf distclean
+	rm -rf .waf-1*
+	rm -rf .waf3-1*
+	rm -f .waf-tools/*.pyc
+
+override_dh_auto_test: