1 include /usr
/share
/dpkg
/architecture.mk
6 CSDIR
=corosync-
${CSVERSION}
7 CSSRC
=corosync_
${CSVERSION}.orig.
tar.gz
9 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
10 GITVERSION
:=$(shell git rev-parse HEAD
)
12 MAIN_DEB
=corosync_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
15 corosync-notifyd_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
16 corosync-doc_
${CSVERSION}-${CSRELEASE}_all.deb \
17 libcfg6_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
18 libcmap4_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
19 libcorosync-common4_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
20 libcpg4_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
21 libquorum5_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
22 libsam4_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
23 libtotem-pg5_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
24 libvotequorum8_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
25 libcfg-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
26 libcmap-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
27 libcorosync-common-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
28 libcpg-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
29 libquorum-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
30 libsam-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
31 libtotem-pg-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
32 libvotequorum-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
35 corosync-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
36 corosync-notifyd-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
37 libcfg6-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
38 libcmap4-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
39 libcorosync-common4-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
40 libcpg4-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
41 libquorum5-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
42 libsam4-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
43 libtotem-pg5-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
44 libvotequorum8-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
46 DEBS
=${MAIN_DEB} ${OTHER_DEBS} ${DBG_DEBS}
48 DSC
=corosync-pve_
${CSVERSION}-${CSRELEASE}.dsc
53 ${CSDIR}: ${CSSRC} patches changelog.Debian
56 tar -C
$@.tmp
--strip-components
=1 -xf
${CSSRC}
57 mv
$@.tmp
/debian
/changelog
$@.tmp
/debian
/changelog.org
58 cat changelog.Debian
$@.tmp
/debian
/changelog.org
> $@.tmp
/debian
/changelog
59 cd
$@.tmp
; ln
-s ..
/patches patches
60 cd
$@.tmp
; quilt push
-a
61 cd
$@.tmp
; rm -rf .
pc .
/patches
66 ${OTHER_DEBS} ${DBG_DEBS}: ${MAIN_DEB}
68 cd
${CSDIR}; dpkg-buildpackage
-b
-us
-uc
73 cd
${CSDIR}; dpkg-buildpackage
-S
-us
-uc
-d
-nc
77 rm -rf
${CSSRC} ${CSSRC}.tmp
${CSDIR}
78 git clone https
://salsa.debian.org
/ha-team
/corosync.git
-b debian
/${CSVERSION}-${DEBRELEASE} ${CSDIR}
79 tar czf
${CSSRC}.tmp
${CSDIR}
80 mv
${CSSRC}.tmp
${CSSRC}
84 tar cf
- ${DEBS} | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
--dist stretch
--arch
${DEB_BUILD_ARCH}
90 rm -rf
*.deb
*.changes
*.dsc
*.buildinfo
${CSDIR} *.debian.
tar.xz
91 find .
-name
'*~' -exec
rm {} ';'