-binary-$(PATCH_PKG): patch-stamp
- dh_testdir
- dh_testroot
- dh_installdirs -p $(PATCH_PKG)
- dh_installdocs -p $(PATCH_PKG)
-# dh_installkpatches -p $(PATCH_PKG)
- dh_install -p $(PATCH_PKG)
-
- # Install apply script
- cp $(TOP_DIR)/debian/linux-patch-lustre.apply $(TOP_DIR)/debian/$(PATCH_PKG)/usr/src/kernel-patches/lustre/scripts/apply
- chmod a+x $(TOP_DIR)/debian/$(PATCH_PKG)/usr/src/kernel-patches/lustre/scripts/apply
- set -e; for KERNEL in $(SUPPORTED_KERNELS); do \
- mkdir -p $(TOP_DIR)/debian/$(PATCH_PKG)/usr/src/kernel-patches/all/$$KERNEL/apply/; \
- ln -s ../../../lustre/scripts/apply $(TOP_DIR)/debian/$(PATCH_PKG)/usr/src/kernel-patches/all/$$KERNEL/apply/lustre; \
- done
-
- # Install unpatch script
- cp $(TOP_DIR)/debian/linux-patch-lustre.unpatch $(TOP_DIR)/debian/$(PATCH_PKG)/usr/src/kernel-patches/lustre/scripts/unpatch
- chmod a+x $(TOP_DIR)/debian/$(PATCH_PKG)/usr/src/kernel-patches/lustre/scripts/unpatch
- set -e; for KERNEL in $(SUPPORTED_KERNELS); do \
- mkdir -p $(TOP_DIR)/debian/$(PATCH_PKG)/usr/src/kernel-patches/all/$$KERNEL/unpatch/; \
- ln -s ../../../lustre/scripts/unpatch $(TOP_DIR)/debian/$(PATCH_PKG)/usr/src/kernel-patches/all/$$KERNEL/unpatch/lustre; \
- done
-
- # Install series
- cp lustre/kernel_patches/series/*.series $(TOP_DIR)/debian/$(PATCH_PKG)/usr/src/kernel-patches/lustre/series/
-
- # Install patches
- cp lustre/kernel_patches/patches/*.patch $(TOP_DIR)/debian/$(PATCH_PKG)/usr/src/kernel-patches/lustre/patches/
-
- dh_installchangelogs -p $(PATCH_PKG) lustre/ChangeLog
- dh_compress -p $(PATCH_PKG)
- dh_installdeb -p $(PATCH_PKG)
- dh_fixperms -p $(PATCH_PKG)
- dh_gencontrol -p $(PATCH_PKG)
- dh_md5sums -p $(PATCH_PKG)
- dh_builddeb -p $(PATCH_PKG)
-