-RELEASE=2.3
+RELEASE=4.1
# also update debian/changelog
-KVMVER=1.4
-KVMPKGREL=5
+KVMVER=2.4
+KVMPKGREL=18
KVMPACKAGE=pve-qemu-kvm
KVMDIR=qemu-kvm
KVMSRC=${KVMDIR}-src.tar.gz
ARCH=amd64
+GITVERSION:=$(shell cat .git/refs/heads/master)
-KVM_DEB=${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}_${ARCH}.deb
+DEBS= \
+${KVMPACKAGE}-dbg_${KVMVER}-${KVMPKGREL}_${ARCH}.deb \
+${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}_${ARCH}.deb
-all: ${KVM_DEB} ${KVMSRC}
+
+all: ${DEBS}
.PHONY: download
download:
rm -rf ${KVMDIR} ${KVMSRC}
- git clone git://git.qemu-project.org/qemu.git -b master ${KVMDIR}
- cd ${KVMDIR}; git checkout -b local v1.4.0
+ #git clone git://git.qemu-project.org/qemu.git -b stable-2.4 ${KVMDIR}
+ git clone git://git.qemu-project.org/qemu.git ${KVMDIR}
+ # see https://bugs.launchpad.net/qemu/+bug/1488363?comments=all
+ cd ${KVMDIR}; git checkout v2.4.1; git revert --no-edit b8eb5512fd8a115f164edbbe897cdf8884920ccb
tar czf ${KVMSRC} --exclude CVS --exclude .git --exclude .svn ${KVMDIR}
-${KVM_DEB} kvm: ${KVMSRC}
+${DEBS} kvm: ${KVMSRC}
rm -rf ${KVMDIR}
tar xf ${KVMSRC}
cp -a debian ${KVMDIR}/debian
+ echo "git clone git://git.proxmox.com/git/pve-qemu-kvm.git\\ngit checkout ${GITVERSION}" > ${KVMDIR}/debian/SOURCE
+ # set package version
+ sed -i 's/^pkgversion="".*/pkgversion="${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}"/' ${KVMDIR}/configure
cd ${KVMDIR}; dpkg-buildpackage -b -rfakeroot -us -uc
- lintian ${KVM_DEB} || true
+ lintian ${DEBS} || true
.PHONY: upload
-upload: ${KVM_DEB} ${KVMDIR}-src.tar.gz
+upload: ${DEBS} ${KVMDIR}-src.tar.gz
umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
mkdir -p /pve/${RELEASE}/extra
rm -rf /pve/${RELEASE}/extra/Packages*
rm -rf /pve/${RELEASE}/extra/${KVMPACKAGE}_*.deb
- cp ${KVM_DEB} /pve/${RELEASE}/extra
+ rm -rf /pve/${RELEASE}/extra/${KVMPACKAGE}-dbg_*.deb
+ cp ${DEBS} /pve/${RELEASE}/extra
cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
.PHONY: clean
clean:
- rm -rf *~ ${KVMDIR} ${KVMPACKAGE}_*
+ rm -rf *~ ${KVMDIR} ${KVMPACKAGE}_* ${DEBS}
.PHONY: dinstall
-dinstall: ${KVM_DEB}
- dpkg -i ${KVM_DEB}
+dinstall: ${DEBS}
+ dpkg -i ${DEBS}