1 include /usr
/share
/dpkg
/architecture.mk
5 # note: 3.0.2 cherry-picked as patches!
7 CSDIR
=corosync-
${CSVERSION}
8 CSSRC
=corosync_
${CSVERSION}.orig.
tar.gz
10 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
11 GITVERSION
:=$(shell git rev-parse HEAD
)
13 MAIN_DEB
=corosync_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
16 corosync-notifyd_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
17 corosync-doc_
${CSVERSION}-${CSRELEASE}_all.deb \
18 libcfg7_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
19 libcmap4_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
20 libcorosync-common4_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
21 libcpg4_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
22 libquorum5_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
23 libsam4_
${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 libvotequorum-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
34 corosync-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
35 corosync-notifyd-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
36 libcfg7-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
37 libcmap4-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
38 libcorosync-common4-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
39 libcpg4-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
40 libquorum5-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
41 libsam4-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
42 libvotequorum8-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
44 DEBS
=${MAIN_DEB} ${OTHER_DEBS} ${DBG_DEBS}
46 DSC
=corosync-pve_
${CSVERSION}-${CSRELEASE}.dsc
51 ${CSDIR}: ${CSSRC} patches changelog.Debian
54 tar -C
$@.tmp
--strip-components
=1 -xf
${CSSRC}
55 mv
$@.tmp
/debian
/changelog
$@.tmp
/debian
/changelog.org
56 cat changelog.Debian
$@.tmp
/debian
/changelog.org
> $@.tmp
/debian
/changelog
57 cd
$@.tmp
; ln
-s ..
/patches patches
58 cd
$@.tmp
; quilt push
-a
59 cd
$@.tmp
; rm -rf .
pc .
/patches
64 ${OTHER_DEBS} ${DBG_DEBS}: ${MAIN_DEB}
66 cd
${CSDIR}; dpkg-buildpackage
-b
-us
-uc
71 cd
${CSDIR}; dpkg-buildpackage
-S
-us
-uc
-d
-nc
75 rm -rf
${CSSRC} ${CSSRC}.tmp
${CSDIR}
76 git clone https
://salsa.debian.org
/ha-team
/corosync.git
-b debian
/${CSVERSION}-${DEBRELEASE} ${CSDIR}
77 tar czf
${CSSRC}.tmp
${CSDIR}
78 mv
${CSSRC}.tmp
${CSSRC}
82 tar cf
- ${DEBS} | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
--dist buster
--arch
${DEB_BUILD_ARCH}
88 rm -rf
*.deb
*.changes
*.dsc
*.buildinfo
${CSDIR} *.debian.
tar.xz
89 find .
-name
'*~' -exec
rm {} ';'