diff mbox

[1/2] UBUNTU: install the full changelog with the binary package

Message ID 1254766022-15715-2-git-send-email-apw@canonical.com
State Accepted
Headers show

Commit Message

Andy Whitcroft Oct. 5, 2009, 6:07 p.m. UTC
We need to have the full history of the package installed with the
kernel images.  Therefore use the existing changelog and
changelog.historical to generate a full changelog and install it
in /usr/share/doc/linux-image-<version>-<flavour>.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
---
 debian.master/rules.d/2-binary-arch.mk |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/debian.master/rules.d/2-binary-arch.mk b/debian.master/rules.d/2-binary-arch.mk
index 7ffde16..4468d25 100644
--- a/debian.master/rules.d/2-binary-arch.mk
+++ b/debian.master/rules.d/2-binary-arch.mk
@@ -28,6 +28,7 @@  $(stampdir)/stamp-build-%: $(stampdir)/stamp-prepare-%
 
 # Install the finished build
 install-%: pkgdir = $(CURDIR)/debian/$(bin_pkg_name)-$*
+install-%: bindoc = $(pkgdir)/usr/share/doc/$(bin_pkg_name)-$*
 install-%: dbgpkgdir = $(CURDIR)/debian/$(dbg_pkg_name)-$*
 install-%: basepkg = $(hdrs_pkg_name)
 install-%: hdrdir = $(CURDIR)/debian/$(basepkg)-$*/usr/src/$(basepkg)-$*
@@ -90,6 +91,12 @@  endif
 	  chmod 755 $(pkgdir)/DEBIAN/$$script;					\
 	done
 
+	# Install the full changelog.
+	install -d $(bindoc)
+	cat $(DEBIAN)/changelog $(DEBIAN)/changelog.historical | \
+		gzip -9 >$(bindoc)/changelog.Debian.old.gz
+	chmod 644 $(bindoc)/changelog.Debian.old.gz
+
 ifneq ($(skipsub),true)
 	for sub in $($(*)_sub); do					\
 		if ! (TO=$$sub FROM=$* ABI_RELEASE=$(abi_release) $(SHELL)		\