3 # also update debian/changelog
7 KVMPACKAGE
=pve-qemu-kvm
9 KVMSRC
=${KVMDIR}-src.
tar.gz
12 GITVERSION
:=$(shell cat .git
/refs
/heads
/master
)
15 ${KVMPACKAGE}-dbg_
${KVMVER}-${KVMPKGREL}_
${ARCH}.deb \
16 ${KVMPACKAGE}_
${KVMVER}-${KVMPKGREL}_
${ARCH}.deb
23 rm -rf
${KVMDIR} ${KVMSRC}
24 #git clone git://git.qemu-project.org/qemu.git -b stable-2.4 ${KVMDIR}
25 git clone git
://git.qemu-project.org
/qemu.git
${KVMDIR}
26 # see https://bugs.launchpad.net/qemu/+bug/1488363?comments=all
27 cd
${KVMDIR}; git checkout v2.6
.0; git revert
--no-edit b8eb5512fd8a115f164edbbe897cdf8884920ccb
28 tar czf
${KVMSRC} --exclude CVS
--exclude .git
--exclude .svn
${KVMDIR}
30 ${DEBS} kvm
: ${KVMSRC}
33 cp
-a debian
${KVMDIR}/debian
34 echo
"git clone git://git.proxmox.com/git/pve-qemu-kvm.git\\ngit checkout ${GITVERSION}" > ${KVMDIR}/debian
/SOURCE
36 sed
-i
's/^pkgversion="".*/pkgversion="${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}"/' ${KVMDIR}/configure
37 cd
${KVMDIR}; dpkg-buildpackage
-b
-rfakeroot
-us
-uc
38 lintian
${DEBS} || true
41 upload
: ${DEBS} ${KVMDIR}-src.
tar.gz
42 umount
/pve
/${RELEASE}; mount
/pve
/${RELEASE} -o rw
43 mkdir
-p
/pve
/${RELEASE}/extra
44 rm -rf
/pve
/${RELEASE}/extra
/Packages
*
45 rm -rf
/pve
/${RELEASE}/extra
/${KVMPACKAGE}_
*.deb
46 rm -rf
/pve
/${RELEASE}/extra
/${KVMPACKAGE}-dbg_
*.deb
47 cp
${DEBS} /pve
/${RELEASE}/extra
48 cd
/pve
/${RELEASE}/extra
; dpkg-scanpackages .
/dev
/null | gzip
-9c
> Packages.gz
49 umount
/pve
/${RELEASE}; mount
/pve
/${RELEASE} -o ro
57 rm -rf
*~
${KVMDIR} ${KVMPACKAGE}_
* ${DEBS}