3 SIMPACKAGE
=pve-ha-simulator
6 GITVERSION
:=$(shell cat .git
/refs
/heads
/master
)
8 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
10 DEB
=${PACKAGE}_
${VERSION}-${PKGREL}_
${ARCH}.deb
11 SIMDEB
=${SIMPACKAGE}_
${VERSION}-${PKGREL}_all.deb
16 .PHONY
: dinstall simdeb
17 dinstall
: $(DEB
) $(SIMDEB
)
18 dpkg
-i
${DEB} ${SIMDEB}
27 rsync
-a simdebian
/ build
/debian
28 cp changelog.Debian build
/debian
/changelog
29 echo
"git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > build
/debian
/SOURCE
30 cd build
; dpkg-buildpackage
-rfakeroot
-b
-us
-uc
39 rsync
-a debian
/ build
/debian
40 cp changelog.Debian build
/debian
/changelog
41 echo
"git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > build
/debian
/SOURCE
42 cd build
; dpkg-buildpackage
-rfakeroot
-b
-us
-uc
48 rm -rf build
*.deb
${PACKAGE}-*.
tar.gz
*.changes
*.buildinfo
49 find .
-name
'*~' -exec
rm {} ';'
55 upload
: ${DEB} ${SIMDEB}
56 tar cf
- ${DEB} ${SIMDEB}|ssh repoman@repo.proxmox.com
-- upload
--product pve
--dist stretch
--arch
${ARCH}