1 include /usr
/share
/dpkg
/pkg-info.mk
2 include /usr
/share
/dpkg
/architecture.mk
7 BUILDSRC
:= $(PACKAGE
)-$(DEB_VERSION_UPSTREAM
)
9 DEB_BASE
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
)
10 DEB1
=$(DEB_BASE
)_
$(DEB_BUILD_ARCH
).deb
11 DEB2
=$(PACKAGE
)-dev_
$(DEB_VERSION_UPSTREAM_REVISION
)_
$(DEB_BUILD_ARCH
).deb \
12 $(PACKAGE
)-dbgsym_
$(DEB_VERSION_UPSTREAM_REVISION
)_
$(DEB_BUILD_ARCH
).deb
15 ORIG_SRC_TAR
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM
).orig.
tar.gz
22 test -f
"$(SRCDIR)/debian/changelog" || git submodule update
--init
24 $(BUILDSRC
): lxc debian config | submodule
26 cp
-a
$(SRCDIR
) $(BUILDSRC
)
27 cp
-a debian
$(BUILDSRC
)/debian
28 mkdir
$(BUILDSRC
)/debian
/config
29 for i in config
/*.conf.in
; do \
30 sed
-e
's|@LXCTEMPLATECONFIG@|/usr/share/lxc/config|g' $$i > $(BUILDSRC
)/debian
/$${i
%.in
} ; \
32 echo
"git clone git://git.proxmox.com/git/lxc.git\\ngit checkout $(shell git rev-parse HEAD)" > $(BUILDSRC
)/debian
/SOURCE
39 cd
$(BUILDSRC
); dpkg-buildpackage
-b
-us
-uc
42 $(ORIG_SRC_TAR
): $(BUILDSRC
)
43 tar czf
$(ORIG_SRC_TAR
) --exclude
="$(BUILDSRC)/debian" $(BUILDSRC
)
47 $(DSC
): $(ORIG_SRC_TAR
)
49 cd
$(BUILDSRC
); dpkg-buildpackage
-S
-us
-uc
-d
57 tar cf
- $(DEBS
) | ssh repoman@repo.proxmox.com upload
--product pve
--dist bookworm
63 rm -rf
$(BUILDSRC
) $(PACKAGE
)-[0-9]*/ $(ORIG_SRC_TAR
) *.deb
*.dsc
$(PACKAGE
)*.debian.
tar.
[gx
]z
*.changes
*.dsc
*.buildinfo
*.build