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-qdevice_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
17 corosync-qnetd_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
18 corosync-doc_
${CSVERSION}-${CSRELEASE}_all.deb \
19 libcfg6_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
20 libcmap4_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
21 libcorosync-common4_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
22 libcpg4_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
23 libquorum5_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
24 libsam4_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
25 libtotem-pg5_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
26 libvotequorum8_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
27 libcfg-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
28 libcmap-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
29 libcorosync-common-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
30 libcpg-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
31 libquorum-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
32 libsam-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
33 libtotem-pg-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
34 libvotequorum-dev_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
37 corosync-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
38 corosync-notifyd-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
39 corosync-qdevice-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
40 corosync-qnetd-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
41 libcfg6-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
42 libcmap4-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
43 libcorosync-common4-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
44 libcpg4-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
45 libquorum5-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
46 libsam4-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
47 libtotem-pg5-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
48 libvotequorum8-dbgsym_
${CSVERSION}-${CSRELEASE}_
${DEB_BUILD_ARCH}.deb \
50 DEBS
=${MAIN_DEB} ${OTHER_DEBS} ${DBG_DEBS}
52 DSC
=corosync-pve_
${CSVERSION}-${CSRELEASE}.dsc
57 ${CSDIR}: ${CSSRC} patches changelog.Debian
60 tar -C
$@.tmp
--strip-components
=1 -xf
${CSSRC}
61 mv
$@.tmp
/debian
/changelog
$@.tmp
/debian
/changelog.org
62 cat changelog.Debian
$@.tmp
/debian
/changelog.org
> $@.tmp
/debian
/changelog
63 cd
$@.tmp
; ln
-s ..
/patches patches
64 cd
$@.tmp
; quilt push
-a
65 cd
$@.tmp
; rm -rf .
pc .
/patches
70 ${OTHER_DEBS} ${DBG_DEBS}: ${MAIN_DEB}
72 cd
${CSDIR}; dpkg-buildpackage
-b
-us
-uc
77 cd
${CSDIR}; dpkg-buildpackage
-S
-us
-uc
-d
-nc
81 rm -rf
${CSSRC} ${CSSRC}.tmp
${CSDIR}
82 git clone https
://salsa.debian.org
/ha-team
/corosync.git
-b debian
/${CSVERSION}-${DEBRELEASE} ${CSDIR}
83 tar czf
${CSSRC}.tmp
${CSDIR}
84 mv
${CSSRC}.tmp
${CSSRC}
88 tar cf
- ${DEBS} | ssh
-X repoman@repo.proxmox.com
-- upload
--product pve
--dist stretch
--arch
${DEB_BUILD_ARCH}
94 rm -rf
*.deb
*.changes
*.dsc
*.buildinfo
${CSDIR} *.debian.
tar.xz
95 find .
-name
'*~' -exec
rm {} ';'