Added patch-debian target, creating the
linux-patch-debian package. svn path=/branches/kernel-image-2.6.11/; revision=3265
This commit is contained in:
parent
3785485770
commit
3689352c23
|
@ -105,6 +105,35 @@ debian/tree-stamp:
|
||||||
dh_gencontrol -p$(tpkg)
|
dh_gencontrol -p$(tpkg)
|
||||||
dh_builddeb -p$(tpkg)
|
dh_builddeb -p$(tpkg)
|
||||||
touch debian/tree-stamp
|
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
|
unpack: debian/unpack-stamp
|
||||||
debian/unpack-stamp: debian/patch-stamp
|
debian/unpack-stamp: debian/patch-stamp
|
||||||
|
|
Loading…
Reference in New Issue