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
--depth
=1 git
://git.qemu-project.org
/qemu.git
-b v2.6
.0 ${KVMDIR}
25 tar czf
${KVMSRC} --exclude CVS
--exclude .git
--exclude .svn
${KVMDIR}
28 deb
${DEBS} kvm
: ${KVMSRC}
32 cp
-a debian
${KVMDIR}/debian
33 echo
"git clone git://git.proxmox.com/git/pve-qemu-kvm.git\\ngit checkout ${GITVERSION}" > ${KVMDIR}/debian
/SOURCE
35 sed
-i
's/^pkgversion="".*/pkgversion="${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}"/' ${KVMDIR}/configure
36 cd
${KVMDIR}; dpkg-buildpackage
-b
-rfakeroot
-us
-uc
37 lintian
${DEBS} || true
40 upload
: ${DEBS} ${KVMDIR}-src.
tar.gz
41 umount
/pve
/${RELEASE}; mount
/pve
/${RELEASE} -o rw
42 mkdir
-p
/pve
/${RELEASE}/extra
43 rm -rf
/pve
/${RELEASE}/extra
/Packages
*
44 rm -rf
/pve
/${RELEASE}/extra
/${KVMPACKAGE}_
*.deb
45 rm -rf
/pve
/${RELEASE}/extra
/${KVMPACKAGE}-dbg_
*.deb
46 cp
${DEBS} /pve
/${RELEASE}/extra
47 cd
/pve
/${RELEASE}/extra
; dpkg-scanpackages .
/dev
/null | gzip
-9c
> Packages.gz
48 umount
/pve
/${RELEASE}; mount
/pve
/${RELEASE} -o ro
56 rm -rf
*~
${KVMDIR} ${KVMPACKAGE}_
* ${DEBS}