]> git.proxmox.com Git - corosync-pve.git/blame - Makefile
update sources to 2.4.4-3
[corosync-pve.git] / Makefile
CommitLineData
3dbd0db6 1RELEASE=5.0
930e051d 2
07d9b3a0 3# source from http://www.corosync.org
aeb347a9 4
82342947 5CSVERSION=2.4.4
013929b6 6CSRELEASE=pve5
a56af624 7DEBRELEASE=3
930e051d 8CSDIR=corosync-${CSVERSION}
82342947 9CSSRC=corosync_${CSVERSION}.orig.tar.gz
930e051d
DM
10
11ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
5aa0e5ba 12GITVERSION:=$(shell cat .git/refs/heads/master)
930e051d 13
a56af624 14DEBS=corosync-pve_${CSVERSION}-${CSRELEASE}_all.deb \
571ea76e 15libcorosync4-pve_${CSVERSION}-${CSRELEASE}_all.deb \
a56af624
FG
16corosync_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
17corosync-notifyd_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
18corosync-qdevice_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
19corosync-qnetd_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
20corosync-doc_${CSVERSION}-${CSRELEASE}_all.deb \
21corosync-dev_${CSVERSION}-${CSRELEASE}_all.deb \
22libcfg6_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
23libcmap4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
24libcorosync-common4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
25libcpg4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
26libquorum5_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
27libsam4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
28libtotem-pg5_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
29libvotequorum8_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
30libcfg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
31libcmap-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
32libcorosync-common-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
33libcpg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
34libquorum-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
35libsam-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
36libtotem-pg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
37libvotequorum-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb
153f62cc 38
930e051d
DM
39all: ${DEBS}
40 echo ${DEBS}
41
2507e204 42.PHONY: deb
a56af624
FG
43deb: ${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
55download:
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
62upload: ${DEBS}
bd751c12 63 tar cf - ${DEBS} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
930e051d 64
01f3ad04
DM
65distclean: clean
66
930e051d
DM
67.PHONY: clean
68clean:
82342947 69 rm -rf *.deb *.changes *.dsc *.buildinfo ${CSDIR}
6e49b83c 70 find . -name '*~' -exec rm {} ';'
930e051d
DM
71
72.PHONY: dinstall
73dinstall: ${DEBS}
74 dpkg -i ${DEBS}