[pve-devel] [PATCH kernel 1/2] add pve-headers meta-package
Fabian Grünbichler
f.gruenbichler at proxmox.com
Mon Jun 13 13:49:59 CEST 2016
---
Makefile | 19 ++++++++++++++++---
proxmox-ve/control-headers | 11 +++++++++++
2 files changed, 27 insertions(+), 3 deletions(-)
create mode 100644 proxmox-ve/control-headers
diff --git a/Makefile b/Makefile
index 46312e0..549d16a 100644
--- a/Makefile
+++ b/Makefile
@@ -81,11 +81,13 @@ DST_DEB=${PACKAGE}_${KERNEL_VER}-${PKGREL}_${ARCH}.deb
HDR_DEB=${HDRPACKAGE}_${KERNEL_VER}-${PKGREL}_${ARCH}.deb
PVEPKG=proxmox-ve
PVE_DEB=${PVEPKG}_${RELEASE}-${PKGREL}_all.deb
+PVEHDRPKG=pve-headers
+PVE_HDR_DEB=${PVEHDRPKG}_${RELEASE}-${PKGREL}_all.deb
LINUX_TOOLS_PKG=linux-tools-4.4
LINUX_TOOLS_DEB=${LINUX_TOOLS_PKG}_${KERNEL_VER}-${PKGREL}_amd64.deb
-all: check_gcc ${DST_DEB} ${FW_DEB} ${HDR_DEB} ${PVE_DEB} ${LINUX_TOOLS_DEB}
+all: check_gcc ${DST_DEB} ${FW_DEB} ${HDR_DEB} ${PVE_DEB} ${PVE_HDR_DEB} ${LINUX_TOOLS_DEB}
${PVE_DEB} pve: proxmox-ve/control proxmox-ve/postinst
rm -rf proxmox-ve/data
@@ -102,6 +104,17 @@ ${PVE_DEB} pve: proxmox-ve/control proxmox-ve/postinst
gzip --best proxmox-ve/data/usr/share/doc/${PVEPKG}/changelog.Debian
dpkg-deb --build proxmox-ve/data ${PVE_DEB}
+${PVE_HDR_DEB} pve-headers: proxmox-ve/control-headers
+ rm -rf proxmox-ve/data
+ mkdir -p proxmox-ve/data/DEBIAN
+ mkdir -p proxmox-ve/data/usr/share/doc/${PVEHDRPKG}/
+ sed -e 's/@KVNAME@/${KVNAME}/' -e 's/@KERNEL_VER@/${KERNEL_VER}/' -e 's/@RELEASE@/${RELEASE}/' -e 's/@PKGREL@/${PKGREL}/' <proxmox-ve/control-headers >proxmox-ve/data/DEBIAN/control
+ echo "git clone git://git.proxmox.com/git/pve-kernel-4.0.git\\ngit checkout ${GITVERSION}" > proxmox-ve/data/usr/share/doc/${PVEHDRPKG}/SOURCE
+ install -m 0644 proxmox-ve/copyright proxmox-ve/data/usr/share/doc/${PVEHDRPKG}
+ install -m 0644 proxmox-ve/changelog.Debian proxmox-ve/data/usr/share/doc/${PVEHDRPKG}
+ gzip --best proxmox-ve/data/usr/share/doc/${PVEHDRPKG}/changelog.Debian
+ dpkg-deb --build proxmox-ve/data ${PVE_HDR_DEB}
+
# see https://wiki.ubuntu.com/Kernel/Dev/KernelGitGuide
.PHONY: download
download:
@@ -415,7 +428,7 @@ ${FW_DEB} fw: control.firmware linux-firmware.git/WHENCE dvb-firmware.git/README
dpkg-deb --build fwdata ${FW_DEB}
.PHONY: upload
-upload: ${DST_DEB} ${HDR_DEB} ${FW_DEB} ${PVE_DEB} ${LINUX_TOOLS_DEB}
+upload: ${DST_DEB} ${HDR_DEB} ${FW_DEB} ${PVE_DEB} ${PVE_HDR_DEB} ${LINUX_TOOLS_DEB}
umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
mkdir -p /pve/${RELEASE}/extra
mkdir -p /pve/${RELEASE}/install
@@ -425,7 +438,7 @@ upload: ${DST_DEB} ${HDR_DEB} ${FW_DEB} ${PVE_DEB} ${LINUX_TOOLS_DEB}
rm -rf /pve/${RELEASE}/extra/linux-tools-*.deb
rm -rf /pve/${RELEASE}/extra/pve-firmware*.deb
rm -rf /pve/${RELEASE}/extra/Packages*
- cp ${DST_DEB} ${FW_DEB} ${HDR_DEB} ${PVE_DEB} ${LINUX_TOOLS_DEB} /pve/${RELEASE}/extra
+ cp ${DST_DEB} ${FW_DEB} ${HDR_DEB} ${PVE_DEB} ${PVE_HDR_DEB} ${LINUX_TOOLS_DEB} /pve/${RELEASE}/extra
cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
diff --git a/proxmox-ve/control-headers b/proxmox-ve/control-headers
new file mode 100644
index 0000000..3ab042b
--- /dev/null
+++ b/proxmox-ve/control-headers
@@ -0,0 +1,11 @@
+Package: pve-headers
+Version: @RELEASE at -@PKGREL@
+Architecture: all
+Section: admin
+Priority: optional
+Depends: pve-headers- at KVNAME@
+Maintainer: Proxmox Support Team <support at proxmox.com>
+Description: The Proxmox VE Kernel Headers
+ This is a virtual package which will install the kernel headers
+ for the latest available proxmox kernel from the @KERNEL_VER@
+ series.
--
2.1.4
More information about the pve-devel
mailing list