]> git.proxmox.com Git - corosync-pve.git/blame - Makefile
buildsys: also upload libcorosync4-pve transitional package
[corosync-pve.git] / Makefile
CommitLineData
3dbd0db6 1RELEASE=5.0
930e051d 2
07d9b3a0 3# source from http://www.corosync.org
aeb347a9 4
63916ea1 5CSVERSION=2.4.2
3dbd0db6 6CSRELEASE=pve2
a56af624 7DEBRELEASE=3
930e051d 8CSDIR=corosync-${CSVERSION}
013101f0 9CSSRC=corosync-${CSVERSION}.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}
a56af624 57 git clone https://anonscm.debian.org/git/debian-ha/corosync.git -b debian/${CSVERSION}-${DEBRELEASE} ${CSDIR}
d05fb358 58 # wget http://build.clusterlabs.org/corosync/releases/${CSSRC}
d05fb358
DM
59 tar czf ${CSSRC}.tmp ${CSDIR}
60 mv ${CSSRC}.tmp ${CSSRC}
013101f0 61
930e051d
DM
62.PHONY: upload
63upload: ${DEBS}
e5f27b35 64 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
930e051d 65
01f3ad04
DM
66distclean: clean
67
930e051d
DM
68.PHONY: clean
69clean:
a56af624 70 rm -rf *.deb *.changes *.dsc *.buildinfo ${CSDIR} corosync_${CSVERSION}-${CSRELEASE}.tar.gz
6e49b83c 71 find . -name '*~' -exec rm {} ';'
930e051d
DM
72
73.PHONY: dinstall
74dinstall: ${DEBS}
75 dpkg -i ${DEBS}