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
17 $(BUILDDIR
): src debian
18 rm -rf
$(BUILDDIR
) $(BUILDDIR
).tmp
; mkdir
$(BUILDDIR
).tmp
19 cp
-t
$(BUILDDIR
).tmp
-a debian src
/*
20 echo
"git clone git://git.proxmox.com/git/pve-container\\ngit checkout $(GITVERSION)" >$(BUILDDIR
).tmp
/debian
/SOURCE
21 mv
$(BUILDDIR
).tmp
$(BUILDDIR
)
26 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
33 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-us
-uc
-d
43 rm -rf
$(BUILDDIR
) $(BUILDDIR
).tmp
44 rm -f
*.deb
*.changes
*.buildinfo
*.dsc
*.
tar.?z
50 upload
: UPLOAD_DIST ?
= $(DEB_DISTRIBUTION
)
52 tar cf
- $(DEB
) | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
--dist $(UPLOAD_DIST
)