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 libvotequorum8_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
24 libcfg-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
25 libcmap-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
26 libcorosync-common-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
27 libcpg-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
28 libquorum-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
29 libsam-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
30 libvotequorum-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
33 corosync-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
34 corosync-notifyd-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
35 libcfg6-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
36 libcmap4-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
37 libcorosync-common4-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
38 libcpg4-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
39 libquorum5-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
40 libsam4-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
41 libvotequorum8-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
43 DEBS
=${MAIN_DEB} ${OTHER_DEBS} ${DBG_DEBS}
45 DSC
=corosync-pve_
${CSVERSION}-${CSRELEASE}.dsc
50 ${CSDIR}: ${CSSRC} patches changelog.Debian
53 tar -C
$@.tmp
--strip-components
=1 -xf
${CSSRC}
54 mv
$@.tmp
/debian
/changelog
$@.tmp
/debian
/changelog.org
55 cat changelog.Debian
$@.tmp
/debian
/changelog.org
> $@.tmp
/debian
/changelog
56 cd
$@.tmp
; ln
-s ..
/patches patches
57 cd
$@.tmp
; quilt push
-a
58 cd
$@.tmp
; rm -rf .
pc .
/patches
63 ${OTHER_DEBS} ${DBG_DEBS}: ${MAIN_DEB}
65 cd
${CSDIR}; dpkg-buildpackage
-b
-us
-uc
70 cd
${CSDIR}; dpkg-buildpackage
-S
-us
-uc
-d
-nc
74 rm -rf
${CSSRC} ${CSSRC}.tmp
${CSDIR}
75 git clone https
://salsa.debian.org
/ha-team
/corosync.git
-b debian
/${CSVERSION}-${DEBRELEASE} ${CSDIR}
76 tar czf
${CSSRC}.tmp
${CSDIR}
77 mv
${CSSRC}.tmp
${CSSRC}
81 tar cf
- ${DEBS} | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
--dist stretch
--arch
${DEB_BUILD_ARCH}
87 rm -rf
*.deb
*.changes
*.dsc
*.buildinfo
${CSDIR} *.debian.
tar.xz
88 find .
-name
'*~' -exec
rm {} ';'