1 include /usr
/share
/dpkg
/pkg-info.mk
2 include /usr
/share
/dpkg
/architecture.mk
6 BUILDDIR ?
= $(PACKAGE
)-$(DEB_VERSION
)
7 GITVERSION
:=$(shell git rev-parse HEAD
)
9 DEB
=$(PACKAGE
)_
$(DEB_VERSION
)_
$(DEB_HOST_ARCH
).deb
10 DSC
=$(PACKAGE
)_
$(DEB_VERSION
).dsc
11 DEB2
=$(PACKAGE
)-dbgsym_
$(DEB_VERSION
)_
$(DEB_HOST_ARCH
).deb
22 rsync
-a src
/ debian
$(BUILDDIR
)
23 echo
"git clone git://git.proxmox.com/git/pve-firewall.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR
)/debian
/SOURCE
28 $(DEB
): $(BUILDDIR
) check
29 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
35 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-us
-uc
-d
42 .PHONY
: clean distclean
47 rm -rf
*.deb
*.dsc
*.changes
*.build
*.buildinfo
$(PACKAGE
)-[0-9]*/ $(PACKAGE
)*.
tar*
50 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
52 tar cf
- $(DEBS
) | ssh repoman@repo.proxmox.com
-- upload
--product pve
--dist $(UPLOAD_DIST
) --arch
$(DEB_HOST_ARCH
)