]>
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 | |
a56af624 | 14 | DEBS=corosync-pve_${CSVERSION}-${CSRELEASE}_all.deb \ |
571ea76e | 15 | libcorosync4-pve_${CSVERSION}-${CSRELEASE}_all.deb \ |
a56af624 FG |
16 | corosync_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ |
17 | corosync-notifyd_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
18 | corosync-qdevice_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
19 | corosync-qnetd_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
20 | corosync-doc_${CSVERSION}-${CSRELEASE}_all.deb \ | |
21 | corosync-dev_${CSVERSION}-${CSRELEASE}_all.deb \ | |
22 | libcfg6_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
23 | libcmap4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
24 | libcorosync-common4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
25 | libcpg4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
26 | libquorum5_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
27 | libsam4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
28 | libtotem-pg5_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
29 | libvotequorum8_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
30 | libcfg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
31 | libcmap-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
32 | libcorosync-common-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
33 | libcpg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
34 | libquorum-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
35 | libsam-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
36 | libtotem-pg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
37 | libvotequorum-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb | |
153f62cc | 38 | |
930e051d DM |
39 | all: ${DEBS} |
40 | echo ${DEBS} | |
41 | ||
2507e204 | 42 | .PHONY: deb |
a56af624 FG |
43 | deb: ${DEBS} |
44 | ${DEBS}: ${CSSRC} | |
930e051d | 45 | rm -rf ${CSDIR} |
a56af624 FG |
46 | tar xf ${CSSRC} |
47 | mv ${CSDIR}/debian/changelog ${CSDIR}/debian/changelog.org | |
48 | cat changelog.Debian ${CSDIR}/debian/changelog.org > ${CSDIR}/debian/changelog | |
49 | cd ${CSDIR}; ln -s ../patches patches | |
50 | cd ${CSDIR}; quilt push -a | |
51 | cd ${CSDIR}; rm -rf .pc ./patches | |
52 | cd ${CSDIR}; dpkg-buildpackage -b -us -uc | |
930e051d | 53 | |
013101f0 DM |
54 | .PHONY: download |
55 | download: | |
df03257c | 56 | rm -rf ${CSSRC} ${CSSRC}.tmp ${CSDIR} |
82342947 | 57 | git clone https://salsa.debian.org/ha-team/corosync.git -b debian/${CSVERSION}-${DEBRELEASE} ${CSDIR} |
d05fb358 DM |
58 | tar czf ${CSSRC}.tmp ${CSDIR} |
59 | mv ${CSSRC}.tmp ${CSSRC} | |
013101f0 | 60 | |
930e051d DM |
61 | .PHONY: upload |
62 | upload: ${DEBS} | |
bd751c12 | 63 | tar cf - ${DEBS} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} |
930e051d | 64 | |
01f3ad04 DM |
65 | distclean: clean |
66 | ||
930e051d DM |
67 | .PHONY: clean |
68 | clean: | |
82342947 | 69 | rm -rf *.deb *.changes *.dsc *.buildinfo ${CSDIR} |
6e49b83c | 70 | find . -name '*~' -exec rm {} ';' |
930e051d DM |
71 | |
72 | .PHONY: dinstall | |
73 | dinstall: ${DEBS} | |
74 | dpkg -i ${DEBS} |