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 cd6832c118f7a98831f70cd7cb466623a0997092..2f720fc85ba9cd6ccaec8a1f934d73d0b22e4b71 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 63434cac2087f226731189dd3f4365682b2cb438..b681ee410ecd13fdbebe53ee60d7a86d1363558c 100644 (file)
@@ -17,3 +17,4 @@
 /openvswitch-switch.copyright
 /ovsdbmonitor
 /python-openvswitch
+/tmp
index 7ed6ff82de6bcc2a78243fc9c54d3ef5ac14da69..7f8f011eb73d6043d2e6db9d2c101195ae2801f2 100644 (file)
@@ -1 +1 @@
-5
+7
index 517a817d0959e432879202096fdbd65152d078d0..74487470459c3d3a7d56e230c559da0371f4efba 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 7d0edbbed01af4603e7eee54271f5c86c3e2c5a4..a22ec45fe1ba5c3ffa2fc41bb7415e2bbb7be25f 100644 (file)
@@ -1 +1 @@
-_debian/utilities/ovs-controller usr/sbin
+usr/bin/ovs-controller
index bb6b46ade8b81dbd9442bd70b22fdca410d1d378..4fa87bdd5ab78f76a3b924c77feecce96db39d42 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 357285f7d1951ed5b9702ed02f0f3b827cf1075c..224f095af9e80d85083f1151eac6d9fd531ec267 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