debian: Transition to dh_python2
authorSimon Horman <horms@verge.net.au>
Fri, 26 Aug 2011 09:03:42 +0000 (18:03 +0900)
committerBen Pfaff <blp@nicira.com>
Fri, 26 Aug 2011 16:14:55 +0000 (09:14 -0700)
dh_pysupport that the packaging used until now is deprecated, with
dh_python2 as its successor.

This commit removes the PYTHONPATH setting from
debian/openvswitch-ipsec.init because it is not needed, as the Python
packaging is public.  In fact, the Python packaging was public,
unintentionally, before, so the PYTHONPATH could have been removed earlier.

debian/control
debian/openvswitch-ipsec.init
debian/python-openvswitch.dirs
debian/python-openvswitch.install
debian/rules

index 8b3e7bf9fcc21e518b2207cd3fb8b9edeb5104e6..8e3b43ae5fa1f577005320825ec7cd080a6f111f 100644 (file)
@@ -5,8 +5,8 @@ Maintainer: Open vSwitch developers <dev@openvswitch.org>
 Uploaders: Ben Pfaff <pfaffben@debian.org>, Simon Horman <horms@debian.org>
 Build-Depends:
  debhelper (>= 5), autoconf (>= 2.64), automake (>= 1.10) | automake1.10, 
- libssl-dev, pkg-config (>= 0.21), po-debconf, bzip2, openssl, python,
- python-support (>= 0.8.4), procps, python-qt4,
+ libssl-dev, pkg-config (>= 0.21), po-debconf, bzip2, openssl,
+ python (>= 2.6.6-3), procps, python-qt4,
  python-zopeinterface, python-twisted-conch
 Standards-Version: 3.9.2
 Homepage: http://openvswitch.org/
@@ -54,7 +54,7 @@ Description: Open vSwitch switch implementations
 Package: openvswitch-ipsec
 Architecture: linux-any
 Depends:
- ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, 
+ ${shlibs:Depends}, ${misc:Depends}, python,
  ipsec-tools (>=0.8~alpha20101208), 
  racoon (>=0.8~alpha20101208),
  openvswitch-common (= ${binary:Version}),
@@ -123,7 +123,6 @@ Package: python-openvswitch
 Architecture: all
 Section: python
 Depends: ${misc:Depends}, ${python:Depends}
-Provides: ${python:Provides}
 Description: Python bindings for Open vSwitch
  This package contains the full Python bindings for Open vSwitch database.
 
@@ -131,7 +130,6 @@ Package: ovsdbmonitor
 Architecture: all
 Section: utils
 Depends: ${python:Depends}, python-openvswitch, ${misc:Depends}
-Provides: ${python:Provides}
 Description: Open vSwitch graphical monitoring tool
  This package is a GUI tool for monitoring and troubleshooting local
  or remote Open vSwitch installations.  It presents GUI tables that
index ba82f5139017157baa4703e49a223bbd848f75a0..61a1101b46230f81dc3c51cb568eafa0c30a93fb 100755 (executable)
@@ -73,8 +73,7 @@ start_server() {
         install -d -m 755 -o root -g root /var/run/openvswitch
     fi
 
-    PYTHONPATH=/usr/share/openvswitch/python \
-           /usr/share/openvswitch/scripts/ovs-monitor-ipsec \
+    /usr/share/openvswitch/scripts/ovs-monitor-ipsec \
            --pidfile-name=$PIDFILE --detach --monitor \
            unix:/var/run/openvswitch/db.sock
 
index 9bc6912a33b837469bdf67b03dad8f52d470882c..cbf0de33d9e2cc2bdc715263368656dfc6eeada4 100644 (file)
@@ -1,2 +1,2 @@
-usr/share/python-support/python-openvswitch/ovs/
-usr/share/python-support/python-openvswitch/ovs/db/
+usr/share/pyshared/ovs/
+usr/share/pyshared/ovs/db/
index 211ed300e31b623fc639c47e148ec6ff1ddbe586..17af5460b976d105184465bae57e8c8c2c5f6f4f 100644 (file)
@@ -1,2 +1,2 @@
-python/ovs/*.py usr/share/python-support/python-openvswitch/ovs/
-python/ovs/db/*.py usr/share/python-support/python-openvswitch/ovs/db/
+python/ovs/*.py usr/share/pyshared/ovs/
+python/ovs/db/*.py usr/share/pyshared/ovs/db/
index fb781e6c3b28a6a371b29927fb2fc21b20ff51fe..c4a3ba7c2b441f1fd8ff3de60bb75f8a8bcd1324 100755 (executable)
@@ -124,7 +124,7 @@ binary-common:
        dh_strip --dbg-package=openvswitch-dbg
        dh_compress 
        dh_fixperms
-       dh_pysupport
+       dh_python2
        dh_perl
        dh_makeshlibs
        dh_installdeb