From e4c7b4be9721316bc9d7e74f01344910e2921acc Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sun, 28 Mar 2021 21:07:30 +0200 Subject: [PATCH] Move Debian templates to separate directory --- debian/rules | 13 ++++++++----- debian/source/format | 1 + debian/{ => templates}/control.in | 0 debian/{ => templates}/pve-headers.postinst.in | 0 debian/{ => templates}/pve-kernel.postinst.in | 0 debian/{ => templates}/pve-kernel.postrm.in | 0 debian/{ => templates}/pve-kernel.prerm.in | 0 7 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 debian/source/format rename debian/{ => templates}/control.in (100%) rename debian/{ => templates}/pve-headers.postinst.in (100%) rename debian/{ => templates}/pve-kernel.postinst.in (100%) rename debian/{ => templates}/pve-kernel.postrm.in (100%) rename debian/{ => templates}/pve-kernel.prerm.in (100%) diff --git a/debian/rules b/debian/rules index 49d44c9..37582dc 100755 --- a/debian/rules +++ b/debian/rules @@ -23,15 +23,18 @@ KERNEL_SRC_COPY=${KERNEL_SRC}_tmp PVE_BUILD_CC ?= ${CC} debian/control: $(wildcard debian/*.in) - sed -e 's/@@KVNAME@@/${KVNAME}/g' < debian/pve-kernel.prerm.in > debian/${PVE_KERNEL_PKG}.prerm - sed -e 's/@@KVNAME@@/${KVNAME}/g' < debian/pve-kernel.postrm.in > debian/${PVE_KERNEL_PKG}.postrm - sed -e 's/@@KVNAME@@/${KVNAME}/g' < debian/pve-kernel.postinst.in > debian/${PVE_KERNEL_PKG}.postinst - sed -e 's/@@KVNAME@@/${KVNAME}/g' < debian/pve-headers.postinst.in > debian/${PVE_HEADER_PKG}.postinst + sed -e 's/@@KVNAME@@/${KVNAME}/g' < debian/templates/pve-kernel.prerm.in > debian/${PVE_KERNEL_PKG}.prerm + sed -e 's/@@KVNAME@@/${KVNAME}/g' < debian/templates/pve-kernel.postrm.in > debian/${PVE_KERNEL_PKG}.postrm + sed -e 's/@@KVNAME@@/${KVNAME}/g' < debian/templates/pve-kernel.postinst.in > debian/${PVE_KERNEL_PKG}.postinst + sed -e 's/@@KVNAME@@/${KVNAME}/g' < debian/templates/pve-headers.postinst.in > debian/${PVE_HEADER_PKG}.postinst chmod +x debian/${PVE_KERNEL_PKG}.prerm 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' -e 's/@KVMAJMIN@/${KERNEL_MAJMIN}/g' < debian/control.in > debian/control + sed -e 's/@KVNAME@/${KVNAME}/g' -e 's/@KVMAJMIN@/${KERNEL_MAJMIN}/g' < debian/templates/control.in > debian/control + +debian/SOURCE: + echo "git clone git@github.com:fabianishere/pve-kernel-edge.git\\ngit checkout $(shell git rev-parse HEAD)" > $@ build: .compile_mark .tools_compile_mark .modules_compile_mark diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/control.in b/debian/templates/control.in similarity index 100% rename from debian/control.in rename to debian/templates/control.in diff --git a/debian/pve-headers.postinst.in b/debian/templates/pve-headers.postinst.in similarity index 100% rename from debian/pve-headers.postinst.in rename to debian/templates/pve-headers.postinst.in diff --git a/debian/pve-kernel.postinst.in b/debian/templates/pve-kernel.postinst.in similarity index 100% rename from debian/pve-kernel.postinst.in rename to debian/templates/pve-kernel.postinst.in diff --git a/debian/pve-kernel.postrm.in b/debian/templates/pve-kernel.postrm.in similarity index 100% rename from debian/pve-kernel.postrm.in rename to debian/templates/pve-kernel.postrm.in diff --git a/debian/pve-kernel.prerm.in b/debian/templates/pve-kernel.prerm.in similarity index 100% rename from debian/pve-kernel.prerm.in rename to debian/templates/pve-kernel.prerm.in