]> git.proxmox.com Git - pve-kernel.git/commitdiff
d/control: automatically replace linux tools maj.min version
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 May 2018 06:01:14 +0000 (08:01 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 May 2018 06:25:19 +0000 (08:25 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/control.in
debian/rules

index 30a0f9a905ab8539e2c2d3ba75dd88aaed826b32..f26984567280800ca30c4da10c58ce1671ab7464 100644 (file)
@@ -18,14 +18,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.15
+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.15
+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)
 
index ad21471a5df3a40cb108934e9f938df0b00d3ce5..65b489480ce48365517e2bd641661c0a3c1822e8 100755 (executable)
@@ -64,7 +64,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