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