]>
Commit | Line | Data |
---|---|---|
82342947 | 1 | CSVERSION=2.4.4 |
459f4daa | 2 | CSRELEASE=pve1 |
a56af624 | 3 | DEBRELEASE=3 |
930e051d | 4 | CSDIR=corosync-${CSVERSION} |
82342947 | 5 | CSSRC=corosync_${CSVERSION}.orig.tar.gz |
930e051d DM |
6 | |
7 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
459f4daa | 8 | GITVERSION:=$(shell git rev-parse HEAD) |
930e051d | 9 | |
87af17c7 FG |
10 | MAIN_DEB=corosync-pve_${CSVERSION}-${CSRELEASE}_all.deb |
11 | ||
12 | OTHER_DEBS=\ | |
571ea76e | 13 | libcorosync4-pve_${CSVERSION}-${CSRELEASE}_all.deb \ |
a56af624 FG |
14 | corosync_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ |
15 | corosync-notifyd_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
16 | corosync-qdevice_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
17 | corosync-qnetd_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
18 | corosync-doc_${CSVERSION}-${CSRELEASE}_all.deb \ | |
19 | corosync-dev_${CSVERSION}-${CSRELEASE}_all.deb \ | |
20 | libcfg6_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
21 | libcmap4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
22 | libcorosync-common4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
23 | libcpg4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
24 | libquorum5_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
25 | libsam4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
26 | libtotem-pg5_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
27 | libvotequorum8_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
28 | libcfg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
29 | libcmap-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
30 | libcorosync-common-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
31 | libcpg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
32 | libquorum-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
33 | libsam-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
34 | libtotem-pg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
87af17c7 FG |
35 | libvotequorum-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ |
36 | ||
37 | DBG_DEBS=\ | |
38 | corosync-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
39 | corosync-notifyd-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
40 | corosync-qdevice-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
41 | corosync-qnetd-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
42 | libcfg6-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
43 | libcmap4-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
44 | libcorosync-common4-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
45 | libcpg4-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
46 | libquorum5-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
47 | libsam4-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
48 | libtotem-pg5-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
49 | libvotequorum8-dbgsym_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
50 | ||
51 | DEBS=${MAIN_DEB} ${OTHER_DEBS} ${DBG_DEBS} | |
153f62cc | 52 | |
fa002c64 FG |
53 | DSC=corosync-pve_${CSVERSION}-${CSRELEASE}.dsc |
54 | ||
930e051d DM |
55 | all: ${DEBS} |
56 | echo ${DEBS} | |
57 | ||
fa002c64 FG |
58 | ${CSDIR}: ${CSSRC} patches changelog.Debian |
59 | rm -rf $@ $@.tmp | |
60 | mkdir $@.tmp | |
61 | tar -C $@.tmp --strip-components=1 -xf ${CSSRC} | |
62 | mv $@.tmp/debian/changelog $@.tmp/debian/changelog.org | |
63 | cat changelog.Debian $@.tmp/debian/changelog.org > $@.tmp/debian/changelog | |
64 | cd $@.tmp; ln -s ../patches patches | |
65 | cd $@.tmp; quilt push -a | |
66 | cd $@.tmp; rm -rf .pc ./patches | |
67 | mv $@.tmp $@ | |
68 | ||
2507e204 | 69 | .PHONY: deb |
a56af624 | 70 | deb: ${DEBS} |
87af17c7 FG |
71 | ${OTHER_DEBS} ${DBG_DEBS}: ${MAIN_DEB} |
72 | ${MAIN_DEB}: ${CSDIR} | |
a56af624 | 73 | cd ${CSDIR}; dpkg-buildpackage -b -us -uc |
930e051d | 74 | |
fa002c64 FG |
75 | .PHONY: dsc |
76 | dsc: ${DSC} | |
77 | ${DSC}: ${CSDIR} | |
78 | cd ${CSDIR}; dpkg-buildpackage -S -us -uc -d -nc | |
79 | ||
013101f0 DM |
80 | .PHONY: download |
81 | download: | |
df03257c | 82 | rm -rf ${CSSRC} ${CSSRC}.tmp ${CSDIR} |
82342947 | 83 | git clone https://salsa.debian.org/ha-team/corosync.git -b debian/${CSVERSION}-${DEBRELEASE} ${CSDIR} |
d05fb358 DM |
84 | tar czf ${CSSRC}.tmp ${CSDIR} |
85 | mv ${CSSRC}.tmp ${CSSRC} | |
013101f0 | 86 | |
930e051d DM |
87 | .PHONY: upload |
88 | upload: ${DEBS} | |
bd751c12 | 89 | tar cf - ${DEBS} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} |
930e051d | 90 | |
01f3ad04 DM |
91 | distclean: clean |
92 | ||
930e051d DM |
93 | .PHONY: clean |
94 | clean: | |
dc3e3124 | 95 | rm -rf *.deb *.changes *.dsc *.buildinfo ${CSDIR} *.debian.tar.xz |
6e49b83c | 96 | find . -name '*~' -exec rm {} ';' |
930e051d DM |
97 | |
98 | .PHONY: dinstall | |
99 | dinstall: ${DEBS} | |
100 | dpkg -i ${DEBS} |