Fix #932: passing BDRV_O_PROTOCOL breaks qcow2 on gluster
[pve-qemu-kvm.git] / Makefile
blob41069f7a26fc908040cce48e5468bd1ee4d88ba6
1 RELEASE=4.2
3 # also update debian/changelog
4 KVMVER=2.5
5 KVMPKGREL=14
7 KVMPACKAGE=pve-qemu-kvm
8 KVMDIR=qemu-kvm
9 KVMSRC=${KVMDIR}-src.tar.gz
11 ARCH=amd64
12 GITVERSION:=$(shell cat .git/refs/heads/master)
14 DEBS= \
15 ${KVMPACKAGE}-dbg_${KVMVER}-${KVMPKGREL}_${ARCH}.deb \
16 ${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}_${ARCH}.deb
19 all: ${DEBS}
21 .PHONY: download
22 download:
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.5.1; git revert --no-edit b8eb5512fd8a115f164edbbe897cdf8884920ccb
28 tar czf ${KVMSRC} --exclude CVS --exclude .git --exclude .svn ${KVMDIR}
30 ${DEBS} kvm: ${KVMSRC}
31 rm -rf ${KVMDIR}
32 tar xf ${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
35 # set package version
36 sed -i 's/^pkgversion="".*/pkgversion="${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}"/' ${KVMDIR}/configure
37 cd ${KVMDIR}; dpkg-buildpackage -b -rfakeroot -us -uc
38 lintian ${DEBS} || true
40 .PHONY: upload
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
51 .PHONY: distclean
52 distclean: clean
55 .PHONY: clean
56 clean:
57 rm -rf *~ ${KVMDIR} ${KVMPACKAGE}_* ${DEBS}
59 .PHONY: dinstall
60 dinstall: ${DEBS}
61 dpkg -i ${DEBS}