1 include /usr
/share
/dpkg
/pkg-info.mk
2 include /usr
/share
/dpkg
/architecture.mk
7 BUILDDIR ?
= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
8 ORIG_SRC_TAR
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM
).orig.
tar.gz
10 GITVERSION
:=$(shell git rev-parse HEAD
)
12 DSC
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM_REVISION
).dsc
13 DEB
=${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}_
${DEB_BUILD_ARCH}.deb
14 DBGDEB
=${PACKAGE}-dbgsym_
${DEB_VERSION_UPSTREAM_REVISION}_
${DEB_BUILD_ARCH}.deb
21 test -f
"${SRCDIR}/README" || git submodule update
--init
22 ${SRCDIR}/README
: submodule
24 $(BUILDDIR
): $(SRCDIR
)/README debian
26 rsync
-a
$(SRCDIR
)/ debian
$(BUILDDIR
)
27 echo
"git clone git://git.proxmox.com/git/lxcfs.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR
)/debian
/SOURCE
33 cd
$(BUILDDIR
); dpkg-buildpackage
-rfakeroot
-b
-us
-uc
36 $(ORIG_SRC_TAR
): $(BUILDDIR
)
37 tar czf
$(ORIG_SRC_TAR
) -C
$(BUILDDIR
) .
41 $(DSC
): $(ORIG_SRC_TAR
) $(BUILDDIR
)
43 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-us
-uc
-d
48 tar cf
- ${DEBS} | ssh repoman@repo.proxmox.com upload
--product pve
--dist bookworm
50 .PHONY
: clean distclean
52 rm -rf
$(PACKAGE
)-[0-9]*/ $(ORIG_SRC_TAR
) *.deb
*.dsc
$(PACKAGE
)*.debian.
tar.
[gx
]z
*.changes
*.dsc
*.buildinfo
*.build
55 git submodule deinit
--all