6 BUILDSRC
:= $(SRCDIR
).tmp
8 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
9 GITVERSION
:=$(shell git rev-parse HEAD
)
11 DEB1
=${PACKAGE}_
${LXCVER}-${DEBREL}_
${ARCH}.deb
12 DEB2
=${PACKAGE}-dev_
${LXCVER}-${DEBREL}_
${ARCH}.deb \
13 ${PACKAGE}-dbgsym_
${LXCVER}-${DEBREL}_
${ARCH}.deb
21 test -f
"${SRCDIR}/debian/changelog" || git submodule update
--init
30 cp
-a
$(SRCDIR
)/* $(BUILDSRC
)/
31 cp
-a debian
$(BUILDSRC
)/debian
32 mkdir
$(BUILDSRC
)/debian
/config
33 for i in config
/*.conf.in
; do \
34 sed
-e
's|@LXCTEMPLATECONFIG@|/usr/share/lxc/config|g' $$i > $(BUILDSRC
)/debian
/$${i
%.in
} ; \
36 echo
"git clone git://git.proxmox.com/git/lxc.git\\ngit checkout $(GITVERSION)" > $(BUILDSRC
)/debian
/SOURCE
37 cd
$(BUILDSRC
); dpkg-buildpackage
-rfakeroot
-b
-us
-uc
40 .PHONY
: update-template-configs
41 update-template-configs
:
42 test -d lxc-templates || git clone https
://github.com
/lxc
/lxc-templates lxc-templates
43 cd lxc-templates
&& git pull
45 cp
-R lxc-templates
/config config
46 rm -f config
/*.am config
/*.m4
51 tar cf
- ${DEBS} | ssh repoman@repo.proxmox.com upload
--product pve
--dist stretch
57 rm -rf
$(BUILDSRC
) *_
${ARCH}.deb
*.changes
*.dsc
*.buildinfo