]> git.proxmox.com Git - corosync-pve.git/blame - Makefile
switch to Debian corosync package as base
[corosync-pve.git] / Makefile
CommitLineData
275a2fbe 1RELEASE=4.2
930e051d 2
07d9b3a0 3# source from http://www.corosync.org
aeb347a9 4
63916ea1 5CSVERSION=2.4.2
a56af624
FG
6CSRELEASE=pve1
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
FG
14DEBS=corosync-pve_${CSVERSION}-${CSRELEASE}_all.deb \
15corosync_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
16corosync-notifyd_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
17corosync-qdevice_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
18corosync-qnetd_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
19corosync-doc_${CSVERSION}-${CSRELEASE}_all.deb \
20corosync-dev_${CSVERSION}-${CSRELEASE}_all.deb \
21libcfg6_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
22libcmap4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
23libcorosync-common4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
24libcpg4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
25libquorum5_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
26libsam4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
27libtotem-pg5_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
28libvotequorum8_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
29libcfg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
30libcmap-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
31libcorosync-common-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
32libcpg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
33libquorum-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
34libsam-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
35libtotem-pg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \
36libvotequorum-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb
153f62cc 37
930e051d
DM
38all: ${DEBS}
39 echo ${DEBS}
40
2507e204 41.PHONY: deb
a56af624
FG
42deb: ${DEBS}
43${DEBS}: ${CSSRC}
930e051d 44 rm -rf ${CSDIR}
a56af624
FG
45 tar xf ${CSSRC}
46 mv ${CSDIR}/debian/changelog ${CSDIR}/debian/changelog.org
47 cat changelog.Debian ${CSDIR}/debian/changelog.org > ${CSDIR}/debian/changelog
48 cd ${CSDIR}; ln -s ../patches patches
49 cd ${CSDIR}; quilt push -a
50 cd ${CSDIR}; rm -rf .pc ./patches
51 cd ${CSDIR}; dpkg-buildpackage -b -us -uc
930e051d 52
013101f0
DM
53.PHONY: download
54download:
df03257c 55 rm -rf ${CSSRC} ${CSSRC}.tmp ${CSDIR}
a56af624 56 git clone https://anonscm.debian.org/git/debian-ha/corosync.git -b debian/${CSVERSION}-${DEBRELEASE} ${CSDIR}
d05fb358 57 # wget http://build.clusterlabs.org/corosync/releases/${CSSRC}
d05fb358
DM
58 tar czf ${CSSRC}.tmp ${CSDIR}
59 mv ${CSSRC}.tmp ${CSSRC}
013101f0 60
930e051d
DM
61.PHONY: upload
62upload: ${DEBS}
b2c8edcb 63 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload
930e051d 64
01f3ad04
DM
65distclean: clean
66
930e051d
DM
67.PHONY: clean
68clean:
a56af624 69 rm -rf *.deb *.changes *.dsc *.buildinfo ${CSDIR} corosync_${CSVERSION}-${CSRELEASE}.tar.gz
6e49b83c 70 find . -name '*~' -exec rm {} ';'
930e051d
DM
71
72.PHONY: dinstall
73dinstall: ${DEBS}
74 dpkg -i ${DEBS}