Initial deb packaging of vpp-python-api

Change-Id: I14d5180d6abd59b813906011718121a2bbc9bafd
Signed-off-by: Ed Warnicke <hagbard@gmail.com>
diff --git a/build-root/deb/debian/.gitignore b/build-root/deb/debian/.gitignore
index e7868b4..75d8fbb 100644
--- a/build-root/deb/debian/.gitignore
+++ b/build-root/deb/debian/.gitignore
@@ -11,3 +11,4 @@
 vpp-dpdk-dkms/
 vpp-dbg/
 vppctl/
+vpp-python-api/
diff --git a/build-root/deb/debian/control b/build-root/deb/debian/control
index 4be6c4a..86383b1 100644
--- a/build-root/deb/debian/control
+++ b/build-root/deb/debian/control
@@ -59,3 +59,10 @@
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: DPDK 2.1 igb_uio_driver
  This package contains Linux kernel modules distributed with DPDK.
+
+Package: vpp-python-api
+Architecture: any
+Depends: ${python:Depends}, ${misc:Depends}, vpp (= ${source:Version})
+Description: VPP Python API bindings
+  This package contains VPP python api bindings
+  .
diff --git a/build-root/deb/debian/rules b/build-root/deb/debian/rules
index b5afbdb..4ecd38f 100755
--- a/build-root/deb/debian/rules
+++ b/build-root/deb/debian/rules
@@ -18,7 +18,7 @@
 
 # main packaging script based on dh7 syntax
 %:
-	dh $@ --with dkms --with systemd
+	dh $@ --with dkms --with systemd,python2
 
 override_dh_install:
 	dh_install --exclude .git
diff --git a/build-root/scripts/find-python-api-contents b/build-root/scripts/find-python-api-contents
new file mode 100755
index 0000000..9b390e7
--- /dev/null
+++ b/build-root/scripts/find-python-api-contents
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+rm -f $2
+
+for i in $(find ${1}/vpp-api/lib/python2.7/site-packages/ -type f -print); do
+    echo ../${i} /usr/lib/python2.7/site-packages/vpp_papi >> ${2}
+done
+