1 include /usr
/share
/dpkg
/default.mk
3 PACKAGE
=libpve-access-control
5 DEB
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
)_all.deb
6 DSC
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
).dsc
8 BUILDDIR ?
= $(PACKAGE
)-$(DEB_VERSION_UPSTREAM
)
10 GITVERSION
:=$(shell git rev-parse HEAD
)
21 cp
-a debian
$(BUILDDIR
)/
22 echo
"git clone git://git.proxmox.com/git/pve-access-control.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR
)/debian
/SOURCE
27 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
33 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-us
-uc
-d
40 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
42 tar cf
- $(DEB
) | ssh repoman@repo.proxmox.com
-- upload
--product pve
--dist $(UPLOAD_DIST
)
44 .PHONY
: clean distclean
47 rm -rf
$(PACKAGE
)-[0-9]*/
48 rm -f
*.dsc
*.deb
*.buildinfo
*.build
*.changes
$(PACKAGE
)*.
tar.
*