name-based-access-control: initial packaging

Change-Id: Id56d4eddb9d82854598485861e04f780f27a43cb
diff --git a/name-based-access-control/Makefile b/name-based-access-control/Makefile
new file mode 100644
index 0000000..3a1e77e
--- /dev/null
+++ b/name-based-access-control/Makefile
@@ -0,0 +1,16 @@
+# URL for git clone
+GIT_URL=https://github.com/named-data/name-based-access-control.git
+
+# Tag name or commit hash for checkout
+GIT_VERSION=61a8003
+
+# Package name
+NAME=name-based-access-control
+
+# Package version
+VERSION=0.1.0-commit-61a8003
+
+# PPA version
+PPA_VERSION=0
+
+include ../packaging.mk
diff --git a/name-based-access-control/debian/changelog b/name-based-access-control/debian/changelog
new file mode 100644
index 0000000..ac62822
--- /dev/null
+++ b/name-based-access-control/debian/changelog
@@ -0,0 +1,5 @@
+name-based-access-control (0.1.0-commit-61a8003-ppa0~DISTRO) DISTRO; urgency=low
+
+  * Initial release
+
+ -- Junxiao Shi <deb@mail1.yoursunny.com>  Sat, 08 Aug 2020 14:00:00 +0000
diff --git a/name-based-access-control/debian/compat b/name-based-access-control/debian/compat
new file mode 100644
index 0000000..9d60796
--- /dev/null
+++ b/name-based-access-control/debian/compat
@@ -0,0 +1 @@
+11
\ No newline at end of file
diff --git a/name-based-access-control/debian/control b/name-based-access-control/debian/control
new file mode 100644
index 0000000..6ae05f7
--- /dev/null
+++ b/name-based-access-control/debian/control
@@ -0,0 +1,37 @@
+Source: name-based-access-control
+Priority: optional
+Maintainer: Junxiao Shi <deb@mail1.yoursunny.com>
+Build-Depends: debhelper (>= 11.0.0),
+ python3 (>= 3.6.0),
+ pkg-config (>= 0.29),
+ python3-sphinx (>= 1.6.7),
+ libboost-all-dev (>= 1.65.0),
+ libndn-cxx-dev (>= 0.7.0),
+ git
+Standards-Version: 4.1.2
+Section: libs
+Homepage: https://github.com/named-data/name-based-access-control
+Vcs-Git: git://github.com/named-data/name-based-access-control.git
+Vcs-Browser: https://github.com/named-data/name-based-access-control
+
+Package: libndn-nac
+Section: libs
+Architecture: i386 amd64 arm64 armel armhf ppc64el
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Named-Based Access Control Library for NDN
+
+Package: libndn-nac-dev
+Section: libdevel
+Architecture: i386 amd64 arm64 armel armhf ppc64el
+Depends: libndn-cxx-dev,
+ libndn-nac (= ${binary:Version})
+Description: Development headers and libraries of Named-Based Access Control Library for NDN
+
+Package: libndn-nac-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends:
+ libndn-nac (= ${binary:Version}),
+ ${misc:Depends}
+Description: debugging symbols for libndn-nac
diff --git a/name-based-access-control/debian/copyright b/name-based-access-control/debian/copyright
new file mode 100644
index 0000000..9ca5d32
--- /dev/null
+++ b/name-based-access-control/debian/copyright
@@ -0,0 +1,37 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: name-based-access-control
+Source: http://github.com/named-data/name-based-access-control
+
+Files: *
+Copyright: Copyright (c) 2014-2020, Regents of the University of California
+
+License: LGPL-3+
+ NAC library is free software: you can redistribute it and/or modify it under the
+ terms of the GNU Lesser General Public License as published by the Free Software
+ Foundation, either version 3 of the License, or (at your option) any later version.
+ .
+ NAC library 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 Lesser General Public License for more details.
+ .
+ You should have received copies of the GNU General Public License and GNU Lesser
+ General Public License along with ndn-cxx, e.g., in COPYING.md file.  If not, see
+ <http://www.gnu.org/licenses/>.
+
+Files: debian/*
+Copyright: 2020 Junxiao Shi <deb@mail1.yoursunny.com>
+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/name-based-access-control/debian/libndn-nac-dev.dirs b/name-based-access-control/debian/libndn-nac-dev.dirs
new file mode 100644
index 0000000..4418816
--- /dev/null
+++ b/name-based-access-control/debian/libndn-nac-dev.dirs
@@ -0,0 +1,2 @@
+usr/lib
+usr/include
diff --git a/name-based-access-control/debian/libndn-nac-dev.install b/name-based-access-control/debian/libndn-nac-dev.install
new file mode 100644
index 0000000..7df81cd
--- /dev/null
+++ b/name-based-access-control/debian/libndn-nac-dev.install
@@ -0,0 +1,3 @@
+usr/include/*
+usr/lib/*/lib*.so
+usr/lib/*/pkgconfig/*
diff --git a/name-based-access-control/debian/libndn-nac.install b/name-based-access-control/debian/libndn-nac.install
new file mode 100644
index 0000000..146d0ad
--- /dev/null
+++ b/name-based-access-control/debian/libndn-nac.install
@@ -0,0 +1 @@
+usr/lib/*/*.so.*
\ No newline at end of file
diff --git a/name-based-access-control/debian/rules b/name-based-access-control/debian/rules
new file mode 100755
index 0000000..0bbdddf
--- /dev/null
+++ b/name-based-access-control/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 --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=libndn-nac-dbg
+
diff --git a/name-based-access-control/debian/source/format b/name-based-access-control/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/name-based-access-control/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)