From 758134b5b89beecc5a34a50b812d45cd31fef286 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 30 May 2018 08:01:14 +0200 Subject: [PATCH] d/control: automatically replace linux tools maj.min version Signed-off-by: Thomas Lamprecht --- debian/control.in | 4 ++-- debian/rules | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/control.in b/debian/control.in index fd4b49e..997c682 100644 --- a/debian/control.in +++ b/debian/control.in @@ -17,14 +17,14 @@ Build-Conflicts: pve-headers-@KVNAME@, Vcs-Git: git://git.proxmox.com/git/pve-kernel Vcs-Browser: https://git.proxmox.com/?p=pve-kernel.git -Package: linux-tools-4.13 +Package: linux-tools-@KVMAJMIN@ Architecture: any Section: devel Priority: optional Depends: linux-base, ${misc:Depends}, ${shlibs:Depends}, -Description: Linux kernel version specific tools for version 4.13 +Description: Linux kernel version specific tools for version @KVMAJMIN@ This package provides the architecture dependent parts for kernel version locked tools (such as perf and x86_energy_perf_policy) diff --git a/debian/rules b/debian/rules index 61954ba..96373e5 100755 --- a/debian/rules +++ b/debian/rules @@ -63,7 +63,7 @@ debian/control: $(wildcard debian/*.in) chmod +x debian/${PVE_KERNEL_PKG}.postrm chmod +x debian/${PVE_KERNEL_PKG}.postinst chmod +x debian/${PVE_HEADER_PKG}.postinst - sed -e 's/@KVNAME@/${KVNAME}/g' < debian/control.in > debian/control + sed -e 's/@KVNAME@/${KVNAME}/g' -e 's/@KVMAJMIN@/${KERNEL_MAJMIN}/g' < debian/control.in > debian/control build: .compile_mark .tools_compile_mark .modules_compile_mark