3 # also update debian/changelog
7 KVMPACKAGE
=pve-qemu-kvm
9 KVMSRC
=${KVMDIR}-src.
tar.gz
12 GITVERSION
:=$(shell git rev-parse master
)
15 ${KVMPACKAGE}-dbg_
${KVMVER}-${KVMPKGREL}_
${ARCH}.deb \
16 ${KVMPACKAGE}_
${KVMVER}-${KVMPKGREL}_
${ARCH}.deb
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}
33 deb
${DEBS} kvm
: ${KVMSRC}
37 tar -C
${KVMDIR} -xJf efi-roms-1182.
tar.xz
38 cp
-a debian
${KVMDIR}/debian
39 echo
"git clone git://git.proxmox.com/git/pve-qemu-kvm.git\\ngit checkout ${GITVERSION}" > ${KVMDIR}/debian
/SOURCE
41 sed
-i
's/^pkgversion="".*/pkgversion="${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}"/' ${KVMDIR}/configure
42 cd
${KVMDIR}; dpkg-buildpackage
-b
-rfakeroot
-us
-uc
43 lintian
${DEBS} || true
46 upload
: ${DEBS} ${KVMDIR}-src.
tar.gz
47 tar cf
- ${DEBS} | ssh repoman@repo.proxmox.com upload
55 rm -rf
*~
${KVMDIR} ${KVMPACKAGE}_
* ${DEBS}