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