debian: Modernize use of dh_install.
authorBen Pfaff <blp@nicira.com>
Tue, 26 Jul 2011 16:22:45 +0000 (09:22 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 26 Jul 2011 16:23:37 +0000 (09:23 -0700)
Originally I intended this as just a cleanup, but as a side effect it also
installs some files from the install tree in debian/tmp instead of from
_debian.  This should avoid a reported problem in which ovs-bugtool was
being created in the source directory instead of the build directory (I
still don't see why this happened).

Reported-by: Sébastien RICCIO <sr@swisscenter.com>
Tested-by: Sébastien RICCIO <sr@swisscenter.com>
Acked-by: Simon Horman <horms@verge.net.au>
CC: Simon Horman <horms@verge.net.au>
AUTHORS
debian/.gitignore
debian/compat
debian/openvswitch-common.install
debian/openvswitch-controller.install
debian/openvswitch-switch.install
debian/rules

diff --git a/AUTHORS b/AUTHORS
index cd6832c..2f720fc 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -82,6 +82,7 @@ Rob Hoes                rob.hoes@citrix.com
 Roger Leigh             rleigh@codelibre.net
 Sean Brady              sbrady@gtfservices.com
 Sebastian Andrzej Siewior  sebastian@breakpoint.cc
+Sébastien RICCIO        sr@swisscenter.com
 Srini Seetharaman       seethara@stanford.edu
 Stephen Hemminger       shemminger@vyatta.com
 Takayuki HAMA           t-hama@cb.jp.nec.com
index 63434ca..b681ee4 100644 (file)
@@ -17,3 +17,4 @@
 /openvswitch-switch.copyright
 /ovsdbmonitor
 /python-openvswitch
+/tmp
index 7ed6ff8..7f8f011 100644 (file)
@@ -1 +1 @@
-5
+7
index 517a817..7448747 100644 (file)
@@ -1,10 +1,10 @@
-_debian/ovsdb/ovsdb-client usr/bin
-_debian/ovsdb/ovsdb-tool usr/bin
-_debian/utilities/ovs-appctl usr/sbin
-_debian/utilities/ovs-ofctl usr/sbin
-_debian/utilities/ovs-parse-leaks usr/bin
-_debian/utilities/ovs-pki usr/sbin
-debian/openvswitch/etc/openvswitch/bugtool-plugins etc/openvswitch
-debian/openvswitch/usr/share/openvswitch/scripts/ovs-bugtool-tc-class-show usr/share/openvswitch/scripts/ovs-bugtool-tc-class-show
-_debian/utilities/bugtool/ovs-bugtool usr/sbin
-vswitchd/vswitch.ovsschema usr/share/openvswitch
+etc/openvswitch/bugtool-plugins
+usr/bin/ovs-appctl
+usr/bin/ovs-ofctl
+usr/bin/ovs-parse-leaks
+usr/bin/ovs-pki
+usr/bin/ovsdb-client
+usr/bin/ovsdb-tool
+usr/sbin/ovs-bugtool
+usr/share/openvswitch/scripts/ovs-bugtool-tc-class-show
+usr/share/openvswitch/vswitch.ovsschema
index 7d0edbb..a22ec45 100644 (file)
@@ -1 +1 @@
-_debian/utilities/ovs-controller usr/sbin
+usr/bin/ovs-controller
index bb6b46a..4fa87bd 100644 (file)
@@ -1,10 +1,10 @@
-_debian/ovsdb/ovsdb-server usr/bin
-_debian/utilities/ovs-dpctl usr/sbin
-_debian/utilities/ovs-ctl usr/share/openvswitch/scripts
-_debian/utilities/ovs-lib.sh usr/share/openvswitch/scripts
-_debian/utilities/ovs-vsctl usr/sbin
-_debian/utilities/ovs-pcap usr/bin
-_debian/utilities/ovs-tcpundump usr/bin
-_debian/utilities/ovs-vlan-test usr/bin
-_debian/vswitchd/ovs-vswitchd usr/sbin
-utilities/ovs-save usr/share/openvswitch/scripts
+usr/bin/ovs-dpctl
+usr/bin/ovs-pcap
+usr/bin/ovs-tcpundump
+usr/bin/ovs-vlan-test
+usr/bin/ovs-vsctl
+usr/sbin/ovs-vswitchd
+usr/sbin/ovsdb-server
+usr/share/openvswitch/scripts/ovs-ctl
+usr/share/openvswitch/scripts/ovs-lib.sh
+usr/share/openvswitch/scripts/ovs-save
index 357285f..224f095 100755 (executable)
@@ -72,7 +72,7 @@ install: install-indep install-arch
 install-indep: build-indep
        dh_testdir
        dh_testroot
-       dh_clean -k -i 
+       dh_prep -i
        dh_installdirs -i
        dh_install -i
        sed 's/^BUILD_NUMBER = .*/BUILD_NUMBER = $(BUILD_NUMBER)/' \
@@ -84,9 +84,9 @@ install-indep: build-indep
 install-arch: build-arch
        dh_testdir
        dh_testroot
-       dh_clean -k -s 
+       dh_prep -s
        dh_installdirs -s
-       $(MAKE) -C _debian DESTDIR=$(CURDIR)/debian/openvswitch install
+       $(MAKE) -C _debian DESTDIR=$(CURDIR)/debian/tmp install
        cp debian/openvswitch-switch.template debian/openvswitch-switch/usr/share/openvswitch/switch/default.template
        dh_install -s