r3265 - branches/kernel-image-2.6.11/debian
Jurij Smakov
jurij-guest@costa.debian.org
Sun, 29 May 2005 17:49:41 +0000
Author: jurij-guest
Date: 2005-05-29 17:49:40 +0000 (Sun, 29 May 2005)
New Revision: 3265
Modified:
branches/kernel-image-2.6.11/debian/rules
Log:
Added patch-debian target, creating the
linux-patch-debian package.
Modified: branches/kernel-image-2.6.11/debian/rules
===================================================================
--- branches/kernel-image-2.6.11/debian/rules 2005-05-29 08:26:11 UTC (rev 3264)
+++ branches/kernel-image-2.6.11/debian/rules 2005-05-29 17:49:40 UTC (rev 3265)
@@ -105,6 +105,35 @@
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