1 include /usr
/share
/dpkg
/pkg-info.mk
2 include /usr
/share
/dpkg
/architecture.mk
6 CSVERSION
=$(DEB_VERSION_UPSTREAM
)
8 BUILDDIR
=$(PACKAGE
)-$(CSVERSION
)
9 ORIG_SRC_TAR
=$(PACKAGE
)_
$(DEB_VERSION_UPSTREAM
).orig.
tar.gz
12 GITVERSION
:=$(shell git rev-parse HEAD
)
14 DSC
=$(PACKAGE
)_
$(DEB_VERSION
).dsc
15 MAIN_DEB
=corosync_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
18 corosync-notifyd_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
19 corosync-doc_
$(DEB_VERSION
)_all.deb \
20 libcfg7_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
21 libcmap4_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
22 libcorosync-common4_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
23 libcpg4_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
24 libquorum5_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
25 libsam4_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
26 libvotequorum8_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
27 libcfg-dev_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
28 libcmap-dev_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
29 libcorosync-common-dev_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
30 libcpg-dev_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
31 libquorum-dev_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
32 libsam-dev_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
33 libvotequorum-dev_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
36 corosync-dbgsym_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
37 corosync-notifyd-dbgsym_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
38 libcfg7-dbgsym_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
39 libcmap4-dbgsym_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
40 libcorosync-common4-dbgsym_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
41 libcpg4-dbgsym_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
42 libquorum5-dbgsym_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
43 libsam4-dbgsym_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
44 libvotequorum8-dbgsym_
$(DEB_VERSION
)_
$(DEB_BUILD_ARCH
).deb \
46 DEBS
=$(MAIN_DEB
) $(OTHER_DEBS
) $(DBG_DEBS
)
51 $(BUILDDIR
): submodule debian
/changelog
59 $(OTHER_DEBS
) $(DBG_DEBS
): $(MAIN_DEB
)
60 $(MAIN_DEB
): $(BUILDDIR
)
61 cd
$(BUILDDIR
); dpkg-buildpackage
-b
-us
-uc
63 $(ORIG_SRC_TAR
): $(BUILDDIR
)
64 tar czf
$(ORIG_SRC_TAR
) -C
$(BUILDDIR
) .
68 $(DSC
): $(ORIG_SRC_TAR
) $(BUILDDIR
)
69 cd
$(BUILDDIR
); dpkg-buildpackage
-S
-us
-uc
-d
74 test -f
"$(CSSRC)/INSTALL" || git submodule update
--init
$(CSSRC
)
78 tar cf
- $(DEBS
) | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
--dist bookworm
--arch
$(DEB_BUILD_ARCH
)
83 rm -rf
*.deb
*.changes
*.dsc
*.buildinfo
$(BUILDDIR
)
84 find .
-name
'*~' -exec
rm () ';'