3 # also update debian/changelog
7 KVMPACKAGE
=pve-qemu-kvm
9 KVMSRC
=${KVMDIR}-src.
tar.gz
12 GITVERSION
:=$(shell git rev-parse master
)
14 DEB
=${KVMPACKAGE}_
${KVMVER}-${KVMPKGREL}_
${ARCH}.deb
15 DEB_DBG
=${KVMPACKAGE}-dbg_
${KVMVER}-${KVMPKGREL}_
${ARCH}.deb
16 DEBS
=$(DEB
) $(DEB_DBG
)
24 @echo
"--- TODO when updating to a new release: ---"
25 @echo
"--- Check if efi-roms-1182.tar.xz is still required. ---"
28 rm -rf
${KVMDIR} ${KVMSRC}
29 git clone
--depth
=1 git
://git.qemu-project.org
/qemu.git
-b v
${KVMVER} ${KVMDIR}
30 tar czf
${KVMSRC} --exclude CVS
--exclude .git
--exclude .svn
${KVMDIR}
39 tar -C
${KVMDIR} -xJf efi-roms-1182.
tar.xz
40 cp
-a debian
${KVMDIR}/debian
41 echo
"git clone git://git.proxmox.com/git/pve-qemu-kvm.git\\ngit checkout ${GITVERSION}" > ${KVMDIR}/debian
/SOURCE
43 sed
-i
's/^pkgversion="".*/pkgversion="${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}"/' ${KVMDIR}/configure
44 cd
${KVMDIR}; dpkg-buildpackage
-b
-rfakeroot
-us
-uc
45 lintian
${DEBS} || true
48 upload
: ${DEBS} ${KVMDIR}-src.
tar.gz
49 tar cf
- ${DEBS} | ssh repoman@repo.proxmox.com upload
57 rm -rf
*~
${KVMDIR} ${KVMPACKAGE}_
* ${DEBS}