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