]>
Commit | Line | Data |
---|---|---|
275a2fbe | 1 | RELEASE=4.2 |
930e051d | 2 | |
07d9b3a0 | 3 | # source from http://www.corosync.org |
aeb347a9 | 4 | |
63916ea1 | 5 | CSVERSION=2.4.2 |
a56af624 FG |
6 | CSRELEASE=pve1 |
7 | DEBRELEASE=3 | |
930e051d | 8 | CSDIR=corosync-${CSVERSION} |
013101f0 | 9 | CSSRC=corosync-${CSVERSION}.tar.gz |
930e051d DM |
10 | |
11 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
5aa0e5ba | 12 | GITVERSION:=$(shell cat .git/refs/heads/master) |
930e051d | 13 | |
a56af624 FG |
14 | DEBS=corosync-pve_${CSVERSION}-${CSRELEASE}_all.deb \ |
15 | corosync_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
16 | corosync-notifyd_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
17 | corosync-qdevice_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
18 | corosync-qnetd_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
19 | corosync-doc_${CSVERSION}-${CSRELEASE}_all.deb \ | |
20 | corosync-dev_${CSVERSION}-${CSRELEASE}_all.deb \ | |
21 | libcfg6_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
22 | libcmap4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
23 | libcorosync-common4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
24 | libcpg4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
25 | libquorum5_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
26 | libsam4_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
27 | libtotem-pg5_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
28 | libvotequorum8_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
29 | libcfg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
30 | libcmap-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
31 | libcorosync-common-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
32 | libcpg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
33 | libquorum-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
34 | libsam-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
35 | libtotem-pg-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb \ | |
36 | libvotequorum-dev_${CSVERSION}-${CSRELEASE}_${ARCH}.deb | |
153f62cc | 37 | |
930e051d DM |
38 | all: ${DEBS} |
39 | echo ${DEBS} | |
40 | ||
2507e204 | 41 | .PHONY: deb |
a56af624 FG |
42 | deb: ${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 |
54 | download: | |
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 |
62 | upload: ${DEBS} | |
b2c8edcb | 63 | tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload |
930e051d | 64 | |
01f3ad04 DM |
65 | distclean: clean |
66 | ||
930e051d DM |
67 | .PHONY: clean |
68 | clean: | |
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 | |
73 | dinstall: ${DEBS} | |
74 | dpkg -i ${DEBS} |