From 97127f61d85f57c34d89e0f6efa779ac5de24853 Mon Sep 17 00:00:00 2001 From: Jurij Smakov Date: Tue, 31 May 2005 02:16:28 +0000 Subject: [PATCH] Added the building of linux-doc package. svn path=/branches/kernel-image-2.6.11/; revision=3280 --- debian/rules | 37 +++++++++++++++++++++++++------- debian/templates/control.main.in | 13 ----------- 2 files changed, 29 insertions(+), 21 deletions(-) diff --git a/debian/rules b/debian/rules index 0596b77a1..b105e8c79 100755 --- a/debian/rules +++ b/debian/rules @@ -47,7 +47,7 @@ export version abiname ltver kbuildver flavours major uver patch: debian/patch-stamp debian/patch-stamp: debian/bin/apply dh_testdir - override_version=$(release) home=debian/patches debian/bin/apply + override_version=$(release) home=debian/patches-debian debian/bin/apply # make-kpkg does this when building kernel-source. mv scripts/package/Makefile scripts/package/Makefile.dist mv scripts/package/builddeb scripts/package/builddeb.dist @@ -57,12 +57,12 @@ debian/patch-stamp: debian/bin/apply unpatch: dh_testdir - if [ -e debian/patch-stamp ]; then \ - override_version=$(release) home=debian/patches \ - debian/bin/apply $(version); \ - cd scripts/package; \ - mv Makefile.dist Makefile; \ - mv builddeb.dist builddeb; \ + if [ -e debian/patch-stamp ]; then \ + override_version=$(release) home=debian/patches-debian \ + debian/bin/apply $(version); \ + cd scripts/package; \ + mv Makefile.dist Makefile; \ + mv builddeb.dist builddeb; \ fi rm -f debian/patch-stamp # @@ -151,6 +151,27 @@ debian/patch-debian-stamp: debian/bin/apply debian/bin/unpatch dh_md5sums -p$(ppkg) dh_builddeb -p$(ppkg) touch debian/patch-debian-stamp +# +# linux-doc package +# +dbdir := debian/build-doc +dbddir := $(dbdir)/debian +doc: debian/doc-stamp +debian/doc-stamp: debian/patch-stamp + dh_testdir + dh_testroot +# Create a build tree + mkdir -p $(dbdir) + cp -al $(source_files) $(dbdir) + mkdir -p $(dbddir) + cp debian/changelog $(dbddir) + cp debian/control $(dbddir) + cp debian/copyright $(dbddir) + touch $(dbddir)/official + cd $(dbdir) && make-kpkg --stem linux kernel-doc + cat $(dbddir)/files >> debian/files + mv debian/*.deb .. + touch debian/doc-stamp unpack: debian/unpack-stamp debian/unpack-stamp: debian/patch-stamp @@ -181,7 +202,7 @@ clean: unpatch rm -rf kernel-source-* build-* install-* dh_clean -binary-indep: source tree +binary-indep: source tree patch-debian doc binary-arch: build dh_testdir for i in $(subarchs); do \ diff --git a/debian/templates/control.main.in b/debian/templates/control.main.in index 0aa85d991..d21c13ecb 100644 --- a/debian/templates/control.main.in +++ b/debian/templates/control.main.in @@ -65,16 +65,3 @@ Description: Linux kernel source tree for building Debian kernel images . The package serves no purpose outside of the Debian build and archive infrastructure. - -Package: linux-scripts-@version@-@abiname@ -Architecture: any -Section: devel -Priority: optional -Depends: coreutils | fileutils (>= 4.0) -Description: Architecture-specific header files for Linux kernel @version@ - This package provides the architecture-specific support files for Linux - kernel version @version@, generally used for building out-of-tree - kernel modules. It mainly contains the binaries from the script/ kernel - directory, as well as other architecture-dependent files such as - asm-offsets.s. -