1 include /usr
/share
/dpkg
/pkg-info.mk
4 export KERNEL_ABI
=5.0.8-1-pve
6 PACKAGE
=pve-kernel-
${KERNEL_VER}
8 GITVERSION
:=$(shell git rev-parse HEAD
)
10 KERNEL_DEB
=pve-kernel-
${KERNEL_VER}_
${DEB_VERSION_UPSTREAM_REVISION}_all.deb
11 HEADERS_DEB
=pve-headers-
${KERNEL_VER}_
${DEB_VERSION_UPSTREAM_REVISION}_all.deb
15 DEBS
=${KERNEL_DEB} ${HEADERS_DEB}
20 ${HEADERS_DEB}: ${KERNEL_DEB}
23 mkdir
-p
${BUILD_DIR}/debian
24 cp
-ar debian
/* ${BUILD_DIR}/debian
/
25 cd
${BUILD_DIR}; debian
/rules debian
/control
26 echo
"git clone git://git.proxmox.com/git/pve-kernel-meta.git\\ngit checkout ${GITVERSION}" > ${BUILD_DIR}/debian
/SOURCE
27 cd
${BUILD_DIR}; dpkg-buildpackage
-b
-uc
-us
28 lintian
${KERNEL_DEB} ${HEADERS_DEB}
32 tar cf
- ${DEBS}|ssh repoman@repo.proxmox.com
-- upload
--product pve
,pmg
--dist stretch
34 .PHONY
: clean distclean
37 rm -rf
*~
${BUILD_DIR} *.deb
*.dsc
*.changes
*.buildinfo