1 # also update debian/changelog
5 KVMPACKAGE
= pve-qemu-kvm
7 BUILDSRC
= $(KVMSRC
).tmp
11 ARCH
:= $(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
12 GITVERSION
:= $(shell git rev-parse master
)
14 DEB
= ${KVMPACKAGE}_
${KVMVER}-${KVMPKGREL}_
${ARCH}.deb
15 DEB_DBG
= ${KVMPACKAGE}-dbg_
${KVMVER}-${KVMPKGREL}_
${ARCH}.deb
16 DEBS
= $(DEB
) $(DEB_DBG
)
23 test -f
"${SRCDIR}/debian/changelog" || git submodule update
--init
32 cp
-a
$(KVMSRC
)/* $(BUILDSRC
)/
33 tar -C
$(BUILDSRC
) -xJf efi-roms-1182.
tar.xz
34 cp
-a debian
$(BUILDSRC
)/debian
35 echo
"git clone git://git.proxmox.com/git/pve-qemu-kvm.git\\ngit checkout $(GITVERSION)" > $(BUILDSRC
)/debian
/SOURCE
37 sed
-i
's/^pkgversion="".*/pkgversion="${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}"/' $(BUILDSRC
)/configure
38 cd
$(BUILDSRC
); dpkg-buildpackage
-b
-rfakeroot
-us
-uc
39 lintian
$(DEBS
) || true
43 tar cf
- $(DEBS
) | ssh repoman@repo.proxmox.com upload
--produce pve
--dist jessie
50 rm -rf
$(BUILDSRC
) $(KVMPACKAGE
)_
* $(DEBS
) *.buildinfo