libpsync: add PSync and update NLSR dependency
refs: #4827
Change-Id: I83df4c0532258f490b855335bf94600cc71d7a65
diff --git a/libchronosync/debian/control b/libchronosync/debian/control
index 27fc1d6..413ce5f 100644
--- a/libchronosync/debian/control
+++ b/libchronosync/debian/control
@@ -23,9 +23,7 @@
Package: libchronosync-dev
Section: libdevel
Architecture: i386 amd64 arm64 armel armhf ppc64el
-Depends: python (>= 2.7.0),
- pkg-config (>= 0.26),
- libndn-cxx-dev (>= 0.6.1),
+Depends: libndn-cxx-dev (>= 0.6.1),
libchronosync (= ${binary:Version})
Description: Development headers and libraries of sync library for multiuser realtime applications for NDN
diff --git a/libpsync/Makefile b/libpsync/Makefile
new file mode 100644
index 0000000..9865ef2
--- /dev/null
+++ b/libpsync/Makefile
@@ -0,0 +1,16 @@
+# URL for git clone
+GIT_URL=https://github.com/named-data/PSync.git
+
+# Tag name or commit hash for checkout
+GIT_VERSION=0.1.0
+
+# Package name
+NAME=libpsync
+
+# Package version
+VERSION=0.1.0
+
+# PPA version
+PPA_VERSION=1
+
+include ../packaging.mk
diff --git a/libpsync/debian/changelog b/libpsync/debian/changelog
new file mode 100644
index 0000000..6ae7bc7
--- /dev/null
+++ b/libpsync/debian/changelog
@@ -0,0 +1,5 @@
+libpsync (0.1.0-ppa0~DISTRO) DISTRO; urgency=low
+
+ * Initial release
+
+ -- Ashlesh Gawande <agawande@memphis.edu> Mon, 14 Jan 2019 18:36:57 -0600
diff --git a/libpsync/debian/compat b/libpsync/debian/compat
new file mode 100644
index 0000000..9a03714
--- /dev/null
+++ b/libpsync/debian/compat
@@ -0,0 +1 @@
+10
\ No newline at end of file
diff --git a/libpsync/debian/control b/libpsync/debian/control
new file mode 100644
index 0000000..8e1301a
--- /dev/null
+++ b/libpsync/debian/control
@@ -0,0 +1,37 @@
+Source: libpsync
+Priority: optional
+Maintainer: Ashlesh Gawande <agawande@memphis.edu>
+Build-Depends: debhelper (>= 8.0.0),
+ python (>= 2.7.0),
+ pkg-config (>= 0.26),
+ python-sphinx (>= 1.1.3),
+ libboost-all-dev (>= 1.53.0),
+ libndn-cxx-dev (>= 0.6.3),
+ git
+Standards-Version: 4.1.2
+Section: libs
+Homepage: https://named-data.net/doc/PSync/
+Vcs-Git: git://github.com/named-data/PSync.git
+Vcs-Browser: https://github.com/named-data/PSync
+
+Package: libpsync
+Section: libs
+Architecture: i386 amd64 arm64 armel armhf ppc64el
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Partial and Full Name Synchronization Library for NDN
+
+Package: libpsync-dev
+Section: libdevel
+Architecture: i386 amd64 arm64 armel armhf ppc64el
+Depends: libndn-cxx-dev (>= 0.6.3),
+ libpsync (= ${binary:Version})
+Description: Development headers and libraries of Partial and Full Name Synchronization Library for NDN
+
+Package: libpsync-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends:
+ libpsync (= ${binary:Version}),
+ ${misc:Depends}
+Description: debugging symbols for libpsync
\ No newline at end of file
diff --git a/libpsync/debian/copyright b/libpsync/debian/copyright
new file mode 100644
index 0000000..181437c
--- /dev/null
+++ b/libpsync/debian/copyright
@@ -0,0 +1,36 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: PSync
+Source: http://github.com/named-data/PSync
+
+Files: *
+Copyright: Copyright (c) 2014-2019 The University of Memphis
+
+License: LGPL-3+
+ PSync is free software: you can redistribute it and/or modify it under the terms
+ of the GNU General Public License as published by the Free Software Foundation,
+ either version 3 of the License, or (at your option) any later version.
+ .
+ PSync is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
+ without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ PURPOSE. See the GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License along with
+ PSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
+
+Files: debian/*
+Copyright: 2019 Ashlesh Gawande <agawande@memphis.edu>
+License: Apache 2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache License 2.0 can
+ be found in "/usr/share/common-licenses/Apache-2.0"
\ No newline at end of file
diff --git a/libpsync/debian/libpsync-dev.dirs b/libpsync/debian/libpsync-dev.dirs
new file mode 100644
index 0000000..4418816
--- /dev/null
+++ b/libpsync/debian/libpsync-dev.dirs
@@ -0,0 +1,2 @@
+usr/lib
+usr/include
diff --git a/libpsync/debian/libpsync-dev.install b/libpsync/debian/libpsync-dev.install
new file mode 100644
index 0000000..61c9409
--- /dev/null
+++ b/libpsync/debian/libpsync-dev.install
@@ -0,0 +1,4 @@
+usr/include/*
+usr/lib/*/lib*.so
+usr/lib/*/pkgconfig/*
+usr/share/pkgconfig/*
diff --git a/libpsync/debian/libpsync.install b/libpsync/debian/libpsync.install
new file mode 100644
index 0000000..146d0ad
--- /dev/null
+++ b/libpsync/debian/libpsync.install
@@ -0,0 +1 @@
+usr/lib/*/*.so.*
\ No newline at end of file
diff --git a/libpsync/debian/rules b/libpsync/debian/rules
new file mode 100755
index 0000000..4006ae8
--- /dev/null
+++ b/libpsync/debian/rules
@@ -0,0 +1,39 @@
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+#export DH_VERBOSE = 1
+
+
+LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
+CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
+CXXFLAGS += -std=c++14
+LIBDIR := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+%:
+ dh $@ --parallel
+
+override_dh_auto_configure:
+ ./waf configure --with-examples --prefix=/usr --sysconfdir=/etc --libdir="$(LIBDIR)" --localstatedir=/var --boost-libs="$(LIBDIR)"
+
+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 -f .waf-tools/*.pyc
+ rm -f docs/*.pyc
+
+override_dh_auto_test:
+
+.PHONY: override_dh_strip
+override_dh_strip:
+ dh_strip --dbg-package=libpsync-dbg
+
diff --git a/libpsync/debian/source/format b/libpsync/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/libpsync/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/nlsr/debian/control b/nlsr/debian/control
index b4bfd75..e5b147a 100644
--- a/nlsr/debian/control
+++ b/nlsr/debian/control
@@ -7,6 +7,7 @@
pkg-config (>= 0.26),
libndn-cxx-dev (>= 0.6.2),
libchronosync-dev (>= 0.5.1),
+ libpsync-dev (>= 0.1.0),
libboost-all-dev (>= 1.53.0),
python-sphinx (>= 1.1.3),
git