[ovs-dev] [PATCH v2] debian: Add openvswitch-python package
Sajjad Lateef
slateef at nicira.com
Mon Sep 20 21:57:41 UTC 2010
Resending patch due to amended comments in the commit. -- Sajjad
This installs the Python runtime bindings for
Open vSwitch database into
/usr/share/python-support/openvswitch-python/ovs and
/usr/share/python-support/openvswitch-python/ovs/db
Updated FSF address in copyright file
Minor Whitespace re-formatting
---
debian/automake.mk | 5 +++++
debian/control | 10 +++++++++-
debian/openvswitch-python.dirs | 2 ++
debian/openvswitch-python.install | 2 ++
debian/openvswitch-python.postinst | 7 +++++++
debian/openvswitch-python.preinst | 7 +++++++
debian/openvswitch-python.prerm | 7 +++++++
debian/rules | 1 +
8 files changed, 40 insertions(+), 1 deletions(-)
create mode 100644 debian/openvswitch-python.dirs
create mode 100644 debian/openvswitch-python.install
create mode 100644 debian/openvswitch-python.postinst
create mode 100644 debian/openvswitch-python.preinst
create mode 100644 debian/openvswitch-python.prerm
diff --git a/debian/automake.mk b/debian/automake.mk
index a5a6e05..3b13db9 100644
--- a/debian/automake.mk
+++ b/debian/automake.mk
@@ -29,6 +29,11 @@ EXTRA_DIST += \
debian/openvswitch-pki-server.install \
debian/openvswitch-pki-server.postinst \
debian/openvswitch-pki.postinst \
+ debian/openvswitch-python.dirs \
+ debian/openvswitch-python.install \
+ debian/openvswitch-python.postinst \
+ debian/openvswitch-python.preinst \
+ debian/openvswitch-python.prerm \
debian/openvswitch-switch.README.Debian \
debian/openvswitch-switch.dirs \
debian/openvswitch-switch.init \
diff --git a/debian/control b/debian/control
index edecffd..fde640e 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,8 @@ Maintainer: Open vSwitch developers <dev at openvswitch.org>
Uploaders: Ben Pfaff <pfaffben at debian.org>, Simon Horman <horms at debian.org>
Build-Depends:
debhelper (>= 5), autoconf (>= 2.64), automake1.10, libssl-dev,
- pkg-config (>= 0.21), po-debconf, bzip2, openssl, python
+ pkg-config (>= 0.21), po-debconf, bzip2, openssl, python,
+ python-support (>= 0.8.4)
Standards-Version: 3.9.1
Homepage: http://openvswitch.org/
@@ -94,3 +95,10 @@ Description: Debug symbols for Open vSwitch packages
This package contains the debug symbols for all the other openvswitch-*
packages. Install it to debug one of them or to examine a core dump
produced by one of them.
+
+Package: openvswitch-python
+Architecture: all
+Depends: ${python:Depends}, openvswitch-switch (= ${binary:Version})
+Provides: ${python:Provides}
+Description: Python bindings for Open vSwitch
+ This package contains the full Python bindings for Open vSwitch database.
diff --git a/debian/openvswitch-python.dirs b/debian/openvswitch-python.dirs
new file mode 100644
index 0000000..055838c
--- /dev/null
+++ b/debian/openvswitch-python.dirs
@@ -0,0 +1,2 @@
+usr/share/python-support/openvswitch-python/ovs/
+usr/share/python-support/openvswitch-python/ovs/db/
diff --git a/debian/openvswitch-python.install
b/debian/openvswitch-python.install
new file mode 100644
index 0000000..35d35e7
--- /dev/null
+++ b/debian/openvswitch-python.install
@@ -0,0 +1,2 @@
+python/ovs/*.py usr/share/python-support/openvswitch-python/ovs/
+python/ovs/db/*.py usr/share/python-support/openvswitch-python/ovs/db/
diff --git a/debian/openvswitch-python.postinst
b/debian/openvswitch-python.postinst
new file mode 100644
index 0000000..b7ec504
--- /dev/null
+++ b/debian/openvswitch-python.postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/openvswitch-python.preinst
b/debian/openvswitch-python.preinst
new file mode 100644
index 0000000..b7ec504
--- /dev/null
+++ b/debian/openvswitch-python.preinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/openvswitch-python.prerm b/debian/openvswitch-python.prerm
new file mode 100644
index 0000000..b7ec504
--- /dev/null
+++ b/debian/openvswitch-python.prerm
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/rules b/debian/rules
index 49d562a..8e7ad1e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -103,6 +103,7 @@ binary-common:
dh_strip --dbg-package=openvswitch-dbg
dh_compress
dh_fixperms -X var/log/core
+ dh_pysupport
dh_perl
dh_makeshlibs
dh_installdeb
--
1.5.6.5
--
Sajjad Lateef
slateef at nicira.com
More information about the dev
mailing list