]> git.proxmox.com Git - corosync-pve.git/blob - Makefile
buildsys: update make upload target for stretch
[corosync-pve.git] / Makefile
1 RELEASE=4.2
2
3 # source from http://www.corosync.org
4
5 CSVERSION=2.4.2
6 CSRELEASE=pve1
7 DEBRELEASE=3
8 CSDIR=corosync-${CSVERSION}
9 CSSRC=corosync-${CSVERSION}.tar.gz
10
11 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
12 GITVERSION:=$(shell cat .git/refs/heads/master)
13
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
37
38 all: ${DEBS}
39 echo ${DEBS}
40
41 .PHONY: deb
42 deb: ${DEBS}
43 ${DEBS}: ${CSSRC}
44 rm -rf ${CSDIR}
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
52
53 .PHONY: download
54 download:
55 rm -rf ${CSSRC} ${CSSRC}.tmp ${CSDIR}
56 git clone https://anonscm.debian.org/git/debian-ha/corosync.git -b debian/${CSVERSION}-${DEBRELEASE} ${CSDIR}
57 # wget http://build.clusterlabs.org/corosync/releases/${CSSRC}
58 tar czf ${CSSRC}.tmp ${CSDIR}
59 mv ${CSSRC}.tmp ${CSSRC}
60
61 .PHONY: upload
62 upload: ${DEBS}
63 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
64
65 distclean: clean
66
67 .PHONY: clean
68 clean:
69 rm -rf *.deb *.changes *.dsc *.buildinfo ${CSDIR} corosync_${CSVERSION}-${CSRELEASE}.tar.gz
70 find . -name '*~' -exec rm {} ';'
71
72 .PHONY: dinstall
73 dinstall: ${DEBS}
74 dpkg -i ${DEBS}