6 BUILDSRC
:= $(PACKAGE
)-$(LXCVER
)
8 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
10 DEB_BASE
=$(PACKAGE
)_
$(LXCVER
)-$(DEBREL
)
11 DEB1
=$(DEB_BASE
)_
$(ARCH
).deb
12 DEB2
=$(PACKAGE
)-dev_
$(LXCVER
)-$(DEBREL
)_
$(ARCH
).deb \
13 $(PACKAGE
)-dbgsym_
$(LXCVER
)-$(DEBREL
)_
$(ARCH
).deb
16 TARGZ
=$(DEB_BASE
).
tar.gz
23 test -f
"$(SRCDIR)/debian/changelog" || git submodule update
--init
25 $(BUILDSRC
): lxc debian config | submodule
27 cp
-a
$(SRCDIR
) $(BUILDSRC
)
28 cp
-a debian
$(BUILDSRC
)/debian
29 mkdir
$(BUILDSRC
)/debian
/config
30 for i in config
/*.conf.in
; do \
31 sed
-e
's|@LXCTEMPLATECONFIG@|/usr/share/lxc/config|g' $$i > $(BUILDSRC
)/debian
/$${i
%.in
} ; \
33 echo
"git clone git://git.proxmox.com/git/lxc.git\\ngit checkout $(shell git rev-parse HEAD)" > $(BUILDSRC
)/debian
/SOURCE
40 cd
$(BUILDSRC
); dpkg-buildpackage
-b
-us
-uc
47 cd
$(BUILDSRC
); dpkg-buildpackage
-S
-us
-uc
-d
-nc
52 tar cf
- $(DEBS
) | ssh repoman@repo.proxmox.com upload
--product pve
--dist stretch
58 rm -rf
$(BUILDSRC
) *_
$(ARCH
).deb
*_
$(ARCH
).dsc
*.
tar.gz
*.changes
*.dsc
*.buildinfo