]>
Commit | Line | Data |
---|---|---|
275a2fbe | 1 | RELEASE=4.2 |
930e051d | 2 | |
07d9b3a0 | 3 | # source from http://www.corosync.org |
aeb347a9 | 4 | |
275a2fbe DM |
5 | CSVERSION=2.4.0 |
6 | CSRELEASE=1 | |
930e051d | 7 | CSDIR=corosync-${CSVERSION} |
013101f0 | 8 | CSSRC=corosync-${CSVERSION}.tar.gz |
930e051d DM |
9 | |
10 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
5aa0e5ba | 11 | GITVERSION:=$(shell cat .git/refs/heads/master) |
930e051d DM |
12 | |
13 | DEBS= \ | |
14 | corosync-pve_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
15 | libcorosync4-pve_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
16 | libcorosync-pve-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb | |
17 | ||
18 | all: ${DEBS} | |
19 | echo ${DEBS} | |
20 | ||
21 | ${DEBS}: ${CSSRC} | |
22 | echo ${DEBS} | |
23 | rm -rf ${CSDIR} | |
24 | tar xf ${CSSRC} | |
25 | cp -a debian ${CSDIR}/debian | |
5aa0e5ba DM |
26 | echo "git clone git://git.proxmox.com/git/corosync-pve.git\\ngit checkout ${GITVERSION}" > ${CSDIR}/debian/SOURCE |
27 | ||
930e051d DM |
28 | cd ${CSDIR}; dpkg-buildpackage -rfakeroot -b -us -uc |
29 | ||
013101f0 DM |
30 | .PHONY: download |
31 | download: | |
df03257c | 32 | rm -rf ${CSSRC} ${CSSRC}.tmp ${CSDIR} |
d05fb358 | 33 | # wget http://build.clusterlabs.org/corosync/releases/${CSSRC} |
df03257c DM |
34 | git clone https://github.com/corosync/corosync.git -b needle ${CSDIR} |
35 | #cd ${CSDIR}; git checkout v${CSVERSION} | |
d05fb358 DM |
36 | cd ${CSDIR}; ./autogen.sh |
37 | tar czf ${CSSRC}.tmp ${CSDIR} | |
38 | mv ${CSSRC}.tmp ${CSSRC} | |
013101f0 | 39 | |
930e051d DM |
40 | .PHONY: upload |
41 | upload: ${DEBS} | |
b2c8edcb | 42 | tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload |
930e051d | 43 | |
01f3ad04 DM |
44 | distclean: clean |
45 | ||
930e051d DM |
46 | .PHONY: clean |
47 | clean: | |
48 | rm -rf *_${ARCH}.deb *.changes *.dsc ${CSDIR} corosync_${CSVERSION}-${CSRELEASE}.tar.gz | |
6e49b83c | 49 | find . -name '*~' -exec rm {} ';' |
930e051d DM |
50 | |
51 | .PHONY: dinstall | |
52 | dinstall: ${DEBS} | |
53 | dpkg -i ${DEBS} |