@@ -27,7 +27,7 @@ Section: admin
Priority: optional
Pre-Depends: dpkg (>= 1.10.24)
Provides: linux-image, linux-image-2.6, fuse-module, =PROVIDES=
-Depends: ${misc:Depends}, ${shlibs:Depends}, initramfs-tools (>= 0.36ubuntu6), coreutils | fileutils (>= 4.0), module-init-tools (>= 3.3-pre11-4ubuntu3), wireless-crda
+Depends: ${misc:Depends}, ${shlibs:Depends}, initramfs-tools (>= 0.36ubuntu6), coreutils | fileutils (>= 4.0), module-init-tools (>= 3.3-pre11-4ubuntu3), wireless-crda, SRCPKGNAME-tools
Conflicts: hotplug (<< 0.0.20040105-1)
Recommends: BOOTLOADER
Suggests: fdutils, SRCPKGNAME-doc-PKGVER | SRCPKGNAME-source-PKGVER
@@ -45,6 +45,16 @@ Description: Linux kernel specific documentation for version PKGVER
/usr/share/doc/SRCPKGNAME-doc/00-INDEX for a list of what is
contained in each file.
+Package: SRCPKGNAME-tools
+Architecture: all
+Section: admin
+Priority: optional
+Depends: ${misc:Depends}
+Conflicts: SRCPKGNAME-tools-2.6
+Replaces: SRCPKGNAME-tools-2.6
+Description: Linux kernel specific tools for version PKGVER
+ This package provides the various tools in the PKGVER kernel source.
+
Package: linux-headers-PKGVER-ABINUM
Architecture: all
Section: devel
@@ -124,6 +124,7 @@ do_tools=false
ifneq ($(wildcard $(CURDIR)/tools),)
do_tools=true
endif
+tools_pkg_name=$(src_pkg_name)-tools
# Support parallel=<n> in DEB_BUILD_OPTIONS (see #209008)
#
@@ -62,6 +62,28 @@ ifeq ($(do_source_package_content),true)
rm -rf $(srcdir)
endif
+toolspkg = $(tools_pkg_name)
+toolsbin = $(CURDIR)/debian/$(toolspkg)/usr/bin
+toolsman = $(CURDIR)/debian/$(toolspkg)/usr/share/man
+install-tools:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -p$(toolspkg)
+
+ install -d $(toolsbin)
+ install -d $(toolsman)/man1
+
+ install -m755 debian/tools/perf $(toolsbin)/perf
+
+ install -d $(builddir)/tools
+ for i in *; do ln -s $(CURDIR)/$$i $(builddir)/tools/; done
+ rm $(builddir)/tools/tools
+ rsync -a tools/ $(builddir)/tools/tools/
+
+ cd $(builddir)/tools/tools/perf && make man
+ install -m644 $(builddir)/tools/tools/perf/Documentation/*.1 \
+ $(toolsman)/man1
+
install-indep-deps =
ifeq ($(do_common_headers_indep),true)
install-indep-deps += install-headers
@@ -72,6 +94,9 @@ endif
ifeq ($(do_source_package),true)
install-indep-deps += install-source
endif
+ifeq ($(do_tools),true)
+install-indep-deps += install-tools
+endif
install-indep: $(install-indep-deps)
# This is just to make it easy to call manually. Normally done in
new file mode 100644
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec perf_`uname -r` "$@"
Add a new linux-tools binary independant package which carries the version independant perf wrapper and any manual pages for perf. Signed-off-by: Andy Whitcroft <apw@canonical.com> --- debian.master/control.d/flavour-control.stub | 2 +- debian.master/control.stub.in | 10 ++++++++++ debian/rules.d/0-common-vars.mk | 1 + debian/rules.d/3-binary-indep.mk | 25 +++++++++++++++++++++++++ debian/tools/perf | 2 ++ 5 files changed, 39 insertions(+), 1 deletions(-) create mode 100644 debian/tools/perf