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 DSC
=${PACKAGE}_
${VERSION}-${PKGREL}.dsc
13 DEB2
=${PACKAGE}-dbgsym_
${VERSION}-${PKGREL}_
${ARCH}.deb
24 rsync
-a src
/ debian
${BUILDDIR}
25 echo
"git clone git://git.proxmox.com/git/pve-firewall.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian
/SOURCE
30 $(DEB
): ${BUILDDIR} check
31 cd
${BUILDDIR}; dpkg-buildpackage
-b
-us
-uc
37 cd
${BUILDDIR}; dpkg-buildpackage
-S
-us
-uc
-d
44 .PHONY
: clean distclean
49 rm -rf
*~ debian
/*~ example
/*~
*.deb
*.changes
*.buildinfo
${BUILDDIR} ${PACKAGE}*.
tar.gz
*.dsc
53 tar cf
- $(DEBS
) | ssh repoman@repo.proxmox.com
-- upload
--product pve
--dist stretch
--arch
${ARCH}