diff -u linux-2.6-2.6.32/debian/rules.real linux-2.6-2.6.32/debian/rules.real --- linux-2.6-2.6.32/debian/rules.real +++ linux-2.6-2.6.32/debian/rules.real @@ -180,6 +180,10 @@ install-headers_$(ARCH): PACKAGE_NAMES = linux-headers-$(UPSTREAMVERSION)$(ABINAME)-all linux-headers-$(UPSTREAMVERSION)$(ABINAME)-all-$(ARCH) install-headers_$(ARCH): DH_OPTIONS = $(foreach p, $(PACKAGE_NAMES), -p$(p)) install-headers_$(ARCH): + sed -e 's/=V/$(UPSTREAMVERSION)$(ABINAME)-$(ARCH)/g' \ + debian/templates/temp.headers.plain/postinst > \ + debian/linux-headers-$(UPSTREAMVERSION)$(ABINAME)-$(ARCH)/DEBIAN/postinst; \ + chmod 755 debian/linux-headers-$(UPSTREAMVERSION)$(ABINAME)-$(ARCH)/DEBIAN/postinst; dh_testdir dh_testroot +$(MAKE_SELF) install-base GENCONTROL_ARGS='-Vkernel:Arch=$(ARCH)' only in patch2: unchanged: --- linux-2.6-2.6.32.orig/debian/templates/temp.headers.plain/postinst +++ linux-2.6-2.6.32/debian/templates/temp.headers.plain/postinst @@ -0,0 +1,26 @@ +#!/usr/bin/perl +# Author: Michael Gilbert +# Origin: Stripped down version of the linux-headers postinst from Ubuntu's +# 2.6.32-14-generic kernel, which was itself derived from a +# Debian linux-image postinst script. + +$|=1; +my $version = "=V"; + +if (-d "/etc/kernel/header_postinst.d") { + print STDERR "Examining /etc/kernel/header_postinst.d.\n"; + system ("run-parts --verbose --exit-on-error --arg=$version " . + "/etc/kernel/header_postinst.d") && + die "Failed to process /etc/kernel/header_postinst.d"; +} + +if (-d "/etc/kernel/header_postinst.d/$version") { + print STDERR "Examining /etc/kernel/header_postinst.d/$version.\n"; + system ("run-parts --verbose --exit-on-error --arg=$version " . + "/etc/kernel/header_postinst.d/$version") && + die "Failed to process /etc/kernel/header_postinst.d/$version"; +} + +exit 0; + +__END__