6 BUILDDIR ?
= ${PACKAGE}-${VERSION}
8 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
9 GITVERSION
:=$(shell git rev-parse HEAD
)
11 DEB
=${PACKAGE}_
${VERSION}-${PKGREL}_
${ARCH}.deb
12 DEB2
=${PACKAGE}-dbgsym_
${VERSION}-${PKGREL}_
${ARCH}.deb
23 rsync
-a src
/ debian
${BUILDDIR}
24 echo
"git clone git://git.proxmox.com/git/pve-firewall.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian
/SOURCE
29 $(DEB
): ${BUILDDIR} check
30 cd
${BUILDDIR}; dpkg-buildpackage
-b
-us
-uc
37 .PHONY
: clean distclean
42 rm -rf
*~ debian
/*~ example
/*~
*.deb
*.changes
*.buildinfo
${BUILDDIR} ${PACKAGE}-*.
tar.gz
46 tar cf
- $(DEBS
) | ssh repoman@repo.proxmox.com
-- upload
--product pve
--dist stretch
--arch
${ARCH}