From 3689352c23d6f7b59d30f8a756b1367ce2f95f03 Mon Sep 17 00:00:00 2001 From: Jurij Smakov Date: Sun, 29 May 2005 17:49:40 +0000 Subject: [PATCH] Added patch-debian target, creating the linux-patch-debian package. svn path=/branches/kernel-image-2.6.11/; revision=3265 --- debian/rules | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/debian/rules b/debian/rules index 6943fa5a7..fa682da94 100755 --- a/debian/rules +++ b/debian/rules @@ -105,6 +105,35 @@ debian/tree-stamp: dh_gencontrol -p$(tpkg) dh_builddeb -p$(tpkg) touch debian/tree-stamp +# +# linux-patch-debian +# +ppkg := linux-patch-debian-$(version) +pbase := /usr/src/linux-patches/all/$(version) +pfull := debian/$(ppkg)$(pbase) +pdirs := $(pbase) $(pbase)/apply $(pbase)/debian $(pbase)/unpatch +pdirs += $(pbase)/debian/series +patch-debian: debian/patch-debian-stamp +debian/patch-debian-stamp: debian/bin/apply debian/bin/unpatch + dh_testdir + dh_testroot + dh_installdirs -p$(ppkg) $(pdirs) + dh_install -p$(ppkg) debian/patches/* $(pbase)/debian +# Compatibility symlink + dh_link -p$(ppkg) /usr/src/linux-patches /usr/src/kernel-patches + sed 's/@version@/$(release)/g' debian/bin/apply > $(pfull)/apply/debian + sed 's/@upstream@/$(version)/g' debian/bin/unpatch > $(pfull)/unpatch/debian + chmod a+x $(pfull)/apply/debian $(pfull)/unpatch/debian + chmod -x $(pfull)/debian/*.patch + bzip2 -9 $(pfull)/debian/*.patch + dh_fixperms -p$(ppkg) + dh_installdocs -p$(ppkg) + dh_installchangelogs -p$(ppkg) + dh_compress -p$(ppkg) + dh_installdeb -p$(ppkg) + dh_gencontrol -p$(ppkg) + dh_builddeb -p$(ppkg) + touch debian/patch-debian-stamp unpack: debian/unpack-stamp debian/unpack-stamp: debian/patch-stamp