1 include /usr
/share
/dpkg
/pkg-info.mk
5 GITVERSION
:=$(shell git rev-parse HEAD
)
6 BUILDDIR ?
= $(PACKAGE
)-$(DEB_VERSION_UPSTREAM
)
8 DEB
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
)_all.deb
9 DSC
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
).dsc
19 rsync
-a src
/ debian
$(BUILDDIR
)
20 echo
"git clone git://git.proxmox.com/git/pve-container\\ngit checkout $(GITVERSION)" > $(BUILDDIR
)/debian
/SOURCE
25 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
32 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-us
-uc
-d
43 rm -f
*.deb
*.changes
*.buildinfo
*.dsc
*.
tar.?z
49 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
51 tar cf
- $(DEB
) | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
--dist $(UPLOAD_DIST
)